mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/elfutils: cleanup musl patch for 0.191
Thanks to Mark Wieelard for the review of the patches and suggestions for cleaning up obsolete bits. He notes we still need a proper fix for FNM_EXTMATCH though. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -50,7 +50,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.189-musl-aarch64-regs.patch
|
||||
"${FILESDIR}"/${PN}-0.189-musl-macros.patch
|
||||
"${FILESDIR}"/${PN}-0.191-musl-macros.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
14
dev-libs/elfutils/files/elfutils-0.191-musl-macros.patch
Normal file
14
dev-libs/elfutils/files/elfutils-0.191-musl-macros.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
https://git.alpinelinux.org/aports/plain/main/elfutils/musl-macros.patch
|
||||
--- a/lib/system.h
|
||||
+++ b/lib/system.h
|
||||
@@ -56,6 +56,10 @@ void error(int status, int errnum, const char *format, ...);
|
||||
#error "err.h or error.h must be available"
|
||||
#endif
|
||||
|
||||
+#if !defined(FNM_EXTMATCH)
|
||||
+# define FNM_EXTMATCH 0
|
||||
+#endif
|
||||
+
|
||||
/* error (EXIT_FAILURE, ...) should be noreturn but on some systems it
|
||||
isn't. This may cause warnings about code that should not be reachable.
|
||||
So have an explicit error_exit wrapper that is noreturn (because it
|
||||
Reference in New Issue
Block a user