libratbag: update to 0.9.904.

This commit is contained in:
maxice8 2019-01-24 03:27:51 -02:00 committed by maxice8
parent aba0c713cd
commit ecd1c6b2d7
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,28 @@
From e1b8235dba615c221afc41588f9c3f73e337e9c6 Mon Sep 17 00:00:00 2001
From: maxice8 <thinkabit.ukim@gmail.com>
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

View File

@ -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 <thinkabit.ukim@gmail.com>"
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