diff --git a/srcpkgs/libratbag/patches/fix-usage-of-error.patch b/srcpkgs/libratbag/patches/fix-usage-of-error.patch index ba76052090b..0171359370d 100644 --- a/srcpkgs/libratbag/patches/fix-usage-of-error.patch +++ b/srcpkgs/libratbag/patches/fix-usage-of-error.patch @@ -33,7 +33,7 @@ Reason: removes usage of non-portable of error.h #include #include -@@ -112,12 +112,12 @@ main(int argc, char **argv) +@@ -112,12 +112,12 @@ path = argv[argc - 1]; fd = open(path, O_RDWR); if (fd < 0) @@ -41,7 +41,7 @@ Reason: removes usage of non-portable of error.h + err(errno, "Failed to open path %s", path); hidpp_device_init(&base, fd); - dev = hidpp20_device_new(&base, 0xff); + 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); @@ -59,7 +59,7 @@ Reason: removes usage of non-portable of error.h #include #include -@@ -88,12 +88,12 @@ main(int argc, char **argv) +@@ -88,12 +88,12 @@ path = argv[argc - 1]; fd = open(path, O_RDWR); if (fd < 0) @@ -67,7 +67,7 @@ Reason: removes usage of non-portable of error.h + err(errno, "Failed to open path %s", path); hidpp_device_init(&base, fd); - dev = hidpp20_device_new(&base, 0xff); + 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); diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template index 8cf4ed9639c..2a1ce9318ce 100644 --- a/srcpkgs/libratbag/template +++ b/srcpkgs/libratbag/template @@ -1,6 +1,6 @@ # Template file for 'libratbag' pkgname=libratbag -version=0.11 +version=0.12 revision=1 build_style=meson configure_args="-Dtests=false -Dsystemd-unit-dir='' @@ -14,7 +14,7 @@ maintainer="bra1nwave " license="MIT" homepage="https://github.com/libratbag/libratbag" distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz" -checksum=aa0bb012c2f581ee35ec023d516d23eb22d38f16092e7de44bd8481df953408d +checksum=62d2b7215019d800392aa0fcb635127334661fbc011f169cac9d86d436d13f0c post_install() { vsv ratbagd