summaryrefslogtreecommitdiff
path: root/dev-debug
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-14 03:02:32 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-14 03:02:32 +0000
commitd3c7d3e5f9607edef1a795ccc502ab3eb3121165 (patch)
treed36ccc4ef4aa53927a8cd66bc5d3ab06fe1bdd24 /dev-debug
parent4dc2f97ed84159736ecfb5dea5485e83b27810d1 (diff)
gentoo auto-resync : 14:11:2024 - 03:02:32
Diffstat (limited to 'dev-debug')
-rw-r--r--dev-debug/Manifest.gzbin4187 -> 4188 bytes
-rw-r--r--dev-debug/gdb/Manifest2
-rw-r--r--dev-debug/gdb/gdb-15.2.ebuild2
-rw-r--r--dev-debug/lldb/Manifest2
-rw-r--r--dev-debug/lldb/lldb-20.0.0_pre20241113.ebuild110
-rw-r--r--dev-debug/valgrind/Manifest10
-rw-r--r--dev-debug/valgrind/files/0001-valgrind-monitor.py-regular-expressions-should-use-r.patch61
-rw-r--r--dev-debug/valgrind/files/0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch144
-rw-r--r--dev-debug/valgrind/files/0003-Add-fchmodat2-syscall-on-linux.patch218
-rw-r--r--dev-debug/valgrind/files/0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch151
-rw-r--r--dev-debug/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch26
-rw-r--r--dev-debug/valgrind/valgrind-3.22.0-r2.ebuild165
-rw-r--r--dev-debug/valgrind/valgrind-3.23.0_p2.ebuild193
13 files changed, 114 insertions, 970 deletions
diff --git a/dev-debug/Manifest.gz b/dev-debug/Manifest.gz
index ae4e72f96c48..de5e1f3676f1 100644
--- a/dev-debug/Manifest.gz
+++ b/dev-debug/Manifest.gz
Binary files differ
diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest
index 6ebbdd5a8434..badb932639e2 100644
--- a/dev-debug/gdb/Manifest
+++ b/dev-debug/gdb/Manifest
@@ -7,6 +7,6 @@ EBUILD gdb-14.2-r1.ebuild 9174 BLAKE2B 37449681d4d5a88c12ab0124b859397d5f12e05c3
EBUILD gdb-15.1-r100.ebuild 8871 BLAKE2B b25f88819d92cad9d573abd5d95e1618e70adafca46e27e1f6f69967f5640e02f0398fa8e25593d29a1c83d03d4f2c11c5896ebada9b213465646a5df792258a SHA512 f6e407c312a8300a987eae26dc65fcfbd273a57c95ef1944cad4f9f739f1a4497aba3792e6eafd18224d40144d9e077671c2222f6ce11fb853170366a322344c
EBUILD gdb-15.1.ebuild 8661 BLAKE2B 7c45e22ee78fdbd45713108bfb6b55b0f339efeba7edb55a145d6e20a81878da3dfd557def84c33afe51dd0c8c6e92f53224c760b89cad49677aac8ef8ea9d95 SHA512 f58271ea03e864ba3a52e22f3f24fca8fb9680e025bd754815a60fdb45115421400169a94d5bfa6e9bda973bd819cf6d148f278e3fe14d0f07ea2613556c7550
EBUILD gdb-15.2-r100.ebuild 8866 BLAKE2B aacde6467cbfecd2b03d161362942d4c52a0fde365cfd0f383f2c3ca61da65c26ff6441ea665c5c57da215292e9f5a032822e8894990a9d1ebb38668a0f1d162 SHA512 c50b21ff00eb24b382a11f75212bb6f285c9c9d801ba373a4dc77598749a3ed44c23e10ced3e8a5818f4f30890070cc0de9eedafffe53b9a1d2c810abde88c76
-EBUILD gdb-15.2.ebuild 8654 BLAKE2B f8eceb5ed1f59304b476f738a8fecec19ccb0887a5fda6d2e4119e773d8c3307ba60256ec728626989bee2c691247ac650b03a5ad1453a64eaff13cff4bf36ca SHA512 87c67822b04c534133a0265eb92eb1c6cfd4e87bb55f9f21ce1a5b1f3731301b6753f18ae89071515d223fe47e16ebc9268da62ff8b6202d2f7be3fdbc102211
+EBUILD gdb-15.2.ebuild 8653 BLAKE2B 01e33c1a22b7ba867c62db5de5c5bc3485444d6b389c815be783c7318bc62802bc2bd46f76636c5682ce6206e609ab023f4eab62535fb1142f775c194ee1dc6a SHA512 bec0d2fb9eeb671d0616331af2f182d9b9d279632db4cb858635e0c81cfb7f379d11b5a07c7e843c73051d44d30e275ab2231a05314c15dd308a1e4d58ff10af
EBUILD gdb-9999.ebuild 9271 BLAKE2B 1568591bb998c1387328f68bb0641b44d2fe6fa2718d3f5c53c97f6031a808fb0495de0d42d8c632943fb98e11dc2f38a2a495b7e8f80e7c870e6fccba7f42bc SHA512 3a60e1d3512efbc5a1b2f1740953aeff154014472eb556c1ce9c06659aacaee38f6aaed260128c2ca201406896637129fa5eac9b5ecf7775367893599d3e0b5f
MISC metadata.xml 1348 BLAKE2B 61eb80efbf21b4d0ededbe138710ef7ce69d4c2c137448d780a0a18db13b1b80ccfc41adf9cd825358bb952dae3a627f07d2cb89845ca52383d05fe32c494b49 SHA512 b50fe1fd5fccf7eddac4eff4fd7be955e02227763725b8e00d8e3606346afa978079ed8b754948b9a3ee065441acba4787b48c2b2d55535e0f8b9405fb4f2e90
diff --git a/dev-debug/gdb/gdb-15.2.ebuild b/dev-debug/gdb/gdb-15.2.ebuild
index 0a390dda249a..c4ff9f7ebdd1 100644
--- a/dev-debug/gdb/gdb-15.2.ebuild
+++ b/dev-debug/gdb/gdb-15.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
SLOT="0"
IUSE="cet debuginfod guile lzma multitarget nls +python +server sim source-highlight test vanilla xml xxhash zstd"
if [[ -n ${REGULAR_RELEASE} ]] ; then
- KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
fi
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
diff --git a/dev-debug/lldb/Manifest b/dev-debug/lldb/Manifest
index 289e07ebeef0..ecb62475c15d 100644
--- a/dev-debug/lldb/Manifest
+++ b/dev-debug/lldb/Manifest
@@ -11,6 +11,7 @@ DIST llvm-project-18.1.8.src.tar.xz.sig 566 BLAKE2B 6ab0efc5b38d4483f4e32e8b8577
DIST llvm-project-19.1.3.src.tar.xz 141247864 BLAKE2B 4ccb30accd632a7d54eb065b724ff81ec8a50380fa527111d58acd728eecb798d42f680119b6d1cbc980523e2f39220921ca1f530daa7afea05ab27436dedb7e SHA512 0abaf158b373892d5afc184158600df17a0797547ad7238ca9018d6fcdd7310b0db803d158daa82a2e04bd42d9daebaa2c3e4b9024c0fa2df72a88596575df5c
DIST llvm-project-19.1.3.src.tar.xz.sig 438 BLAKE2B 44717741ae13bb0c52382647352e52273d8401728dc5cc1cf0c11a8f08cd74b6e3d789e788793aad767030b36fdec62e3a05bdc0b7ff60556cec7ceac17fc239 SHA512 84ef22ee78dbaad4710becbcb02119d06063099f9102bb86f3cd44fbb7e2d87bafe239d8e0cbf22ab5a479f99a11a77125f22394d5006ed86262076ccbf1634d
DIST llvm-project-3f4468faaa9525ad615118675c3c68938f4a8d5f.tar.gz 221860252 BLAKE2B 6c531df34163dc0879c79b029a13215d1bef2cd95bbaf4a6d5e10b81a8352236283d40f14b62e23a57cc1cf8edce138fb6e2720ced2397d6469c5863564c626d SHA512 4aa485f4547e210cf8f6f8147c4adab3e75afe77f1e4e1bc4718fe681b64bdcf8937f843964542f8ead90ceef52cc0fd4bd8275824d1a4c6961eddafc7d35115
+DIST llvm-project-c7df10643bda4acdc9a02406a2eee8aa4ced747f.tar.gz 222622409 BLAKE2B 8b6b53e0d51a681ec2e3ea1c873df95357e1333a598d26921c72f4ce05872aa5fe00a046bfe8811e2c8c1a2ffced7a325a0399bd931e54cf2aeb23abe887bde7 SHA512 e78219c87f001c813844ff652bf065f7c1d1bbf09af801ed1e99e9f40b981896bcee699d2ab15c71478388987c4030750a7958265d374b9f568fdf7af3dd3a21
EBUILD lldb-15.0.7.ebuild 2787 BLAKE2B 606d1bef5194c6d173480719f131847bda2093a14937e831972e3514e86b9ab3f420f7d9cbc60457dacfa0613af21b88f0f91b20ac2215d10b18acf73a938885 SHA512 3e9adac80fbf2a37784e197e882d3a797e6f37b18afc06b8952f587b9259a0610b08702472360e4828e5499f56a520566cbbf869c19380227eaea172d2b35934
EBUILD lldb-16.0.6-r1.ebuild 2605 BLAKE2B 93d0148ce952dc67a60579da1516398fe529c4efca3d15844fc7cc7aaac46ac9f5615eca85602346c0c5b6bebcb3343ca61a0e98aa7498e325200632ff084825 SHA512 51dc1b8d85da0bcd8e6f2a42f3da30f20861de1bcce8b03edd7ef924bdea38d192723d87364783e195585c1de096bb5a55ee46a8c9fb9b5da3e211a9228c59df
EBUILD lldb-16.0.6.ebuild 2735 BLAKE2B 02d90b4ef7180e73efeff06ccb61f1f03ecda99183420245bec0c4b7884b01c570c2389a634db9f46386355bd3ccc9cc5a0a4a01e4254a8718a9668f96ea7517 SHA512 325400e59d98e87eceaf12710a127cc5927309f683f2460983004bd6acdd9115775b95b406b872464a0184e8a749d570265c9c18f2df7774021c4377574b68d6
@@ -20,4 +21,5 @@ EBUILD lldb-19.1.3.ebuild 2620 BLAKE2B f2a61e79df52d68eca32a9f95fd1d3ebcbd5e7b21
EBUILD lldb-20.0.0.9999.ebuild 2579 BLAKE2B 296c52f4d439ba21ed699a824cd39bbd8d5bdad0fe4177ab9768b0a105f2e39f61b9e026da1507cbd9456c58eb29b9960da5674f5ef5ff4d1d2ef002f37f7776 SHA512 07a2219aab50601c6c2eb539ca59319b484c61fb6d83fc8a32ae0c0091476d00e8d83c8b4f3f17576f4ea3eb91ca10517961df5cb56db25c65ca5384335f672e
EBUILD lldb-20.0.0_pre20241029.ebuild 2579 BLAKE2B 296c52f4d439ba21ed699a824cd39bbd8d5bdad0fe4177ab9768b0a105f2e39f61b9e026da1507cbd9456c58eb29b9960da5674f5ef5ff4d1d2ef002f37f7776 SHA512 07a2219aab50601c6c2eb539ca59319b484c61fb6d83fc8a32ae0c0091476d00e8d83c8b4f3f17576f4ea3eb91ca10517961df5cb56db25c65ca5384335f672e
EBUILD lldb-20.0.0_pre20241106.ebuild 2579 BLAKE2B 296c52f4d439ba21ed699a824cd39bbd8d5bdad0fe4177ab9768b0a105f2e39f61b9e026da1507cbd9456c58eb29b9960da5674f5ef5ff4d1d2ef002f37f7776 SHA512 07a2219aab50601c6c2eb539ca59319b484c61fb6d83fc8a32ae0c0091476d00e8d83c8b4f3f17576f4ea3eb91ca10517961df5cb56db25c65ca5384335f672e
+EBUILD lldb-20.0.0_pre20241113.ebuild 2579 BLAKE2B 296c52f4d439ba21ed699a824cd39bbd8d5bdad0fe4177ab9768b0a105f2e39f61b9e026da1507cbd9456c58eb29b9960da5674f5ef5ff4d1d2ef002f37f7776 SHA512 07a2219aab50601c6c2eb539ca59319b484c61fb6d83fc8a32ae0c0091476d00e8d83c8b4f3f17576f4ea3eb91ca10517961df5cb56db25c65ca5384335f672e
MISC metadata.xml 495 BLAKE2B dec5cbc692a57ddb85bccb855d6e16893e6e851c6e3b3f321693fd7cb8bf930167976573d61bfca3c29dc667bb57c2c11669299bcc80d1da04fb53ea90ca1826 SHA512 6168aeac121fa7b3f19fe2590c4ad52eae959bfd3bebceebc64a54d254a29226d5424ab031f9730af9f574e3956119856d1ea2008b5d24721b346cf8f5ad7f9f
diff --git a/dev-debug/lldb/lldb-20.0.0_pre20241113.ebuild b/dev-debug/lldb/lldb-20.0.0_pre20241113.ebuild
new file mode 100644
index 000000000000..68e15ff5df60
--- /dev/null
+++ b/dev-debug/lldb/lldb-20.0.0_pre20241113.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit cmake flag-o-matic llvm.org llvm-utils python-single-r1
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
+SLOT="0/${LLVM_SOABI}"
+IUSE="+debug debuginfod +libedit lzma ncurses +python test +xml"
+RESTRICT="test"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DEPEND="
+ debuginfod? (
+ net-misc/curl:=
+ dev-cpp/cpp-httplib:=
+ )
+ libedit? ( dev-libs/libedit:0= )
+ lzma? ( app-arch/xz-utils:= )
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+ xml? ( dev-libs/libxml2:= )
+ ~sys-devel/clang-${PV}
+ ~sys-devel/llvm-${PV}[debuginfod=]
+"
+RDEPEND="
+ ${DEPEND}
+ python? (
+ ${PYTHON_DEPS}
+ )
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ python? (
+ >=dev-lang/swig-3.0.11
+ )
+ test? (
+ $(python_gen_cond_dep "
+ ~dev-python/lit-${PV}[\${PYTHON_USEDEP}]
+ dev-python/psutil[\${PYTHON_USEDEP}]
+ ")
+ sys-devel/lld
+ )
+"
+
+LLVM_COMPONENTS=( lldb cmake llvm/utils )
+LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support third-party )
+llvm.org_set_globals
+
+src_configure() {
+ llvm_prepend_path "${LLVM_MAJOR}"
+
+ # bug #858389 (https://github.com/llvm/llvm-project/issues/83636)
+ filter-lto
+
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
+ local mycmakeargs=(
+ -DLLDB_ENABLE_CURSES=$(usex ncurses)
+ -DLLDB_ENABLE_LIBEDIT=$(usex libedit)
+ -DLLDB_ENABLE_PYTHON=$(usex python)
+ -DLLDB_ENABLE_LUA=OFF
+ -DLLDB_ENABLE_LZMA=$(usex lzma)
+ -DLLDB_ENABLE_LIBXML2=$(usex xml)
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+ -DLLDB_INCLUDE_TESTS=$(usex test)
+
+ -DCLANG_LINK_CLANG_DYLIB=ON
+ # TODO: fix upstream to detect this properly
+ -DHAVE_LIBDL=ON
+ -DHAVE_LIBPTHREAD=ON
+
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+ # ncurses with complete library set (including autodetection
+ # of -ltinfo)
+ -DCURSES_NEED_NCURSES=ON
+
+ -DCLANG_RESOURCE_DIR="../../../clang/${LLVM_MAJOR}"
+
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+ -DPython3_EXECUTABLE="${PYTHON}"
+ )
+ use test && mycmakeargs+=(
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
+ -DLLVM_LIT_ARGS="$(get_lit_flags)"
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ local -x LIT_PRESERVES_TMP=1
+ cmake_build check-lldb-{shell,unit}
+ # failures + hangs
+ #use python && cmake_build check-lldb-api
+}
+
+src_install() {
+ cmake_src_install
+ find "${D}" -name '*.a' -delete || die
+
+ use python && python_optimize
+}
diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index 36c7947e8616..5c3e15a3986a 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -1,21 +1,11 @@
-AUX 0001-valgrind-monitor.py-regular-expressions-should-use-r.patch 2242 BLAKE2B 40322cd16e368671d21d70ba942bb4d5d364d695f102b6cf2f27fc5c22c67afaf81f7b3fade88c82b2f0a42f00fa7ba337d20cf3fcc97e0ef66b1d222ce8a080 SHA512 da93eb6ff753fa8b1f8c5071dc278609c504622cb211bf5ba7f7c564eb9516a85d2f92089a65c61842658582128925bbce25335df8866a785589562ff649c68d
-AUX 0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch 5649 BLAKE2B 9ee09b8822700a9a3a7dbb39f5f79e707b5ec1684aefca8076e43df525a89d06e49acf8179dc9ef5950982edf4d20b74421c54e000e5a2af0dc6480b57b39c2c SHA512 7682dfb145773b78a073253776f24475091246d296576a494be66a6f919d64823ef0eb623ebacadd81f3609033169fab39bbaa0e4700ff3a55edcba6483782d3
-AUX 0003-Add-fchmodat2-syscall-on-linux.patch 9010 BLAKE2B dff52585de0928e880e857961d1526f4676279507cf14ab1797581b2957fd2efc67ecfe7fd1c6e000b2440cf409c2e011cab344f03a5866c9737e567280a093c SHA512 a08ea6d6d56110e52ab46ceffb9b911cb33a21a6ccca042e278c0f39a1a008594d45a98b459f16a04e558ae050e8bc7b32509972a3b46d05d7b89552277aea93
-AUX 0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch 5986 BLAKE2B 535c448a745ab801e97af75407df77ff6d88a88053c2f2db57a923b31d82a2ed656465fd0b795b5aa3d2b82032725699159f0182d0ca5b9de34db269cca44aa0 SHA512 cf31450ba85cd1b73d7814ce6ea365b57b9aacfb3f50b6afd60cba291a1a69e9b3fd9cb6e27cdfc3be7276d55b430a6df8c34e04f46d7143f737314743030625
AUX valgrind-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch 650 BLAKE2B ffb545d6af214a5bd43ff800d52e0d7cfc03feac8d2466da8d4935db659172cd50cf3e2d63b3aff46d81b21846b304671506cd235b710037218fc16e0ef66438 SHA512 7cb5a46c2d8ed4360053289994014b334e32d48b0608ed58662486bd432c31835ef16e2cdfd734f3e4d720e272d2507ec76f0b77e1364237e9f6dbbd97a8abb6
AUX valgrind-3.21.0-glibc-2.34-suppressions.patch 4800 BLAKE2B ea36d61be93ca26b301f78bd4f1ea8b7f6769253101858bf27ae5ffddef5375ed1c0627ec648b7310e43a9546ae2a3c0c28ec4e6e6947e68ab8a2f0b0fa0fe27 SHA512 c21d0b7dbe91683669e92cc9f93d0912987b5b241116df08a48eaf422d9961f2c83398a2d8610c22d8cbf5bddf6f1ab8e08c3cdd1ed77b51269f3584cd8a2622
-AUX valgrind-3.21.0-memcpy-fortify_source.patch 1058 BLAKE2B df5e131dd7c01f0d7cf0b2c5b3ed484d1cebf34fd8f5ae10d37aea36e17903db9f243ccf35962c7b1da225cb8b413810911eae55eddadd5aeaafef3afb2d5f56 SHA512 e52233d187c7594773e00d1531b4488c684e8764b715ea0ec7ec24380c4ac8c1ddf104eb35eb3cc0fdc5f301a1365989bb0f1690b25947935e7c9247364d3c2d
AUX valgrind-3.7.0-respect-flags.patch 360 BLAKE2B 020b9e3af2c6393193edd8be99ff2309f4b138915bd0315090cebd902747678a5b655a8178a8ec8e88782286470922aed505d2a69d6da4d295fd2053d640b035 SHA512 efdb017283b6a5829d1a5acc31b42ddd177a3ab468eb062b8c4fd90b2dbd06679e8d8bc2d6f813e3001efdda831d4410cc8da3a3e42ee2e49efea0423e4b3ca3
-DIST valgrind-3.22.0.tar.bz2 16565502 BLAKE2B 80024371b3e70521996077fba24e233097a6190477ced1b311cd41fead687dcc2511ac0ef723792488f4af08867dff3e1f474816fda09c1604b89059e31c2514 SHA512 2904c13f68245bbafcea70998c6bd20725271300a7e94b6751ca00916943595fc3fac8557da7ea8db31b54a43f092823a0a947bc142829da811d074e1fe49777
-DIST valgrind-3.22.0.tar.bz2.asc 488 BLAKE2B 9e4d4cfac4dcc09bb62beeaa7b9f78bfafd0a6ae8d63e423ff81b7b8f5444a301e4c3030a241644c8070c36ee040832ce99f444678f22611457e325ceae18dd1 SHA512 c2317db564ef816d2b5d1a7f2f680dc1c6ea05abbffde660587946c986af179ea7ca2314d94c792f63f3043b6a44819ddf5661fd60ec2454a2c562e7d2711b36
-DIST valgrind-3.23.0-patches-2.tar.xz 15024 BLAKE2B ca7085a6dd38cda9df9437697109b2cb59dfcb8154b1df20f9ffb20dcde9acfa671298610ccc8a57704b1a5f7f2a11b40352a51264440daaa0780e54027096d0 SHA512 cc7ea14808100b72e6bdf65248687694bf15f982dec1a42b59a9f42d26b9f1bce0e99a867a544f521d509b107792b26d15b75b417838ac2692e8773d52d6d69f
DIST valgrind-3.23.0-patches-3.tar.xz 23084 BLAKE2B 4794143bd80f984d5dc07f792837faa139a4bf8cc6220c7c1e79b85f2c0e6ee579eb5e4220decc264a4e21424683554794d015e10aee20b9e34c16724d64eb58 SHA512 0144142d62552158d90a118591a50412d077d3e79fce333fb6da40aff8acd6c924d15c85f69293d1a189b2ecde66c184cf82c8ba3a134f95c439d50e147e331c
DIST valgrind-3.23.0.tar.bz2 16550038 BLAKE2B 9312761b0531006725f13270984b26c48f71ebe66e355b04410d7c01773c9b78ec21db3259cab398e58b3b68f93f5f074db06efe1f359bd7cf423515576191a4 SHA512 27d038faaaf6154cace2df18c3573291393548ba0738dbb6aba58eab6324c5beaa95fc5f3c0271663ca071baf829b15d806f7e81074f7cf087bef20ea0ed3117
DIST valgrind-3.23.0.tar.bz2.asc 488 BLAKE2B b06781577e3e84e506e56bd4acc7341aecacb6b5898d8f0daab627d24bc70c9c60edad11dc7e3723ac77aa9c7978f1e13af7734e7a37763c720e77ea4ff103a4 SHA512 e10b38c72ed1fb8d79a3fa84ab70c475ec7a15927a578ee6715aa74f9600453f0fb72551053b6c31583321c37dab100bafbf6e689c02a3bc06021f6092b4bc80
DIST valgrind-3.24.0.tar.bz2 16632387 BLAKE2B e11ad08f0062bd39788cd71d7ce058dec7a7207fbbe25f0dbfc7fb5735667809681cec2c843659553fbd49bcc6c71bdb93d87ffda3589247e4ee87c98fe51332 SHA512 6c131ff93d1f432d8362a47285cc377cba224ebca4f18e922c6156f7736d43020ece14d8fd16913498ab00fd18c85e2042a7d5351c3901e80413c584ebb406f3
DIST valgrind-3.24.0.tar.bz2.asc 488 BLAKE2B f6307d10ee3ca26d837bf00471d179655ddbb0137920e175767a9d875aae355cea6727112deb788300a5196d94500bf9b341f8c70d46a1f83c40ae579ad45431 SHA512 37e9188756940960dcfe771d10275de7759ae652c94e710618948a8b366f66f3453f77b7751df0010b58304b203d7b3b56ac7a671d142d620916689ce5c84ae0
-EBUILD valgrind-3.22.0-r2.ebuild 5362 BLAKE2B 5e7d14f2bb4a72e75d3b117d50c7410c37ef5336b1f2955a211258b5f88fb3b1868e8387e1e1ac524f9ac73c044668a94f17f93e8723a6783629de7f153663b7 SHA512 3614b51413fceecafe42a58c1ae79b984f999c19d4140b15ac88830e46917a70c85e9fc8e4c7beb5e47f1923ce8e0197df6f0bbac440ae46fe96778c28ce0150
-EBUILD valgrind-3.23.0_p2.ebuild 5904 BLAKE2B 2f76b9cc027abd62174c67b0d31e8dee04f60404f3c6c5cdb122e7de65ccc4e99dd27a9d029d6312ea9232adc66dafe9cf9500dda21c185821789cc703533285 SHA512 3038a00d1bbb52a982e7e333b55f787b7860fa4350d4f1e9172c04c38674424cbdfa0c5a4a1be54e737b768377f37f0de3b7ffdb74491f175e6105680ab5d4f9
EBUILD valgrind-3.23.0_p3.ebuild 5907 BLAKE2B d5be2a89cc503ee153a372639b890c43575071c2eb9b65d5cd4dd2f05044205a96b59d0bb1048d4676004da35675fe914401ddedd43a2a1fd98365cdf8a6b04a SHA512 4513973e0e255d70492ff20ac25b19598964bcddddfea76e73434e1894303c3b6d1e0441f76bfb57befa6dd02b7c54c49635fb4be80a44a4d82407c382b3f234
EBUILD valgrind-3.24.0.ebuild 5913 BLAKE2B c04dfa9e55e0d78f7084137b87e68bd40dd4e28e39dcedbe8a11fbc6c4f129e6936de58a00b1a6be40db517f7e243880e13f9eafa6618a7f93cfc44ef0c88e98 SHA512 a2f8ee9c79bc0755b652499e9e35cc70286d232d2b01ac99d05088010c16906498d41990a988cbe45195146e0358026e6a1a17a5430ec48d1317d4a46a84e291
EBUILD valgrind-9999.ebuild 5913 BLAKE2B c04dfa9e55e0d78f7084137b87e68bd40dd4e28e39dcedbe8a11fbc6c4f129e6936de58a00b1a6be40db517f7e243880e13f9eafa6618a7f93cfc44ef0c88e98 SHA512 a2f8ee9c79bc0755b652499e9e35cc70286d232d2b01ac99d05088010c16906498d41990a988cbe45195146e0358026e6a1a17a5430ec48d1317d4a46a84e291
diff --git a/dev-debug/valgrind/files/0001-valgrind-monitor.py-regular-expressions-should-use-r.patch b/dev-debug/valgrind/files/0001-valgrind-monitor.py-regular-expressions-should-use-r.patch
deleted file mode 100644
index 70bd723855ad..000000000000
--- a/dev-debug/valgrind/files/0001-valgrind-monitor.py-regular-expressions-should-use-r.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 027b649fdb831868e71be01cafdacc49a5f419ab Mon Sep 17 00:00:00 2001
-From: Mark Wielaard <mark@klomp.org>
-Date: Fri, 17 Nov 2023 14:01:21 +0100
-Subject: [PATCH 1/4] valgrind-monitor.py regular expressions should use raw
- strings
-
-With python 3.12 gdb will produce the following SyntaxWarning when
-loading valgrind-monitor-def.py:
-
- /usr/share/gdb/auto-load/valgrind-monitor-def.py:214:
- SyntaxWarning: invalid escape sequence '\['
- if re.fullmatch("^0x[0123456789ABCDEFabcdef]+\[[^\[\]]+\]$", arg_str):
-
-In a future python version this will become an SyntaxError.
-
-Use a raw strings for the regular expression.
-
-https://bugs.kde.org/show_bug.cgi?id=476708
-(cherry picked from commit 0fbfbe05028ad18efda786a256a2738d2c231ed4)
----
- NEWS | 13 +++++++++++++
- coregrind/m_gdbserver/valgrind-monitor-def.py | 2 +-
- 2 files changed, 14 insertions(+), 1 deletion(-)
-
-diff --git a/NEWS b/NEWS
-index f11da4be8..ee5b4ff11 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,16 @@
-+Branch 3.22
-+~~~~~~~~~~~
-+
-+* ==================== FIXED BUGS ====================
-+
-+The following bugs have been fixed or resolved on this branch.
-+
-+476708 valgrind-monitor.py regular expressions should use raw strings
-+
-+To see details of a given bug, visit
-+ https://bugs.kde.org/show_bug.cgi?id=XXXXXX
-+where XXXXXX is the bug number as listed above.
-+
- Release 3.22.0 (31 Oct 2023)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-diff --git a/coregrind/m_gdbserver/valgrind-monitor-def.py b/coregrind/m_gdbserver/valgrind-monitor-def.py
-index b4e7b992d..d74b1590c 100644
---- a/coregrind/m_gdbserver/valgrind-monitor-def.py
-+++ b/coregrind/m_gdbserver/valgrind-monitor-def.py
-@@ -211,7 +211,7 @@ class Valgrind_ADDR_LEN_opt(Valgrind_Command):
- For compatibility reason with the Valgrind gdbserver monitor command,
- we detect and accept usages such as 0x1234ABCD[10]."""
- def invoke(self, arg_str : str, from_tty : bool) -> None:
-- if re.fullmatch("^0x[0123456789ABCDEFabcdef]+\[[^\[\]]+\]$", arg_str):
-+ if re.fullmatch(r"^0x[0123456789ABCDEFabcdef]+\[[^\[\]]+\]$", arg_str):
- arg_str = arg_str.replace("[", " ")
- arg_str = arg_str.replace("]", " ")
- eval_execute_2(self, arg_str,
---
-2.43.0
-
diff --git a/dev-debug/valgrind/files/0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch b/dev-debug/valgrind/files/0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch
deleted file mode 100644
index df6250ea81db..000000000000
--- a/dev-debug/valgrind/files/0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch
+++ /dev/null
@@ -1,144 +0,0 @@
-From 1d00e5ce0fb069911c4b525ec38289fb5d9021b0 Mon Sep 17 00:00:00 2001
-From: Paul Floyd <pjfloyd@wanadoo.fr>
-Date: Sat, 18 Nov 2023 08:49:34 +0100
-Subject: [PATCH 2/4] Bug 476548 - valgrind 3.22.0 fails on assertion when
- loading debuginfo file produced by mold
-
-(cherry picked from commit 9ea4ae66707a4dcc6f4328e11911652e4418c585)
----
- NEWS | 2 ++
- coregrind/m_debuginfo/image.c | 14 +++++++++
- coregrind/m_debuginfo/priv_image.h | 4 +++
- coregrind/m_debuginfo/readelf.c | 49 ++++++++++++++++++++++++++++--
- 4 files changed, 66 insertions(+), 3 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index ee5b4ff11..6cd13429a 100644
---- a/NEWS
-+++ b/NEWS
-@@ -5,6 +5,8 @@ Branch 3.22
-
- The following bugs have been fixed or resolved on this branch.
-
-+476548 valgrind 3.22.0 fails on assertion when loading debuginfo
-+ file produced by mold
- 476708 valgrind-monitor.py regular expressions should use raw strings
-
- To see details of a given bug, visit
-diff --git a/coregrind/m_debuginfo/image.c b/coregrind/m_debuginfo/image.c
-index 02e509071..445f95555 100644
---- a/coregrind/m_debuginfo/image.c
-+++ b/coregrind/m_debuginfo/image.c
-@@ -1221,6 +1221,20 @@ Int ML_(img_strcmp_c)(DiImage* img, DiOffT off1, const HChar* str2)
- }
- }
-
-+Int ML_(img_strcmp_n)(DiImage* img, DiOffT off1, const HChar* str2, Word n)
-+{
-+ ensure_valid(img, off1, 1, "ML_(img_strcmp_c)");
-+ while (n) {
-+ UChar c1 = get(img, off1);
-+ UChar c2 = *(const UChar*)str2;
-+ if (c1 < c2) return -1;
-+ if (c1 > c2) return 1;
-+ if (c1 == 0) return 0;
-+ off1++; str2++; --n;
-+ }
-+ return 0;
-+}
-+
- UChar ML_(img_get_UChar)(DiImage* img, DiOffT offset)
- {
- ensure_valid(img, offset, 1, "ML_(img_get_UChar)");
-diff --git a/coregrind/m_debuginfo/priv_image.h b/coregrind/m_debuginfo/priv_image.h
-index a49846f14..c91e49f01 100644
---- a/coregrind/m_debuginfo/priv_image.h
-+++ b/coregrind/m_debuginfo/priv_image.h
-@@ -115,6 +115,10 @@ Int ML_(img_strcmp)(DiImage* img, DiOffT off1, DiOffT off2);
- cast to HChar before comparison. */
- Int ML_(img_strcmp_c)(DiImage* img, DiOffT off1, const HChar* str2);
-
-+/* Do strncmp of a C string in the image vs a normal one. Chars are
-+ cast to HChar before comparison. */
-+Int ML_(img_strcmp_n)(DiImage* img, DiOffT off1, const HChar* str2, Word n);
-+
- /* Do strlen of a C string in the image. */
- SizeT ML_(img_strlen)(DiImage* img, DiOffT off);
-
-diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c
-index fb64ed976..46f8c8343 100644
---- a/coregrind/m_debuginfo/readelf.c
-+++ b/coregrind/m_debuginfo/readelf.c
-@@ -2501,8 +2501,7 @@ Bool ML_(read_elf_object) ( struct _DebugInfo* di )
- di->rodata_avma += inrw1->bias;
- di->rodata_bias = inrw1->bias;
- di->rodata_debug_bias = inrw1->bias;
-- }
-- else {
-+ } else {
- BAD(".rodata"); /* should not happen? */
- }
- di->rodata_present = True;
-@@ -2977,6 +2976,46 @@ Bool ML_(read_elf_object) ( struct _DebugInfo* di )
- return retval;
- }
-
-+static void find_rodata(Word i, Word shnum, DiImage* dimg, struct _DebugInfo* di, DiOffT shdr_dioff,
-+ UWord shdr_dent_szB, DiOffT shdr_strtab_dioff, PtrdiffT rw_dbias)
-+{
-+ ElfXX_Shdr a_shdr;
-+ ElfXX_Shdr a_extra_shdr;
-+ ML_(img_get)(&a_shdr, dimg,
-+ INDEX_BIS(shdr_dioff, i, shdr_dent_szB),
-+ sizeof(a_shdr));
-+ if (di->rodata_present &&
-+ 0 == ML_(img_strcmp_c)(dimg, shdr_strtab_dioff
-+ + a_shdr.sh_name, ".rodata")) {
-+ Word sh_size = a_shdr.sh_size;
-+ Word j;
-+ Word next_addr = a_shdr.sh_addr + a_shdr.sh_size;
-+ for (j = i + 1; j < shnum; ++j) {
-+ ML_(img_get)(&a_extra_shdr, dimg,
-+ INDEX_BIS(shdr_dioff, j, shdr_dent_szB),
-+ sizeof(a_shdr));
-+ if (0 == ML_(img_strcmp_n)(dimg, shdr_strtab_dioff
-+ + a_extra_shdr.sh_name, ".rodata", 7)) {
-+ if (a_extra_shdr.sh_addr ==
-+ VG_ROUNDUP(next_addr, a_extra_shdr.sh_addralign)) {
-+ sh_size = VG_ROUNDUP(sh_size, a_extra_shdr.sh_addralign) + a_extra_shdr.sh_size;
-+ }
-+ next_addr = a_extra_shdr.sh_addr + a_extra_shdr.sh_size;
-+ } else {
-+ break;
-+ }
-+ }
-+ vg_assert(di->rodata_size == sh_size);
-+ vg_assert(di->rodata_avma + a_shdr.sh_addr + rw_dbias);
-+ di->rodata_debug_svma = a_shdr.sh_addr;
-+ di->rodata_debug_bias = di->rodata_bias +
-+ di->rodata_svma - di->rodata_debug_svma;
-+ TRACE_SYMTAB("acquiring .rodata debug svma = %#lx .. %#lx\n",
-+ di->rodata_debug_svma,
-+ di->rodata_debug_svma + di->rodata_size - 1);
-+ TRACE_SYMTAB("acquiring .rodata debug bias = %#lx\n", (UWord)di->rodata_debug_bias);
-+ }
-+}
- Bool ML_(read_elf_debug) ( struct _DebugInfo* di )
- {
- Word i, j;
-@@ -3391,7 +3430,11 @@ Bool ML_(read_elf_debug) ( struct _DebugInfo* di )
- FIND(text, rx)
- FIND(data, rw)
- FIND(sdata, rw)
-- FIND(rodata, rw)
-+ // https://bugs.kde.org/show_bug.cgi?id=476548
-+ // special handling for rodata as adjacent
-+ // rodata sections may have been merged in ML_(read_elf_object)
-+ //FIND(rodata, rw)
-+ find_rodata(i, ehdr_dimg.e_shnum, dimg, di, shdr_dioff, shdr_dent_szB, shdr_strtab_dioff, rw_dbias);
- FIND(bss, rw)
- FIND(sbss, rw)
-
---
-2.43.0
-
diff --git a/dev-debug/valgrind/files/0003-Add-fchmodat2-syscall-on-linux.patch b/dev-debug/valgrind/files/0003-Add-fchmodat2-syscall-on-linux.patch
deleted file mode 100644
index 568cc5302b63..000000000000
--- a/dev-debug/valgrind/files/0003-Add-fchmodat2-syscall-on-linux.patch
+++ /dev/null
@@ -1,218 +0,0 @@
-From a43e62dddcf51ec6578a90c5988a41e856b44b05 Mon Sep 17 00:00:00 2001
-From: Mark Wielaard <mark@klomp.org>
-Date: Sat, 18 Nov 2023 21:17:02 +0100
-Subject: [PATCH 3/4] Add fchmodat2 syscall on linux
-
-fchmodat2 is a new syscall on linux 6.6. It is a variant of fchmodat
-that takes an extra flags argument.
-
-https://bugs.kde.org/show_bug.cgi?id=477198
-
-(cherry picked from commit 372d09fd9a8d76847c81092ebff71c80fd6c145d)
----
- NEWS | 1 +
- coregrind/m_syswrap/priv_syswrap-linux.h | 3 +++
- coregrind/m_syswrap/syswrap-amd64-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-arm-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-arm64-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-linux.c | 11 +++++++++++
- coregrind/m_syswrap/syswrap-mips32-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-mips64-linux.c | 1 +
- coregrind/m_syswrap/syswrap-nanomips-linux.c | 1 +
- coregrind/m_syswrap/syswrap-ppc32-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-ppc64-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-s390x-linux.c | 2 ++
- coregrind/m_syswrap/syswrap-x86-linux.c | 2 ++
- include/vki/vki-scnums-shared-linux.h | 2 ++
- 14 files changed, 35 insertions(+)
-
-diff --git a/NEWS b/NEWS
-index 6cd13429a..da0f8c1aa 100644
---- a/NEWS
-+++ b/NEWS
-@@ -8,6 +8,7 @@ The following bugs have been fixed or resolved on this branch.
- 476548 valgrind 3.22.0 fails on assertion when loading debuginfo
- file produced by mold
- 476708 valgrind-monitor.py regular expressions should use raw strings
-+477198 Add fchmodat2 syscall on linux
-
- To see details of a given bug, visit
- https://bugs.kde.org/show_bug.cgi?id=XXXXXX
-diff --git a/coregrind/m_syswrap/priv_syswrap-linux.h b/coregrind/m_syswrap/priv_syswrap-linux.h
-index 7c9decf5a..798c456c9 100644
---- a/coregrind/m_syswrap/priv_syswrap-linux.h
-+++ b/coregrind/m_syswrap/priv_syswrap-linux.h
-@@ -331,6 +331,9 @@ DECL_TEMPLATE(linux, sys_openat2);
- // Linux-specific (new in Linux 5.14)
- DECL_TEMPLATE(linux, sys_memfd_secret);
-
-+// Since Linux 6.6
-+DECL_TEMPLATE(linux, sys_fchmodat2);
-+
- /* ---------------------------------------------------------------------
- Wrappers for sockets and ipc-ery. These are split into standalone
- procedures because x86-linux hides them inside multiplexors
-diff --git a/coregrind/m_syswrap/syswrap-amd64-linux.c b/coregrind/m_syswrap/syswrap-amd64-linux.c
-index 008600798..fe17d118b 100644
---- a/coregrind/m_syswrap/syswrap-amd64-linux.c
-+++ b/coregrind/m_syswrap/syswrap-amd64-linux.c
-@@ -886,6 +886,8 @@ static SyscallTableEntry syscall_table[] = {
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-
- LINXY(__NR_memfd_secret, sys_memfd_secret), // 447
-+
-+ LINX_(__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
-diff --git a/coregrind/m_syswrap/syswrap-arm-linux.c b/coregrind/m_syswrap/syswrap-arm-linux.c
-index 9a7a1e0d2..811931d3b 100644
---- a/coregrind/m_syswrap/syswrap-arm-linux.c
-+++ b/coregrind/m_syswrap/syswrap-arm-linux.c
-@@ -1059,6 +1059,8 @@ static SyscallTableEntry syscall_main_table[] = {
- LINX_(__NR_faccessat2, sys_faccessat2), // 439
-
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-+
-+ LINX_(__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
-
-diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
-index 6af7bab83..3307bc2ca 100644
---- a/coregrind/m_syswrap/syswrap-arm64-linux.c
-+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
-@@ -840,6 +840,8 @@ static SyscallTableEntry syscall_main_table[] = {
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-
- LINXY(__NR_memfd_secret, sys_memfd_secret), // 447
-+
-+ LINX_(__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
-
-diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c
-index d571fc327..efa47f2e6 100644
---- a/coregrind/m_syswrap/syswrap-linux.c
-+++ b/coregrind/m_syswrap/syswrap-linux.c
-@@ -6059,6 +6059,17 @@ PRE(sys_fchmodat)
- PRE_MEM_RASCIIZ( "fchmodat(path)", ARG2 );
- }
-
-+PRE(sys_fchmodat2)
-+{
-+ PRINT("sys_fchmodat2 ( %ld, %#" FMT_REGWORD "x(%s), %" FMT_REGWORD "u, %"
-+ FMT_REGWORD "u )",
-+ SARG1, ARG2, (HChar*)(Addr)ARG2, ARG3, ARG4);
-+ PRE_REG_READ4(long, "fchmodat2",
-+ int, dfd, const char *, path, vki_mode_t, mode,
-+ unsigned int, flags);
-+ PRE_MEM_RASCIIZ( "fchmodat2(pathname)", ARG2 );
-+}
-+
- PRE(sys_faccessat)
- {
- PRINT("sys_faccessat ( %ld, %#" FMT_REGWORD "x(%s), %ld )",
-diff --git a/coregrind/m_syswrap/syswrap-mips32-linux.c b/coregrind/m_syswrap/syswrap-mips32-linux.c
-index 6268a00dd..74a1f6eac 100644
---- a/coregrind/m_syswrap/syswrap-mips32-linux.c
-+++ b/coregrind/m_syswrap/syswrap-mips32-linux.c
-@@ -1143,6 +1143,8 @@ static SyscallTableEntry syscall_main_table[] = {
- LINX_ (__NR_faccessat2, sys_faccessat2), // 439
-
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-+
-+ LINX_(__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) (UInt sysno)
-diff --git a/coregrind/m_syswrap/syswrap-mips64-linux.c b/coregrind/m_syswrap/syswrap-mips64-linux.c
-index 6cdf25893..4e8508b7a 100644
---- a/coregrind/m_syswrap/syswrap-mips64-linux.c
-+++ b/coregrind/m_syswrap/syswrap-mips64-linux.c
-@@ -820,6 +820,7 @@ static SyscallTableEntry syscall_main_table[] = {
- LINXY (__NR_close_range, sys_close_range),
- LINX_ (__NR_faccessat2, sys_faccessat2),
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2),
-+ LINX_ (__NR_fchmodat2, sys_fchmodat2),
- };
-
- SyscallTableEntry * ML_(get_linux_syscall_entry) ( UInt sysno )
-diff --git a/coregrind/m_syswrap/syswrap-nanomips-linux.c b/coregrind/m_syswrap/syswrap-nanomips-linux.c
-index d724cde74..7859900c1 100644
---- a/coregrind/m_syswrap/syswrap-nanomips-linux.c
-+++ b/coregrind/m_syswrap/syswrap-nanomips-linux.c
-@@ -829,6 +829,7 @@ static SyscallTableEntry syscall_main_table[] = {
- LINXY (__NR_close_range, sys_close_range),
- LINX_ (__NR_faccessat2, sys_faccessat2),
- LINXY (__NR_epoll_pwait2, sys_epoll_pwait2),
-+ LINX_ (__NR_fchmodat2, sys_fchmodat2),
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) (UInt sysno)
-diff --git a/coregrind/m_syswrap/syswrap-ppc32-linux.c b/coregrind/m_syswrap/syswrap-ppc32-linux.c
-index c0cfef235..1e19116ee 100644
---- a/coregrind/m_syswrap/syswrap-ppc32-linux.c
-+++ b/coregrind/m_syswrap/syswrap-ppc32-linux.c
-@@ -1063,6 +1063,8 @@ static SyscallTableEntry syscall_table[] = {
- LINX_(__NR_faccessat2, sys_faccessat2), // 439
-
- LINXY (__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-+
-+ LINX_ (__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
-diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c
-index f5976f30c..1097212a4 100644
---- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
-+++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
-@@ -1032,6 +1032,8 @@ static SyscallTableEntry syscall_table[] = {
- LINX_(__NR_faccessat2, sys_faccessat2), // 439
-
- LINXY (__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-+
-+ LINX_ (__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
-diff --git a/coregrind/m_syswrap/syswrap-s390x-linux.c b/coregrind/m_syswrap/syswrap-s390x-linux.c
-index afba154e7..3588672c7 100644
---- a/coregrind/m_syswrap/syswrap-s390x-linux.c
-+++ b/coregrind/m_syswrap/syswrap-s390x-linux.c
-@@ -873,6 +873,8 @@ static SyscallTableEntry syscall_table[] = {
- LINX_(__NR_faccessat2, sys_faccessat2), // 439
-
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-+
-+ LINX_ (__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
-diff --git a/coregrind/m_syswrap/syswrap-x86-linux.c b/coregrind/m_syswrap/syswrap-x86-linux.c
-index da4fd8fa2..58badc6b0 100644
---- a/coregrind/m_syswrap/syswrap-x86-linux.c
-+++ b/coregrind/m_syswrap/syswrap-x86-linux.c
-@@ -1658,6 +1658,8 @@ static SyscallTableEntry syscall_table[] = {
- LINXY(__NR_epoll_pwait2, sys_epoll_pwait2), // 441
-
- LINXY(__NR_memfd_secret, sys_memfd_secret), // 447
-+
-+ LINX_(__NR_fchmodat2, sys_fchmodat2), // 452
- };
-
- SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
-diff --git a/include/vki/vki-scnums-shared-linux.h b/include/vki/vki-scnums-shared-linux.h
-index 542382b53..a4cd87149 100644
---- a/include/vki/vki-scnums-shared-linux.h
-+++ b/include/vki/vki-scnums-shared-linux.h
-@@ -50,4 +50,6 @@
-
- #define __NR_memfd_secret 447
-
-+#define __NR_fchmodat2 452
-+
- #endif
---
-2.43.0
-
diff --git a/dev-debug/valgrind/files/0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch b/dev-debug/valgrind/files/0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch
deleted file mode 100644
index a1413916ea73..000000000000
--- a/dev-debug/valgrind/files/0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch
+++ /dev/null
@@ -1,151 +0,0 @@
-From 41ff9aa49f6c54c66d0e6b37f265fd9cb0176057 Mon Sep 17 00:00:00 2001
-From: Paul Floyd <pjfloyd@wanadoo.fr>
-Date: Sun, 17 Dec 2023 14:18:51 +0100
-Subject: [PATCH 4/4] Bug 478624 - Valgrind incompatibility with binutils-2.42
- on x86 with new nop patterns (unhandled instruction bytes: 0x2E 0x8D 0xB4
- 0x26)
-
-It was a bit of a struggle to get the testcase to build
-with both clang and gcc (oddly enough gcc was more difficult) so
-I just resorted to using .byte arrays.
-
-(cherry picked from commit d35005cef8ad8207542738812705ceabf137d7e0)
----
- NEWS | 2 ++
- VEX/priv/guest_x86_toIR.c | 22 +++++++++++++-
- none/tests/x86/Makefile.am | 2 ++
- none/tests/x86/gnu_binutils_nop.c | 34 ++++++++++++++++++++++
- none/tests/x86/gnu_binutils_nop.stderr.exp | 0
- none/tests/x86/gnu_binutils_nop.vgtest | 2 ++
- 7 files changed, 62 insertions(+), 1 deletion(-)
- create mode 100644 none/tests/x86/gnu_binutils_nop.c
- create mode 100644 none/tests/x86/gnu_binutils_nop.stderr.exp
- create mode 100644 none/tests/x86/gnu_binutils_nop.vgtest
-
-diff --git a/NEWS b/NEWS
-index da0f8c1aa..86b0fe6b5 100644
---- a/NEWS
-+++ b/NEWS
-@@ -9,6 +9,8 @@ The following bugs have been fixed or resolved on this branch.
- file produced by mold
- 476708 valgrind-monitor.py regular expressions should use raw strings
- 477198 Add fchmodat2 syscall on linux
-+478624 Valgrind incompatibility with binutils-2.42 on x86 with new nop patterns
-+ (unhandled instruction bytes: 0x2E 0x8D 0xB4 0x26)
-
- To see details of a given bug, visit
- https://bugs.kde.org/show_bug.cgi?id=XXXXXX
-diff --git a/VEX/priv/guest_x86_toIR.c b/VEX/priv/guest_x86_toIR.c
-index 5d6e6dc64..3b6efb387 100644
---- a/VEX/priv/guest_x86_toIR.c
-+++ b/VEX/priv/guest_x86_toIR.c
-@@ -8198,7 +8198,7 @@ DisResult disInstr_X86_WRK (
- delta += 5;
- goto decode_success;
- }
-- /* Don't barf on recent binutils padding,
-+ /* Don't barf on recent (2010) binutils padding,
- all variants of which are: nopw %cs:0x0(%eax,%eax,1)
- 66 2e 0f 1f 84 00 00 00 00 00
- 66 66 2e 0f 1f 84 00 00 00 00 00
-@@ -8223,6 +8223,26 @@ DisResult disInstr_X86_WRK (
- }
- }
-
-+ /* bug478624 GNU binutils uses a leal of esi into itself with
-+ a zero offset and CS prefix as an 8 byte no-op (Dec 2023).
-+ Since the CS prefix is hardly ever used we don't do much
-+ to decode it, just a few cases for conditional branches.
-+ So add handling here with other pseudo-no-ops.
-+ */
-+ if (code[0] == 0x2E && code[1] == 0x8D) {
-+ if (code[2] == 0x74 && code[3] == 0x26 && code[4] == 0x00) {
-+ DIP("leal %%cs:0(%%esi,%%eiz,1),%%esi\n");
-+ delta += 5;
-+ goto decode_success;
-+ }
-+ if (code[2] == 0xB4 && code[3] == 0x26 && code[4] == 0x00
-+ && code[5] == 0x00 && code[6] == 0x00 && code[7] == 0x00) {
-+ DIP("leal %%cs:0(%%esi,%%eiz,1),%%esi\n");
-+ delta += 8;
-+ goto decode_success;
-+ }
-+ }
-+
- // Intel CET requires the following opcodes to be treated as NOPs
- // with any prefix and ModRM, SIB and disp combination:
- // "0F 19", "0F 1C", "0F 1D", "0F 1E", "0F 1F"
-diff --git a/none/tests/x86/Makefile.am b/none/tests/x86/Makefile.am
-index 3ecd1ad3c..dbae86571 100644
---- a/none/tests/x86/Makefile.am
-+++ b/none/tests/x86/Makefile.am
-@@ -52,6 +52,7 @@ EXTRA_DIST = \
- fxtract.stdout.exp fxtract.stderr.exp fxtract.vgtest \
- fxtract.stdout.exp-older-glibc \
- getseg.stdout.exp getseg.stderr.exp getseg.vgtest \
-+ gnu_binutils_nop.stderr.exp gnu_binutils_nop.vgtest \
- incdec_alt.stdout.exp incdec_alt.stderr.exp incdec_alt.vgtest \
- int.stderr.exp int.stdout.exp int.disabled \
- $(addsuffix .stderr.exp,$(INSN_TESTS)) \
-@@ -100,6 +101,7 @@ check_PROGRAMS = \
- fpu_lazy_eflags \
- fxtract \
- getseg \
-+ gnu_binutils_nop \
- incdec_alt \
- $(INSN_TESTS) \
- int \
-diff --git a/none/tests/x86/gnu_binutils_nop.c b/none/tests/x86/gnu_binutils_nop.c
-new file mode 100644
-index 000000000..412a4c2cb
---- /dev/null
-+++ b/none/tests/x86/gnu_binutils_nop.c
-@@ -0,0 +1,34 @@
-+int main(void)
-+{
-+ // GNU binutils uses various opcodes as alternatives for nop
-+ // the idea is that it is faster to execute one large opcode
-+ // with no side-effects than multiple repetitions of the
-+ // single byte 'nop'. This gives more choice when code
-+ // needs to be padded.
-+
-+ // the following is based on
-+ // https://sourceware.org/cgit/binutils-gdb/tree/gas/config/tc-i386.c#n1256
-+
-+ // one byte
-+ __asm__ __volatile__("nop");
-+ // two bytes
-+ __asm__ __volatile__("xchg %ax,%ax");
-+ // three bytes
-+ //__asm__ __volatile__("leal 0(%esi),%esi");
-+ __asm__ __volatile__(".byte 0x8d,0x76,0x00");
-+ // four bytes
-+ //__asm__ __volatile__("leal 0(%esi,%eiz),%esi");
-+ __asm__ __volatile__(".byte 0x8d,0x74,0x26,0x00");
-+ // five bytes
-+ //__asm__ __volatile__("leal %cs:0(%esi,%eiz),%esi");
-+ __asm__ __volatile__(".byte 0x2e,0x8d,0x74,0x26,0x00");
-+ // six bytes
-+ //__asm__ __volatile__("leal 0L(%esi),%esi");
-+ __asm__ __volatile__(".byte 0x8d,0xb6,0x00,0x00,0x00,0x00");
-+ // seven bytes
-+ //__asm__ __volatile__("leal 0L(%esi,%eiz),%esi");
-+ __asm__ __volatile__(".byte 0x8d,0xb4,0x26,0x00,0x00,0x00,0x00");
-+ // eight bytes
-+ //__asm__ __volatile__("leal %cs:0L(%esi,%eiz),%esi");
-+ __asm__ __volatile__(".byte 0x2e,0x8d,0xb4,0x26,0x00,0x00,0x00,0x00");
-+}
-diff --git a/none/tests/x86/gnu_binutils_nop.stderr.exp b/none/tests/x86/gnu_binutils_nop.stderr.exp
-new file mode 100644
-index 000000000..e69de29bb
-diff --git a/none/tests/x86/gnu_binutils_nop.vgtest b/none/tests/x86/gnu_binutils_nop.vgtest
-new file mode 100644
-index 000000000..7f378dd53
---- /dev/null
-+++ b/none/tests/x86/gnu_binutils_nop.vgtest
-@@ -0,0 +1,2 @@
-+prog: gnu_binutils_nop
-+vgopts: -q
---
-2.43.0
-
diff --git a/dev-debug/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch b/dev-debug/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch
deleted file mode 100644
index 87acc9ff9f55..000000000000
--- a/dev-debug/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Avoid false positives w/ overlapping memcpy args with _FORTIFY_SOURCE's
-memcpy_chk.
-
-https://src.fedoraproject.org/rpms/valgrind/raw/rawhide/f/valgrind-3.21.0-no-memcpy-replace-check.patch
-https://bugs.kde.org/show_bug.cgi?id=402833
-https://bugs.kde.org/show_bug.cgi?id=453084
---- a/shared/vg_replace_strmem.c
-+++ b/shared/vg_replace_strmem.c
-@@ -1128,7 +1128,7 @@ static inline void my_exit ( int x )
- MEMMOVE_OR_MEMCPY(20181, soname, fnname, 0)
-
- #define MEMCPY(soname, fnname) \
-- MEMMOVE_OR_MEMCPY(20180, soname, fnname, 1)
-+ MEMMOVE_OR_MEMCPY(20180, soname, fnname, 0) /* See KDE bug #402833 */
-
- #if defined(VGO_linux)
- /* For older memcpy we have to use memmove-like semantics and skip
-@@ -1714,8 +1714,6 @@ static inline void my_exit ( int x )
- RECORD_COPY(len); \
- if (len == 0) \
- return dst; \
-- if (is_overlap(dst, src, len, len)) \
-- RECORD_OVERLAP_ERROR("memcpy_chk", dst, src, len); \
- if ( dst > src ) { \
- d = (HChar *)dst + len - 1; \
- s = (const HChar *)src + len - 1; \
diff --git a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
deleted file mode 100644
index 659c7970cf65..000000000000
--- a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
+++ /dev/null
@@ -1,165 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# The Valgrind upstream maintainer also maintains it in Fedora and will
-# backport fixes there which haven't yet made it into a release. Keep an eye
-# on it for fixes we should cherry-pick too:
-# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide
-#
-# Also check the ${PV}_STABLE branch upstream for backports.
-
-inherit autotools flag-o-matic toolchain-funcs multilib pax-utils
-
-DESCRIPTION="An open-source memory debugger for GNU/Linux"
-HOMEPAGE="https://valgrind.org"
-if [[ ${PV} == 9999 ]]; then
- EGIT_REPO_URI="https://sourceware.org/git/${PN}.git"
- inherit git-r3
-else
- VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.gpg
- inherit verify-sig
-
- MY_P="${P/_rc/.RC}"
- SRC_URI="https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2"
- SRC_URI+=" verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc )"
- S="${WORKDIR}"/${MY_P}
-
- if [[ ${PV} != *_rc* ]] ; then
- KEYWORDS="-* amd64 arm arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
- fi
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="mpi"
-
-DEPEND="mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
-if [[ ${PV} != 9999 ]] ; then
- BDEPEND="verify-sig? ( sec-keys/openpgp-keys-valgrind )"
-fi
-
-PATCHES=(
- # Respect CFLAGS, LDFLAGS
- "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
- "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch
- "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch
- # From stable branch
- "${FILESDIR}"/0001-valgrind-monitor.py-regular-expressions-should-use-r.patch
- "${FILESDIR}"/0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch
- "${FILESDIR}"/0003-Add-fchmodat2-syscall-on-linux.patch
- "${FILESDIR}"/0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch
-)
-
-QA_CONFIG_IMPL_DECL_SKIP+=(
- # "checking if gcc accepts nested functions" but clang cannot handle good
- # errors and reports both "function definition is not allowed here" and
- # -Wimplicit-function-declaration. bug #900396
- foo
-)
-
-src_prepare() {
- # Correct hard coded doc location
- sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
-
- # Don't force multiarch stuff on OSX, bug #306467
- sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
-
- if [[ ${CHOST} == *-solaris* ]] ; then
- # upstream doesn't support this, but we don't build with
- # Sun/Oracle ld, we have a GNU toolchain, so get some things
- # working the Linux/GNU way
- find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \
- sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die
- cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in
- fi
-
- default
-
- eautoreconf
-}
-
-src_configure() {
- local myconf=(
- --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
- )
-
- # Respect ar, bug #468114
- tc-export AR
-
- # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
- # while compiling insn_sse.c in none/tests/x86
- # -fstack-protector more undefined references to __guard and __stack_smash_handler
- # because valgrind doesn't link to glibc (bug #114347)
- # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong.
- # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it
- # -fstack-protector-strong See -fstack-protector (bug #620402)
- # -m64 -mx32 for multilib-portage, bug #398825
- # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line')
- # -flto* fails to build, bug #858509
- filter-flags -fomit-frame-pointer
- filter-flags -fstack-protector
- filter-flags -fstack-protector-all
- filter-flags -fstack-protector-strong
- filter-flags -m64 -mx32
- filter-flags -fsanitize -fsanitize=*
- filter-flags -fharden-control-flow-redundancy
- append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy)
- filter-lto
-
- if use amd64 || use ppc64; then
- ! has_multilib_profile && myconf+=("--enable-only64bit")
- fi
-
- # Force bitness on darwin, bug #306467
- use x64-macos && myconf+=("--enable-only64bit")
-
- # Don't use mpicc unless the user asked for it (bug #258832)
- if ! use mpi; then
- myconf+=("--without-mpicc")
- fi
-
- econf "${myconf[@]}"
-}
-
-src_test() {
- # fxsave.o, tronical.o have textrels
- emake LDFLAGS="${LDFLAGS} -Wl,-z,notext" check
-}
-
-src_install() {
- default
-
- if [[ ${PV} == "9999" ]]; then
- # Otherwise FAQ.txt won't exist:
- emake -C docs FAQ.txt
- mv docs/FAQ.txt . || die "Couldn't move FAQ.txt"
- fi
-
- dodoc FAQ.txt
-
- pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
-
- # See README_PACKAGERS
- dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/*
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- # fix install_names on shared libraries, can't turn them into bundles,
- # as dyld won't load them any more then, bug #306467
- local l
- for l in "${ED}"/usr/lib/valgrind/*.so ; do
- install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
- done
- fi
-}
-
-pkg_postinst() {
- elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols."
- elog "To fix this you can add splitdebug to FEATURES in make.conf"
- elog "and remerge glibc. See:"
- elog "https://bugs.gentoo.org/214065"
- elog "https://bugs.gentoo.org/274771"
- elog "https://bugs.gentoo.org/388703"
-}
diff --git a/dev-debug/valgrind/valgrind-3.23.0_p2.ebuild b/dev-debug/valgrind/valgrind-3.23.0_p2.ebuild
deleted file mode 100644
index 7986a840f399..000000000000
--- a/dev-debug/valgrind/valgrind-3.23.0_p2.ebuild
+++ /dev/null
@@ -1,193 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# The Valgrind upstream maintainer also maintains it in Fedora and will
-# backport fixes there which haven't yet made it into a release. Keep an eye
-# on it for fixes we should cherry-pick too:
-# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide
-#
-# Also check the ${PV}_STABLE branch upstream for backports.
-
-inherit autotools flag-o-matic toolchain-funcs multilib pax-utils
-
-DESCRIPTION="An open-source memory debugger for GNU/Linux"
-HOMEPAGE="https://valgrind.org"
-
-if [[ ${PV} == 9999 ]]; then
- EGIT_REPO_URI="https://sourceware.org/git/${PN}.git"
- inherit git-r3
-else
- VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.gpg
- inherit verify-sig
-
- MY_P="${P/_rc/.RC}"
- MY_P="${MY_P%%_p*}"
- VALGRIND_PATCH_TARBALL="${MY_P}-patches-2"
- SRC_URI="
- https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2
- verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc )
- "
- # Rollups of backports on ${PV}_STABLE branch upstream.
- if [[ ${PV} == *_p* ]] ; then
- SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz"
- fi
-
- S="${WORKDIR}"/${MY_P}
-
- if [[ ${PV} != *_rc* ]] ; then
- KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
- fi
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="mpi"
-
-DEPEND="mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
-if [[ ${PV} == 9999 ]] ; then
- # Needed for man pages
- BDEPEND+="
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt
- "
-else
- BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-valgrind )"
-fi
-
-PATCHES=(
- # Respect CFLAGS, LDFLAGS
- "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
- "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch
- "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch
-)
-
-QA_CONFIG_IMPL_DECL_SKIP+=(
- # "checking if gcc accepts nested functions" but clang cannot handle good
- # errors and reports both "function definition is not allowed here" and
- # -Wimplicit-function-declaration. bug #900396
- foo
-)
-
-src_unpack() {
- if [[ ${PV} == 9999 ]] ; then
- git-r3_src_unpack
- elif use verify-sig ; then
- # Needed for downloaded patch (which is unsigned, which is fine)
- verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc}
- fi
-
- default
-}
-
-src_prepare() {
- # Correct hard coded doc location
- sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
-
- # Don't force multiarch stuff on OSX, bug #306467
- sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
-
- if [[ ${CHOST} == *-solaris* ]] ; then
- # upstream doesn't support this, but we don't build with
- # Sun/Oracle ld, we have a GNU toolchain, so get some things
- # working the Linux/GNU way
- find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \
- sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die
- cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in
- fi
-
- if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then
- PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} )
- fi
-
- default
-
- eautoreconf
-}
-
-src_configure() {
- local myconf=(
- --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
- )
-
- tc-is-lto && myconf+=( --enable-lto )
-
- # Respect ar, bug #468114
- tc-export AR
-
- # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
- # while compiling insn_sse.c in none/tests/x86
- # -fstack-protector more undefined references to __guard and __stack_smash_handler
- # because valgrind doesn't link to glibc (bug #114347)
- # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong.
- # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it
- # -fstack-protector-strong See -fstack-protector (bug #620402)
- # -m64 -mx32 for multilib-portage, bug #398825
- # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line')
- filter-flags -fomit-frame-pointer
- filter-flags -fstack-protector
- filter-flags -fstack-protector-all
- filter-flags -fstack-protector-strong
- filter-flags -m64 -mx32
- filter-flags -fsanitize -fsanitize=*
- filter-flags -fharden-control-flow-redundancy
- append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy)
- filter-lto
-
- if use amd64 || use ppc64; then
- ! has_multilib_profile && myconf+=("--enable-only64bit")
- fi
-
- # Force bitness on darwin, bug #306467
- use x64-macos && myconf+=("--enable-only64bit")
-
- # Don't use mpicc unless the user asked for it (bug #258832)
- if ! use mpi; then
- myconf+=("--without-mpicc")
- fi
-
- econf "${myconf[@]}"
-}
-
-src_test() {
- # fxsave.o, tronical.o have textrels
- # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093
- emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check
-}
-
-src_install() {
- if [[ ${PV} == 9999 ]]; then
- # TODO: Could do HTML docs too with 'all-docs'
- emake -C docs man-pages FAQ.txt
- mv docs/FAQ.txt . || die "Couldn't move FAQ.txt"
- fi
-
- default
-
- dodoc FAQ.txt
-
- pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
-
- # See README_PACKAGERS
- dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/*
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- # fix install_names on shared libraries, can't turn them into bundles,
- # as dyld won't load them any more then, bug #306467
- local l
- for l in "${ED}"/usr/lib/valgrind/*.so ; do
- install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
- done
- fi
-}
-
-pkg_postinst() {
- elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols."
- elog "To fix this you can add splitdebug to FEATURES in make.conf"
- elog "and remerge glibc. See:"
- elog "https://bugs.gentoo.org/214065"
- elog "https://bugs.gentoo.org/274771"
- elog "https://bugs.gentoo.org/388703"
-}