From 5f0030fd1370c4d03dbb2e0d3086f5e618a33749 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 28 Apr 2024 23:59:44 +0100 Subject: gentoo auto-resync : 28:04:2024 - 23:59:44 --- sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch (limited to 'sys-apps/attr/files') diff --git a/sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch b/sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch new file mode 100644 index 000000000000..6a1200ad2f17 --- /dev/null +++ b/sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch @@ -0,0 +1,23 @@ + +If we're not building with glibc, then add its basename definition manually + +diff --git a/tools/attr.c b/tools/attr.c +index f12e4af..d321b37 100644 +--- a/tools/attr.c ++++ b/tools/attr.c +@@ -33,6 +33,15 @@ + + #include "misc.h" + ++#if !defined(__GLIBC__) ++char * ++basename (const char *filename) ++{ ++ char *p = strrchr (filename, '/'); ++ return p ? p + 1 : (char *) filename; ++} ++#endif ++ + #define SETOP 1 /* do a SET operation */ + #define GETOP 2 /* do a GET operation */ + #define REMOVEOP 3 /* do a REMOVE operation */ -- cgit v1.2.3