From 2771f79232c273bc2a57d23bf335dd81ccf6af28 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Dec 2021 02:47:11 +0000 Subject: gentoo resync : 05.12.2021 --- dev-libs/elfutils/Manifest | 18 +-- dev-libs/elfutils/elfutils-0.185.ebuild | 11 +- dev-libs/elfutils/elfutils-0.186.ebuild | 14 +- ...lfutils-0.175-disable-biarch-test-PR24158.patch | 9 -- .../files/elfutils-0.177-disable-large.patch | 14 -- .../files/elfutils-0.180-PaX-support.patch | 26 ---- ....ac-rework-gnu99-ext-check-to-allow-clang.patch | 146 --------------------- .../elfutils-0.185-glibc-2.34-test-failure.patch | 124 ----------------- ...utils-0.185-pull-advance_pc-in-file-scope.patch | 70 ---------- .../files/elfutils-0.185-static-inline.patch | 12 -- .../files/musl/elfutils-0.185-aarch64-regs.patch | 57 -------- .../elfutils/files/musl/elfutils-0.185-cdefs.patch | 20 --- .../files/musl/elfutils-0.185-error-h.patch | 68 ---------- .../files/musl/elfutils-0.185-macros.patch | 86 ------------ .../files/musl/elfutils-0.185-strndupa.patch | 22 ---- 15 files changed, 10 insertions(+), 687 deletions(-) delete mode 100644 dev-libs/elfutils/files/elfutils-0.175-disable-biarch-test-PR24158.patch delete mode 100644 dev-libs/elfutils/files/elfutils-0.177-disable-large.patch delete mode 100644 dev-libs/elfutils/files/elfutils-0.180-PaX-support.patch delete mode 100644 dev-libs/elfutils/files/elfutils-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch delete mode 100644 dev-libs/elfutils/files/elfutils-0.185-glibc-2.34-test-failure.patch delete mode 100644 dev-libs/elfutils/files/elfutils-0.185-pull-advance_pc-in-file-scope.patch delete mode 100644 dev-libs/elfutils/files/elfutils-0.185-static-inline.patch delete mode 100644 dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch delete mode 100644 dev-libs/elfutils/files/musl/elfutils-0.185-cdefs.patch delete mode 100644 dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch delete mode 100644 dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch delete mode 100644 dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch (limited to 'dev-libs/elfutils') diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest index 7c688d7bd3cd..8f8207d3731f 100644 --- a/dev-libs/elfutils/Manifest +++ b/dev-libs/elfutils/Manifest @@ -1,17 +1,7 @@ -AUX elfutils-0.175-disable-biarch-test-PR24158.patch 307 BLAKE2B 9cfcd2c9ef972b16fdf6bc203ed2cde70b0da80d982dc3493c993532492cdb8f597b66fd38ebedf7517403096c1704d77f7541972d875af2b952cad3586751bb SHA512 d3263c42b1638a416e95c2b8e68b15a9723e748490c8eca727da94bf7bb3dd8389222dd01bf69612ba45a20114ee1427d77935c41436d1ca9180fcfd71d3cdfe -AUX elfutils-0.177-disable-large.patch 383 BLAKE2B ce5a90495ca0eac5a74d7e3f52b9f55e0611fe83782374d5201b984e85e7c27897d0d056f53af40ebb383e8cbe315a57adce2af378348ee1a573cfeb005e7a43 SHA512 2660ee456b62d6b1ed72ede92d8b00e9d1cd4b0a5778a80bfbdc3139e5527758591cdb05110b39a5c5811f60e2223cc8c83a488ac055a554f5b3c71fc5980acb -AUX elfutils-0.180-PaX-support.patch 1058 BLAKE2B 9d7980eedf6250b848923eddb86d918ac983b348f77b3816ba77e1a663cc637ec02670e062b005aa010fa50f45fb953b1f2ef033bca6381773793231eb3cef06 SHA512 1bfb390ff4fb9ba2cbaf677bb4cd0d3ab3a27e465629be0dcc7b37f14dfe6c876069b598e29e9f3aa0c345b08c62895e68ce557237d18239c7505b8ea51c9ebd -AUX elfutils-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch 4731 BLAKE2B b201b7e511e963f935f8ec308f0f8f0b1a006050c6f804076083ce6b95a7f638aba77b58e0654baefc35ef1093051c6d1a4f73c882bc54afcccf1441e9282481 SHA512 72e319c99c473965eabcc7ed2773594b03d7dc55f8d2cba205b93ced768956f607330656203b22e2cf101394e5d0e7eb3743f48e035d8a97e440628fb3723971 -AUX elfutils-0.185-glibc-2.34-test-failure.patch 4265 BLAKE2B 28609f381927f23c8401389b676b1f439be2498ea5bdef17bc64df03fd320b7d1010551ddbf6f0543aae0048344343765135f2fd7dbe180070911b42ccf87e08 SHA512 87fef4211f5005753e051e426e7d6af49f71294a54db3ba044774686e822c4849d99ea46d58e70f8eaf189bff7275a479cca44d1e85698e9a89d8048cee96d05 -AUX elfutils-0.185-pull-advance_pc-in-file-scope.patch 2620 BLAKE2B cfa868cd11ede0bb04e401da099e64f6d5134e7b31aa9f27c7ed89ea22eeaaaee1f55d2e58cd6e08f8ba761939fe33b28cb5cc5d962318a56e4b9ff6310bd34d SHA512 db7e2cb5ecd0f4236256f2001b8c9610ce4269dd01cee8d17276fa4e3394265f0bb1e85b1feab79299b899a08be581e3ac12f638bbc21ae14c44785cde3a8751 -AUX elfutils-0.185-static-inline.patch 361 BLAKE2B c480f9a4024922252c9917c5e69eb8b4c92c897f7ebb4284445a489b5b28c630ac28e337bff977f67c164abed688aa0ed0dc76a715f6270e1001a7a80d46799f SHA512 8ac89c40aa108b097f18deb82ec3267d987aa16473fb40105aa7f83465cbea4ac1538bf4fc84c957e61250f9b8b6ea1f5694dcd5b404902ce8b73f53eed3308a -AUX musl/elfutils-0.185-aarch64-regs.patch 1865 BLAKE2B c177254f31b214d39dc18a9591fca672537475bc8318b3dac6fecea11659f75e89c9c1eaa61b605bce5802ab910fe542645d214c825a28182b26d8d7620208bd SHA512 1eb5975bed830dc83e9375f526176276a5254dd9351853dc4c2c4be66246ea74bb65ae5352ea9f3d7fdf70f8af2b9d953e921dbce7cf94a906cd22272db6adab -AUX musl/elfutils-0.185-cdefs.patch 394 BLAKE2B 5c372ceb3f732ecab7468ef803079c82799c9c4ac562ecf5dcf5eced6c34e478c2b5dd64ad2e4c00a2082d3caff196eb51c26fc9547e116cee8abd6a8ebfa74f SHA512 12d8be301d9fce7461c87f206e56c7b475a2e7ab3577addd19531e57dc93f9d247bc38969c3e3e5c9bd1eacb371a89893b6ce590300a4194092f7565c1327e26 -AUX musl/elfutils-0.185-error-h.patch 1571 BLAKE2B 31a762bf02472a0e4383c7ce4500aecb8a524e4b78a829bc0eb4aaa999c251f32543ed8b1d3c4d378156fbbad4c99bfcfe5d8cab56cb6b9b64cdbeed6c9b8121 SHA512 32bace307afb9425259cfd202afb6d7e58f0608390901bdd0b8f3e78edda5f4dfe780de755db2caa25fae34eb20fc75a050ef265b947e77fb59697acc7a3eabf -AUX musl/elfutils-0.185-macros.patch 2481 BLAKE2B a512990b0d3222ae27f62102bbeeb315bace2e2dc39b1d77b65b52076c8134be7ef198f8db2fa242f1b0907b284fe7848f3d8e6a343af1a40fffdd5232917f23 SHA512 5f4d3ab97f317719c25a1affe33fbdbb8a8f10a183b17dfaa75fbdd18824a308778e1a4b5d6dae8d6e20c75660f53b80b8f6ccf1d0c13aa2da568b15b26b72e3 -AUX musl/elfutils-0.185-strndupa.patch 802 BLAKE2B 36bbc78224903e12b612d29724619b9174f700c9beb9262704676d5a0f92fb8af5aac724e09fb804985948e112ba6abe92641f9d487dd161dded984911edde9c SHA512 0c57d62b295b1330b947d4bcb74b1e05fcc1b7976d1de24545b1bf832a84a14d95c43940fd243c8b764a4201369ed798f5abc11ddefe2e42944bb471cff4f625 +DIST elfutils-0.185-patches.tar.gz 7625 BLAKE2B 92aff147aa7e45976863e8129e25ecad74ad9bca231c9223897094c5933c3b350eb525a203b492d80c1eabee3b3808b43e30bdb879d7173eac968afa2005e97c SHA512 3f253c4de97190731ac157044572912b76df80f9473f3df335f0383dad6409f987593a749c5284672cf1b20241ac3ed9d77b126f730aaf594725703b6a426906 DIST elfutils-0.185.tar.bz2 9187627 BLAKE2B 57cfa7e4060975c4bf6170dbd354687a19a92f7069c060db1ac2fa4da5a9d34e8bddd07c7ce376b5c28b5670ad5b8c1df795164cbcfb600a44cf1db60c20c4af SHA512 34de0de1355b11740e036e0fc64f2fc063587c8eb121b19216ee5548d3f0f268d8fc3995176c47190466b9d881007cfa11a9d01e9a50e38af6119492bf8bb47f +DIST elfutils-0.186-patches.tar.gz 3323 BLAKE2B 360365597d3a08d6f4fe843d04bcddd07a44ca93dae2034615abc450517e1be21c81a55aa379c409902e134ae795b38bb7461c65cdba3934ac7ef1e4e0e53091 SHA512 e2d427be505fdc416751a1fbc3bb4f39577859d94ce43990faa83c135fe36be2ddb3a2ef0f1020cfa37060e6d43dc7b8cf3db0d07d62b31bf29cb9a4a5945ce1 DIST elfutils-0.186.tar.bz2 9230491 BLAKE2B 49573d0a1f3519eab81d1ba3e94354cbc0935a36a94a3fdb22fe223a47b78cca8fd6e322870b0e335a809529fa6f54180b13c67936dec0242123c54ba20c9fc9 SHA512 c9180b27ec62935f18b9431268d176f6023d1bb938731d2af6e7626ae460af6608a70ba68483aa1ec7e6cb0fa0528b661ca8b68bc4f58ea8e18af527c5950c78 -EBUILD elfutils-0.185.ebuild 2796 BLAKE2B 70244584923c98a3eb2ea4ef3f47a2998302284964bbaffdab84a5a4a26296ac539d06961bfc0c4b8fe284203022c83ab268ff8756a2f898d43bf87e318a359d SHA512 5f17e97b73d797f551aff5e51d1a85aa3dc033eb5e5e56200a7f25968541fa2e64ad43977e1c80b0a5b76904692db8608f73a9c00312a4f3c5298a6f1a852367 -EBUILD elfutils-0.186.ebuild 2775 BLAKE2B 31860c539c00a6e953de013b31322b26c790c81d08e55786bab9185ed1fe0b58711f5bec48dbab773dd7ca617a87e6cd572052771ba27c4f8677aebbacb0c868 SHA512 018d2bb38e93cf0c978de8ad8638b014d297f90dfb8d98f0d507f4a99ef13074d56d1ad182acdaf6331975d217aa8bf81fef3d09358dce65c2f938b51f3baed9 +EBUILD elfutils-0.185.ebuild 2541 BLAKE2B 9e738dc82327c18d3c25870d93e23d238de5b8b384435f4968bcd681bf9a55c31ad5d0b6ea84b03336071ab49dda55fd8fb61ab052895dc3510ed9bf89ad2861 SHA512 05871e419814fc92098dc2ac8b9614b9f62e02fa758aaa84029805fc3513f56347006ef495ff8c56a3811d98992e1de3e659565d15bbe2084637b72ad0a29107 +EBUILD elfutils-0.186.ebuild 2551 BLAKE2B 4aa62f52fcc2cfd4cdaa394501f5baf2d2478d477a63e7920256851de1bbe1b16cdcee48472fac6fdb8512e5b9a9ff11275f2df7854514fd362b4592f69b2c99 SHA512 0c33f295a97e9a710cc255a9785a3ea664cc03910a29135cd36f4387992ba317b38ebd2c05a978f312008a0f2e6e73e54cc51f290501a82537ee57d0d2e8d2b9 MISC metadata.xml 730 BLAKE2B 94e9585a2d765ee2a7c85a823c389453bcdbc29b90a5542333eef1253d4ebafb7c26e383dfe5c5e0fcccf61f60321e7a46b0ae8c5edf467937485d6c9867712a SHA512 663cb6d587113d21fc0d3c703731f4dcaed55fc1bc7e75e1ac465e21b161ba5c4b4cefe0fd838d28b1f890cc33008878996e1d117fcab6435f8ed49f7eb0bc73 diff --git a/dev-libs/elfutils/elfutils-0.185.ebuild b/dev-libs/elfutils/elfutils-0.185.ebuild index 84df482f3f86..26aeca00e2e8 100644 --- a/dev-libs/elfutils/elfutils-0.185.ebuild +++ b/dev-libs/elfutils/elfutils-0.185.ebuild @@ -8,6 +8,7 @@ inherit flag-o-matic multilib-minimal DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)" HOMEPAGE="http://elfutils.org/" SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-0.185-patches.tar.gz" LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )" SLOT="0" @@ -36,20 +37,14 @@ BDEPEND="nls? ( sys-devel/gettext ) RESTRICT="!test? ( test )" PATCHES=( - "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch - "${FILESDIR}"/${PN}-0.177-disable-large.patch - "${FILESDIR}"/${PN}-0.180-PaX-support.patch - "${FILESDIR}"/${PN}-0.185-static-inline.patch - "${FILESDIR}"/${PN}-0.185-pull-advance_pc-in-file-scope.patch - "${FILESDIR}"/${PN}-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch - "${FILESDIR}"/${PN}-0.185-glibc-2.34-test-failure.patch + "${WORKDIR}"/${PN}-0.185-patches/ ) src_prepare() { default if use elibc_musl; then - eapply "${FILESDIR}"/musl/ + eapply "${WORKDIR}"/${PN}-0.185-patches/musl/ fi if ! use static-libs; then diff --git a/dev-libs/elfutils/elfutils-0.186.ebuild b/dev-libs/elfutils/elfutils-0.186.ebuild index d7c479481a35..e8c5b4a6a800 100644 --- a/dev-libs/elfutils/elfutils-0.186.ebuild +++ b/dev-libs/elfutils/elfutils-0.186.ebuild @@ -8,6 +8,7 @@ inherit flag-o-matic multilib-minimal DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)" HOMEPAGE="https://elfutils.org/" SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-0.186-patches.tar.gz" LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )" SLOT="0" @@ -36,23 +37,14 @@ BDEPEND="nls? ( sys-devel/gettext ) RESTRICT="!test? ( test )" PATCHES=( - "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch - "${FILESDIR}"/${PN}-0.177-disable-large.patch - "${FILESDIR}"/${PN}-0.180-PaX-support.patch + "${WORKDIR}"/${PN}-0.186-patches/ ) src_prepare() { default if use elibc_musl; then - mkdir -p "${T}"/musl || die - cp -rv "${FILESDIR}"/musl/*.patch "${T}"/musl || die - - # Delete patches upstreamed in 0.186 - rm "${T}/musl/${PN}-0.185-error-h.patch" || die - rm "${T}/musl/${PN}-0.185-strndupa.patch" || die - - eapply "${T}"/musl/ + eapply "${WORKDIR}"/${PN}-0.186-patches/musl/ fi if ! use static-libs; then diff --git a/dev-libs/elfutils/files/elfutils-0.175-disable-biarch-test-PR24158.patch b/dev-libs/elfutils/files/elfutils-0.175-disable-biarch-test-PR24158.patch deleted file mode 100644 index 809c3df1efad..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.175-disable-biarch-test-PR24158.patch +++ /dev/null @@ -1,9 +0,0 @@ -https://sourceware.org/PR24158 - -Tets fails when 32-bit elfutils tries to dump 64-bit process. ---- a/tests/run-backtrace-native-biarch.sh -+++ b/tests/run-backtrace-native-biarch.sh -@@ -17,2 +17,3 @@ - -+ELFUTILS_DISABLE_BIARCH=yes # https://sourceware.org/PR24158 - if test -n "$ELFUTILS_DISABLE_BIARCH"; then diff --git a/dev-libs/elfutils/files/elfutils-0.177-disable-large.patch b/dev-libs/elfutils/files/elfutils-0.177-disable-large.patch deleted file mode 100644 index 782958517611..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.177-disable-large.patch +++ /dev/null @@ -1,14 +0,0 @@ -getconf does not disable test on 64-kernel with CFLAGS=-m32 ---- a/tests/run-large-elf-file.sh -+++ b/tests/run-large-elf-file.sh -@@ -19,6 +19,10 @@ - - # Only run on 64bit systems, 32bit systems don't support > 4GB - # ELF files. -+ -+# this detection fails for 64-bit systems with -m32 -+exit 77 -+ - long_bit=$(getconf LONG_BIT) - echo "long_bit: $long_bit" - if test $long_bit -ne 64; then diff --git a/dev-libs/elfutils/files/elfutils-0.180-PaX-support.patch b/dev-libs/elfutils/files/elfutils-0.180-PaX-support.patch deleted file mode 100644 index 2d44c757711a..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.180-PaX-support.patch +++ /dev/null @@ -1,26 +0,0 @@ -Add support for PaX ELF markings - -Patch by Kevin F. Quinn - -http://bugs.gentoo.org/115100 - ---- a/libelf/elf.h -+++ b/libelf/elf.h -@@ -722,6 +722,7 @@ typedef struct - #define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */ - #define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ - #define PT_GNU_PROPERTY 0x6474e553 /* GNU property */ -+#define PT_PAX_FLAGS 0x65041580 /* Indicates PaX flag markings */ - #define PT_LOSUNW 0x6ffffffa - #define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ - #define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ ---- a/src/elflint.c -+++ b/src/elflint.c -@@ -4493,6 +4493,7 @@ only executables, shared objects, and core files can have program headers\n")); - - if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME - && phdr->p_type != PT_GNU_STACK && phdr->p_type != PT_GNU_RELRO -+ && phdr->p_type != PT_PAX_FLAGS - && phdr->p_type != PT_GNU_PROPERTY - /* Check for a known machine-specific type. */ - && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL) diff --git a/dev-libs/elfutils/files/elfutils-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch b/dev-libs/elfutils/files/elfutils-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch deleted file mode 100644 index fe0b111ca859..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch +++ /dev/null @@ -1,146 +0,0 @@ -From c9ff5c53c319f963cac34a41c86cd43edf902459 Mon Sep 17 00:00:00 2001 -From: Adrian Ratiu -Date: Mon, 30 Aug 2021 18:43:13 +0300 -Subject: [PATCH] configure.ac: rework gnu99 ext check to allow clang - -It is true that Clang does not support all gnu99 extensions [1], -but not all of them are used in the codebase and over time there -have been code cleanup efforts to improve Clang support. - -For example after commit 779c57ea ("readelf: Pull advance_pc() -in file scope") there are no more nested function declarations -and elfutils now builds fine with Clang. - -So in the interest of enabling Clang builds we remove the only -remaining blocker: the configure checks for nested functions and -variable length arrays which are also unused. - -Considering mixed decls and code is also part of c99 standard, -the entire check becomes redundant and we can just replace -AC_PROG_CC -> AC_PROG_CC_C99. - -Upstream-Status: Backport [master commit 6eb991a9] - -[1] https://sourceware.org/bugzilla/show_bug.cgi?id=24964 -[Adrian: backported to v0.185] -Signed-off-by: Adrian Ratiu ---- - configure | 48 ------------------------------------------------ - configure.ac | 35 +---------------------------------- - 2 files changed, 1 insertion(+), 82 deletions(-) - -diff --git a/configure b/configure -index 4ea75ee..22bda6c 100755 ---- a/configure -+++ b/configure -@@ -5162,54 +5162,6 @@ else - fi - - --# We use -std=gnu99 but have explicit checks for some language constructs --# and GNU extensions since some compilers claim GNU99 support, but don't --# really support all language extensions. In particular we need --# Mixed Declarations and Code --# https://gcc.gnu.org/onlinedocs/gcc/Mixed-Declarations.html --# Nested Functions --# https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html --# Arrays of Variable Length --# https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html --{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc with GNU99 support" >&5 --$as_echo_n "checking for gcc with GNU99 support... " >&6; } --if ${ac_cv_c99+:} false; then : -- $as_echo_n "(cached) " >&6 --else -- old_CFLAGS="$CFLAGS" --CFLAGS="$CFLAGS -std=gnu99" --cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ --int foo (int a) --{ -- for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; return s; --} -- --double bar (double a, double b) --{ -- double square (double z) { return z * z; } -- return square (a) + square (b); --} -- --void baz (int n) --{ -- struct S { int x[n]; }; --} --_ACEOF --if ac_fn_c_try_compile "$LINENO"; then : -- ac_cv_c99=yes --else -- ac_cv_c99=no --fi --rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext --CFLAGS="$old_CFLAGS" --fi --{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99" >&5 --$as_echo "$ac_cv_c99" >&6; } --if test "x$ac_cv_c99" != xyes; then : -- as_fn_error $? "gcc with GNU99 support required" "$LINENO" 5 --fi -- - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports __attribute__((visibility()))" >&5 - $as_echo_n "checking whether gcc supports __attribute__((visibility()))... " >&6; } - if ${ac_cv_visibility+:} false; then : -diff --git a/configure.ac b/configure.ac -index b348a71..6298547 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -87,7 +87,7 @@ AS_IF([test "$use_locks" = yes], - - AH_TEMPLATE([USE_LOCKS], [Defined if libraries should be thread-safe.]) - --AC_PROG_CC -+AC_PROG_CC_C99 - AC_PROG_RANLIB - AC_PROG_YACC - AM_PROG_LEX -@@ -96,39 +96,6 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) - AC_CHECK_TOOL([READELF], [readelf]) - AC_CHECK_TOOL([NM], [nm]) - --# We use -std=gnu99 but have explicit checks for some language constructs --# and GNU extensions since some compilers claim GNU99 support, but don't --# really support all language extensions. In particular we need --# Mixed Declarations and Code --# https://gcc.gnu.org/onlinedocs/gcc/Mixed-Declarations.html --# Nested Functions --# https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html --# Arrays of Variable Length --# https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html --AC_CACHE_CHECK([for gcc with GNU99 support], ac_cv_c99, [dnl --old_CFLAGS="$CFLAGS" --CFLAGS="$CFLAGS -std=gnu99" --AC_COMPILE_IFELSE([AC_LANG_SOURCE([dnl --int foo (int a) --{ -- for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; return s; --} -- --double bar (double a, double b) --{ -- double square (double z) { return z * z; } -- return square (a) + square (b); --} -- --void baz (int n) --{ -- struct S { int x[[n]]; }; --}])], -- ac_cv_c99=yes, ac_cv_c99=no) --CFLAGS="$old_CFLAGS"]) --AS_IF([test "x$ac_cv_c99" != xyes], -- AC_MSG_ERROR([gcc with GNU99 support required])) -- - AC_CACHE_CHECK([whether gcc supports __attribute__((visibility()))], - ac_cv_visibility, [dnl - save_CFLAGS="$CFLAGS" --- -2.33.0 - diff --git a/dev-libs/elfutils/files/elfutils-0.185-glibc-2.34-test-failure.patch b/dev-libs/elfutils/files/elfutils-0.185-glibc-2.34-test-failure.patch deleted file mode 100644 index 134e642ab0eb..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.185-glibc-2.34-test-failure.patch +++ /dev/null @@ -1,124 +0,0 @@ -https://sourceware.org/git/?p=elfutils.git;a=commit;h=9aee0992d6e6ec4cce2c015d8da4b61022c6f6dd - -Author: Mark Wielaard -Date: Wed Aug 4 21:01:27 2021 +0200 - - tests: Allow an extra pthread_kill frame in backtrace tests - - glibc 2.34 calls pthread_kill from the raise function. Before raise - directly called the (tg)kill syscall. So allow pthread_kill to be the - first frame in a backtrace where raise is expected. Also change some - asserts to fprintf plus abort to make it more clear why the testcase - fails. - - https://sourceware.org/bugzilla/show_bug.cgi?id=28190 - - Signed-off-by: Mark Wielaard - ---- a/tests/backtrace.c -+++ b/tests/backtrace.c -@@ -97,6 +97,9 @@ callback_verify (pid_t tid, unsigned frameno, Dwarf_Addr pc, - static bool reduce_frameno = false; - if (reduce_frameno) - frameno--; -+ static bool pthread_kill_seen = false; -+ if (pthread_kill_seen) -+ frameno--; - if (! use_raise_jmp_patching && frameno >= 2) - frameno += 2; - const char *symname2 = NULL; -@@ -107,11 +110,26 @@ callback_verify (pid_t tid, unsigned frameno, Dwarf_Addr pc, - && (strcmp (symname, "__kernel_vsyscall") == 0 - || strcmp (symname, "__libc_do_syscall") == 0)) - reduce_frameno = true; -+ else if (! pthread_kill_seen && symname -+ && strstr (symname, "pthread_kill") != NULL) -+ pthread_kill_seen = true; - else -- assert (symname && strcmp (symname, "raise") == 0); -+ { -+ if (!symname || strcmp (symname, "raise") != 0) -+ { -+ fprintf (stderr, -+ "case 0: expected symname 'raise' got '%s'\n", symname); -+ abort (); -+ } -+ } - break; - case 1: -- assert (symname != NULL && strcmp (symname, "sigusr2") == 0); -+ if (symname == NULL || strcmp (symname, "sigusr2") != 0) -+ { -+ fprintf (stderr, -+ "case 1: expected symname 'sigusr2' got '%s'\n", symname); -+ abort (); -+ } - break; - case 2: // x86_64 only - /* __restore_rt - glibc maybe does not have to have this symbol. */ -@@ -120,11 +138,21 @@ callback_verify (pid_t tid, unsigned frameno, Dwarf_Addr pc, - if (use_raise_jmp_patching) - { - /* Verify we trapped on the very first instruction of jmp. */ -- assert (symname != NULL && strcmp (symname, "jmp") == 0); -+ if (symname == NULL || strcmp (symname, "jmp") != 0) -+ { -+ fprintf (stderr, -+ "case 3: expected symname 'raise' got '%s'\n", symname); -+ abort (); -+ } - mod = dwfl_addrmodule (dwfl, pc - 1); - if (mod) - symname2 = dwfl_module_addrname (mod, pc - 1); -- assert (symname2 == NULL || strcmp (symname2, "jmp") != 0); -+ if (symname2 == NULL || strcmp (symname2, "jmp") != 0) -+ { -+ fprintf (stderr, -+ "case 3: expected symname2 'jmp' got '%s'\n", symname2); -+ abort (); -+ } - break; - } - FALLTHROUGH; -@@ -137,11 +165,22 @@ callback_verify (pid_t tid, unsigned frameno, Dwarf_Addr pc, - duplicate_sigusr2 = true; - break; - } -- assert (symname != NULL && strcmp (symname, "stdarg") == 0); -+ if (symname == NULL || strcmp (symname, "stdarg") != 0) -+ { -+ fprintf (stderr, -+ "case 4: expected symname 'stdarg' got '%s'\n", symname); -+ abort (); -+ } - break; - case 5: - /* Verify we trapped on the very last instruction of child. */ -- assert (symname != NULL && strcmp (symname, "backtracegen") == 0); -+ if (symname == NULL || strcmp (symname, "backtracegen") != 0) -+ { -+ fprintf (stderr, -+ "case 5: expected symname 'backtracegen' got '%s'\n", -+ symname); -+ abort (); -+ } - mod = dwfl_addrmodule (dwfl, pc); - if (mod) - symname2 = dwfl_module_addrname (mod, pc); -@@ -151,7 +190,15 @@ callback_verify (pid_t tid, unsigned frameno, Dwarf_Addr pc, - // instructions or even inserts some padding instructions at the end - // (which apparently happens on ppc64). - if (use_raise_jmp_patching) -- assert (symname2 == NULL || strcmp (symname2, "backtracegen") != 0); -+ { -+ if (symname2 != NULL && strcmp (symname2, "backtracegen") == 0) -+ { -+ fprintf (stderr, -+ "use_raise_jmp_patching didn't expect symname2 " -+ "'backtracegen'\n"); -+ abort (); -+ } -+ } - break; - } - } diff --git a/dev-libs/elfutils/files/elfutils-0.185-pull-advance_pc-in-file-scope.patch b/dev-libs/elfutils/files/elfutils-0.185-pull-advance_pc-in-file-scope.patch deleted file mode 100644 index e0678c9ba73e..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.185-pull-advance_pc-in-file-scope.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 779c57ea864d104bad88455535df9b26336349fd Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Timm=20B=C3=A4der?= -Date: Thu, 18 Mar 2021 10:25:24 +0100 -Subject: [PATCH] readelf: Pull advance_pc() in file scope -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Make advance_pc() a static function so we can get rid of another nested -function. Rename it to run_advance_pc() and use a local advance_pc() -macro to pass all the local variables. This is similar to what the -equivalent code in libdw/dwarf_getsrclines.c is doing. - -Upstream-Status: Backport [master commit 779c57ea] - -Signed-off-by: Timm Bäder -[Adrian: backported to v0.185] -Signed-off-by: Adrian Ratiu ---- - src/ChangeLog | 7 +++++++ - src/readelf.c | 26 +++++++++++++++++++------- - 2 files changed, 26 insertions(+), 7 deletions(-) - -diff --git a/src/readelf.c b/src/readelf.c -index 161d7e65..8191bde2 100644 ---- a/src/readelf.c -+++ b/src/readelf.c -@@ -8373,6 +8373,23 @@ print_form_data (Dwarf *dbg, int form, const unsigned char *readp, - return readp; - } - -+/* Only used via run_advance_pc() macro */ -+static inline void -+run_advance_pc (unsigned int op_advance, -+ unsigned int minimum_instr_len, -+ unsigned int max_ops_per_instr, -+ unsigned int *op_addr_advance, -+ Dwarf_Word *address, -+ unsigned int *op_index) -+{ -+ const unsigned int advanced_op_index = (*op_index) + op_advance; -+ -+ *op_addr_advance = minimum_instr_len * (advanced_op_index -+ / max_ops_per_instr); -+ *address = *address + *op_addr_advance; -+ *op_index = advanced_op_index % max_ops_per_instr; -+} -+ - static void - print_debug_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, - Elf_Scn *scn, GElf_Shdr *shdr, Dwarf *dbg) -@@ -8763,13 +8780,8 @@ print_debug_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, - /* Apply the "operation advance" from a special opcode - or DW_LNS_advance_pc (as per DWARF4 6.2.5.1). */ - unsigned int op_addr_advance; -- inline void advance_pc (unsigned int op_advance) -- { -- op_addr_advance = minimum_instr_len * ((op_index + op_advance) -- / max_ops_per_instr); -- address += op_addr_advance; -- op_index = (op_index + op_advance) % max_ops_per_instr; -- } -+#define advance_pc(op_advance) run_advance_pc(op_advance, minimum_instr_len, \ -+ max_ops_per_instr, &op_addr_advance, &address, &op_index) - - if (max_ops_per_instr == 0) - { --- -2.32.0 - diff --git a/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch b/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch deleted file mode 100644 index ec1aaf47a331..000000000000 --- a/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch +++ /dev/null @@ -1,12 +0,0 @@ -https://bugs.gentoo.org/794601 ---- a/src/elflint.c -+++ b/src/elflint.c -@@ -3434,7 +3434,7 @@ buffer_pos (Elf_Data *data, const unsigned char *p) - return p - (const unsigned char *) data->d_buf; - } - --inline size_t -+static inline size_t - buffer_left (Elf_Data *data, const unsigned char *p) - { - return (const unsigned char *) data->d_buf + data->d_size - p; diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch b/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch deleted file mode 100644 index 222c0527b689..000000000000 --- a/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch +++ /dev/null @@ -1,57 +0,0 @@ -https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832 -https://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch -https://bugs.gentoo.org/693772 - -Other variants/links: -https://git.alpinelinux.org/aports/tree/main/elfutils/fix-aarch64_fregs.patch -https://github.com/gentoo/musl/blob/6450482b9b4463b57ac249c63b7ed796e9874c40/dev-libs/elfutils/files/0.178/fix-aarch64_fregs.patch - -From: Hongxu Jia -Date: Tue, 15 Aug 2017 17:27:30 +0800 -Subject: [PATCH] Fix build on aarch64/musl - -Errors - -invalid operands to binary & (have 'long double' and 'unsigned int') - -error: redefinition - of 'struct iovec' - struct iovec { void *iov_base; size_t iov_len; }; - ^ -Upstream-Status: Pending -Signed-off-by: Khem Raj - -Rebase to 0.170 -Signed-off-by: Hongxu Jia - ---- a/backends/aarch64_initreg.c -+++ b/backends/aarch64_initreg.c -@@ -33,7 +33,7 @@ - #include "system.h" - #include - #if defined(__aarch64__) && defined(__linux__) --# include -+# include - # include - # include - /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ -@@ -82,7 +82,7 @@ aarch64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), - - Dwarf_Word dwarf_fregs[32]; - for (int r = 0; r < 32; r++) -- dwarf_fregs[r] = fregs.vregs[r] & 0xFFFFFFFF; -+ dwarf_fregs[r] = (unsigned int)fregs.vregs[r] & 0xFFFFFFFF; - - if (! setfunc (64, 32, dwarf_fregs, arg)) - return false; ---- a/backends/arm_initreg.c -+++ b/backends/arm_initreg.c -@@ -38,7 +38,7 @@ - #endif - - #ifdef __aarch64__ --# include -+# include - # include - # include - /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-cdefs.patch b/dev-libs/elfutils/files/musl/elfutils-0.185-cdefs.patch deleted file mode 100644 index 42fc10945ebe..000000000000 --- a/dev-libs/elfutils/files/musl/elfutils-0.185-cdefs.patch +++ /dev/null @@ -1,20 +0,0 @@ -From: Jory Pratt -Date: Thu, 12 Dec 2019 22:38:30 -0600 -Subject: [PATCH 3/3] Fix cdefs.h include for musl - ---- a/lib/fixedsizehash.h -+++ b/lib/fixedsizehash.h -@@ -30,8 +30,11 @@ - #include - #include - #include -+#if !defined(__GLIBC__) -+#include -+#else - #include -- -+#endif - #include - - #ifdef __CONCAT - diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch b/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch deleted file mode 100644 index 2be63fca48df..000000000000 --- a/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch +++ /dev/null @@ -1,68 +0,0 @@ -Should be obsolete with the next release (0.186?). - -https://raw.githubusercontent.com/gentoo/musl/master/dev-libs/elfutils/files/0.178/musl-error_h.patch -https://sourceware.org/bugzilla/show_bug.cgi?id=21008 - -Date: Thu, 12 Dec 2019 22:00:47 -0600 -Subject: [PATCH 9/9] Add hacked up error header for non GLIBC machines - ---- /dev/null -+++ b/lib/error.h -@@ -0,0 +1,27 @@ -+#ifndef _ERROR_H_ -+#define _ERROR_H_ -+ -+#include -+#include -+#include -+#include -+#include -+ -+static unsigned int error_message_count = 0; -+ -+static inline void error(int status, int errnum, const char* format, ...) -+{ -+ va_list ap; -+ fprintf(stderr, "%s: ", program_invocation_name); -+ va_start(ap, format); -+ vfprintf(stderr, format, ap); -+ va_end(ap); -+ if (errnum) -+ fprintf(stderr, ": %s", strerror(errnum)); -+ fprintf(stderr, "\n"); -+ error_message_count++; -+ if (status) -+ exit(status); -+} -+ -+#endif /* _ERROR_H_ */ ---- /dev/null -+++ b/src/error.h -@@ -0,0 +1,27 @@ -+#ifndef _ERROR_H_ -+#define _ERROR_H_ -+ -+#include -+#include -+#include -+#include -+#include -+ -+static unsigned int error_message_count = 0; -+ -+static inline void error(int status, int errnum, const char* format, ...) -+{ -+ va_list ap; -+ fprintf(stderr, "%s: ", program_invocation_name); -+ va_start(ap, format); -+ vfprintf(stderr, format, ap); -+ va_end(ap); -+ if (errnum) -+ fprintf(stderr, ": %s", strerror(errnum)); -+ fprintf(stderr, "\n"); -+ error_message_count++; -+ if (status) -+ exit(status); -+} -+ -+#endif /* _ERROR_H_ */ diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch b/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch deleted file mode 100644 index 6ab2e96548bd..000000000000 --- a/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch +++ /dev/null @@ -1,86 +0,0 @@ -May not be required (or at least some hunks) with next release (0.186?) - -https://git.alpinelinux.org/aports/plain/main/elfutils/musl-macros.patch ---- a/src/arlib.h -+++ b/src/arlib.h -@@ -29,6 +29,16 @@ - #include - #include - -+#if !defined(ACCESSPERMS) -+# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ -+#endif -+#if !defined(ALLPERMS) -+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */ -+#endif -+#if !defined(DEFFILEMODE) -+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/ -+#endif -+ - - /* State of -D/-U flags. */ - extern bool arlib_deterministic_output; ---- a/src/elfcompress.c -+++ b/src/elfcompress.c -@@ -35,6 +35,14 @@ - #include - #include "system.h" - -+#if !defined(FNM_EXTMATCH) -+# define FNM_EXTMATCH 0 -+#endif -+ -+#if !defined(ALLPERMS) -+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */ -+#endif -+ - /* Name and version of program. */ - static void print_version (FILE *stream, struct argp_state *state); - ARGP_PROGRAM_VERSION_HOOK_DEF = print_version; ---- a/lib/libeu.h -+++ b/lib/libeu.h -@@ -31,6 +31,27 @@ - - #include - #include -+#include -+#include -+#include -+ -+#ifndef TEMP_FAILURE_RETRY -+#define TEMP_FAILURE_RETRY(expression) \ -+ (__extension__ \ -+ ({ long int __result; \ -+ do __result = (long int) (expression); \ -+ while (__result == -1L && errno == EINTR); \ -+ __result; })) -+#endif -+ -+#ifndef strndupa -+#define strndupa(s, n) \ -+ (__extension__ ({const char *__in = (s); \ -+ size_t __len = strnlen (__in, (n)) + 1; \ -+ char *__out = (char *) alloca (__len); \ -+ __out[__len-1] = '\0'; \ -+ (char *) memcpy (__out, __in, __len-1);})) -+#endif - - extern void *xmalloc (size_t) __attribute__ ((__malloc__)); - extern void *xcalloc (size_t, size_t) __attribute__ ((__malloc__)); ---- a/src/strip.c -+++ b/src/strip.c -@@ -46,6 +46,14 @@ - #include - #include - -+#if !defined(FNM_EXTMATCH) -+# define FNM_EXTMATCH 0 -+#endif -+ -+#if !defined(ACCESSPERMS) -+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) -+#endif -+ - typedef uint8_t GElf_Byte; - - /* Name and version of program. */ diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch b/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch deleted file mode 100644 index 030bc779c614..000000000000 --- a/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch +++ /dev/null @@ -1,22 +0,0 @@ -Should be fixed in next release (0.186?). - -https://sourceware.org/git/?p=elfutils.git;a=commit;h=e7e4c92650892cf67210be5ea89ffba967427cbf -https://git.alpinelinux.org/aports/plain/main/elfutils/musl-strndupa.patch ---- a/src/unstrip.c -+++ b/src/unstrip.c -@@ -56,6 +56,15 @@ - # define _(str) gettext (str) - #endif - -+#ifndef strndupa -+#define strndupa(s, n) \ -+ (__extension__ ({const char *__in = (s); \ -+ size_t __len = strnlen (__in, (n)) + 1; \ -+ char *__out = (char *) alloca (__len); \ -+ __out[__len-1] = '\0'; \ -+ (char *) memcpy (__out, __in, __len-1);})) -+#endif -+ - /* Name and version of program. */ - ARGP_PROGRAM_VERSION_HOOK_DEF = print_version; - -- cgit v1.2.3