libratbag: update to 0.17.

This commit is contained in:
classabbyamp 2022-11-19 00:28:48 -05:00
parent 6e3344e4bb
commit b3e0bd7efc
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 2 additions and 78 deletions

View file

@ -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 <config.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <hidpp10.h>
@@ -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 <config.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <hidpp20.h>
@@ -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 <config.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <hidpp20.h>
@@ -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);

View file

@ -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 <void@placeviolette.net>"
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"