From e43d52f95ff4dae748404c28c2bc9d81475f2d94 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 11 Mar 2024 07:11:54 +0000 Subject: [PATCH] dev-libs/elfutils: Sync with Gentoo It's from Gentoo commit bcd670c0de8c9f9a1f83c96142e49fda36131a0f. --- .../dev-libs/elfutils/elfutils-0.191.ebuild | 2 +- .../files/elfutils-0.191-musl-macros.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/elfutils/files/elfutils-0.191-musl-macros.patch diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/elfutils-0.191.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/elfutils-0.191.ebuild index 797cf5e83e..2825aaf9a2 100644 --- a/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/elfutils-0.191.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/elfutils-0.191.ebuild @@ -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() { diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/files/elfutils-0.191-musl-macros.patch b/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/files/elfutils-0.191-musl-macros.patch new file mode 100644 index 0000000000..6e0912c5ce --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/elfutils/files/elfutils-0.191-musl-macros.patch @@ -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