From b3e0bd7efc8cf7878d7ff86499dab430c586062b Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 19 Nov 2022 00:28:48 -0500 Subject: [PATCH] libratbag: update to 0.17. --- .../patches/fix-usage-of-error.patch | 76 ------------------- srcpkgs/libratbag/template | 4 +- 2 files changed, 2 insertions(+), 78 deletions(-) delete mode 100644 srcpkgs/libratbag/patches/fix-usage-of-error.patch diff --git a/srcpkgs/libratbag/patches/fix-usage-of-error.patch b/srcpkgs/libratbag/patches/fix-usage-of-error.patch deleted file mode 100644 index 97dbc67dd1f..00000000000 --- a/srcpkgs/libratbag/patches/fix-usage-of-error.patch +++ /dev/null @@ -1,76 +0,0 @@ -Source: maxice8 -Upstream: No, but feel free -Reason: removes usage of non-portable of error.h - ---- a/tools/hidpp10-dump-page.c -+++ b/tools/hidpp10-dump-page.c -@@ -23,7 +23,7 @@ - - #include - #include --#include -+#include - #include - - #include -@@ -95,7 +95,7 @@ main(int argc, char **argv) - path = argv[argc - 1]; - fd = open(path, O_RDWR); - if (fd < 0) -- error(1, errno, "Failed to open path %s", path); -+ err(errno, "Failed to open path %s", path); - - hidpp_device_init(&base, fd); - dev = hidpp10_device_new(&base, HIDPP_WIRED_DEVICE_IDX, HIDPP10_PROFILE_UNKNOWN, 5); ---- a/tools/hidpp20-dump-page.c -+++ b/tools/hidpp20-dump-page.c -@@ -23,7 +23,7 @@ - - #include - #include --#include -+#include - #include - - #include -@@ -112,12 +112,12 @@ - path = argv[argc - 1]; - fd = open(path, O_RDWR); - if (fd < 0) -- error(1, errno, "Failed to open path %s", path); -+ err(errno, "Failed to open path %s", path); - - hidpp_device_init(&base, fd); - dev = hidpp20_device_new(&base, 0xff, NULL, 0); - if (!dev) -- error(1, 0, "Failed to open %s as a HID++ 2.0 device", path); -+ err(0, "Failed to open %s as a HID++ 2.0 device", path); - - hidpp20_onboard_profiles_get_profiles_desc(dev, &info); - ---- a/tools/hidpp20-reset.c -+++ b/tools/hidpp20-reset.c -@@ -23,7 +23,7 @@ - - #include - #include --#include -+#include - #include - - #include -@@ -88,12 +88,12 @@ - path = argv[argc - 1]; - fd = open(path, O_RDWR); - if (fd < 0) -- error(1, errno, "Failed to open path %s", path); -+ err(errno, "Failed to open path %s", path); - - hidpp_device_init(&base, fd); - dev = hidpp20_device_new(&base, 0xff, NULL, 0); - if (!dev) -- error(1, 0, "Failed to open %s as a HID++ 2.0 device", path); -+ err(0, "Failed to open %s as a HID++ 2.0 device", path); - - hidpp20_onboard_profiles_get_profiles_desc(dev, &info); - diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template index fb1ba44d38f..bd7e4bf1805 100644 --- a/srcpkgs/libratbag/template +++ b/srcpkgs/libratbag/template @@ -1,6 +1,6 @@ # Template file for 'libratbag' pkgname=libratbag -version=0.16 +version=0.17 revision=1 build_style=meson configure_args="-Dtests=false -Dsystemd-unit-dir='' @@ -15,7 +15,7 @@ maintainer="classabbyamp " license="MIT" homepage="https://github.com/libratbag/libratbag" distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz" -checksum=c70b6a259693216e6a57ec3087496e8d6df01d4425b7a06592872b7b123e5fcc +checksum=bd0efd077e155ca71218981d6518a9ac9031fdb42699375b8cd17fa78e0354ff make_check=extended # needs system dbus make_check_pre="dbus-run-session"