diff --git a/srcpkgs/libratbag/patches/fix-musl.patch b/srcpkgs/libratbag/patches/fix-musl.patch new file mode 100644 index 00000000000..6b9f6918cbb --- /dev/null +++ b/srcpkgs/libratbag/patches/fix-musl.patch @@ -0,0 +1,28 @@ +From e1b8235dba615c221afc41588f9c3f73e337e9c6 Mon Sep 17 00:00:00 2001 +From: maxice8 +Date: Thu, 24 Jan 2019 07:23:36 -0200 +Subject: [PATCH] tools/shared.c: Use portable realpath() instead of + canonicalize_file_name() + +Fixes compilation on musl systems +--- + tools/shared.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/shared.c b/tools/shared.c +index 992e2de..00ecdf9 100644 +--- tools/shared.c ++++ tools/shared.c +@@ -30,7 +30,7 @@ udev_device_from_path(struct udev *udev, const char *path) + const char *event_node_prefix = "/dev/input/event"; + _cleanup_(freep) char *path_canonical = NULL; + +- if ((path_canonical = canonicalize_file_name(path)) == NULL) { ++ if ((path_canonical = realpath(path, NULL)) == NULL) { + error("Failed to canonicalize path '%s': %s\n", path, strerror(errno)); + return NULL; + } +-- +2.20.1 + + diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template index faf0fee303d..68952fcc227 100644 --- a/srcpkgs/libratbag/template +++ b/srcpkgs/libratbag/template @@ -1,6 +1,6 @@ # Template file for 'libratbag' pkgname=libratbag -version=0.9.903 +version=0.9.904 revision=1 build_style=meson configure_args="-Dtests=false -Dsystemd-unit-dir='' @@ -14,7 +14,7 @@ maintainer="maxice8 " license="MIT" homepage="https://github.com/libratbag/libratbag" distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz" -checksum=7d29ff79700a8dbd7bba257f4d86d281808d2f1005799eb0653231df3590f6c5 +checksum=08a3255760b95dd491437060577c7a2a48cbf488cf859014778d712da64d7de2 if [ "$CROSS_BUILD" ]; then case "$XBPS_TARGET_MACHINE" in