Skip to content

Commit ecd1c6b

Browse files
committed
libratbag: update to 0.9.904.
1 parent aba0c71 commit ecd1c6b

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From e1b8235dba615c221afc41588f9c3f73e337e9c6 Mon Sep 17 00:00:00 2001
2+
From: maxice8 <[email protected]>
3+
Date: Thu, 24 Jan 2019 07:23:36 -0200
4+
Subject: [PATCH] tools/shared.c: Use portable realpath() instead of
5+
canonicalize_file_name()
6+
7+
Fixes compilation on musl systems
8+
---
9+
tools/shared.c | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
diff --git a/tools/shared.c b/tools/shared.c
13+
index 992e2de..00ecdf9 100644
14+
--- tools/shared.c
15+
+++ tools/shared.c
16+
@@ -30,7 +30,7 @@ udev_device_from_path(struct udev *udev, const char *path)
17+
const char *event_node_prefix = "/dev/input/event";
18+
_cleanup_(freep) char *path_canonical = NULL;
19+
20+
- if ((path_canonical = canonicalize_file_name(path)) == NULL) {
21+
+ if ((path_canonical = realpath(path, NULL)) == NULL) {
22+
error("Failed to canonicalize path '%s': %s\n", path, strerror(errno));
23+
return NULL;
24+
}
25+
--
26+
2.20.1
27+
28+

srcpkgs/libratbag/template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Template file for 'libratbag'
22
pkgname=libratbag
3-
version=0.9.903
3+
version=0.9.904
44
revision=1
55
build_style=meson
66
configure_args="-Dtests=false -Dsystemd-unit-dir=''
@@ -14,7 +14,7 @@ maintainer="maxice8 <[email protected]>"
1414
license="MIT"
1515
homepage="https://github.com/libratbag/libratbag"
1616
distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz"
17-
checksum=7d29ff79700a8dbd7bba257f4d86d281808d2f1005799eb0653231df3590f6c5
17+
checksum=08a3255760b95dd491437060577c7a2a48cbf488cf859014778d712da64d7de2
1818

1919
if [ "$CROSS_BUILD" ]; then
2020
case "$XBPS_TARGET_MACHINE" in

0 commit comments

Comments
 (0)