[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-06-23 Thread Sam James
commit: ab3df1f95e47e0d99ea606fe4f1a56f6fd314d53
Author: Sam James  gentoo  org>
AuthorDate: Mon Jun 24 05:32:02 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jun 24 05:32:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab3df1f9

dev-debug/valgrind: add 3.23.0_p2

Further backports, see 
https://sourceforge.net/p/valgrind/mailman/message/58787885/.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/Manifest  |   1 +
 dev-debug/valgrind/valgrind-3.23.0_p2.ebuild | 193 +++
 2 files changed, 194 insertions(+)

diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index 441394c4aa5a..addeced04058 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -3,5 +3,6 @@ DIST valgrind-3.21.0.tar.bz2.asc 488 BLAKE2B 
6297bc925c16526a51de4f589232a8d5bcb
 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-1.tar.xz 9660 BLAKE2B 
0f59ff11d440cf39c3af6a3c6d9a21b0d922f79cb00e77c0e183224e4baca6037d30c48368934498ee5bf5c98b555b2cf80d0bdcef851f264949199079c74f65
 SHA512 
69544e36f0d3718c02ca781b58c5f76856ccba3a863cee785342e26265a430b2b5aebd1e558dd63ba798cc762be750ac66f192ef4eeb3bc18c6c156633475683
+DIST valgrind-3.23.0-patches-2.tar.xz 15024 BLAKE2B 
ca7085a6dd38cda9df9437697109b2cb59dfcb8154b1df20f9ffb20dcde9acfa671298610ccc8a57704b1a5f7f2a11b40352a51264440daaa0780e54027096d0
 SHA512 
cc7ea14808100b72e6bdf65248687694bf15f982dec1a42b59a9f42d26b9f1bce0e99a867a544f521d509b107792b26d15b75b417838ac2692e8773d52d6d69f
 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

diff --git a/dev-debug/valgrind/valgrind-3.23.0_p2.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0_p2.ebuild
new file mode 100644
index ..7986a840f399
--- /dev/null
+++ b/dev-debug/valgrind/valgrind-3.23.0_p2.ebuild
@@ -0,0 +1,193 @@
+# 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} ==  ]]; 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} ==  ]] ; 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
+   

[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-06-12 Thread Sam James
commit: 92c084d7219e57c4e51a7277ec1b29156500601d
Author: Sam James  gentoo  org>
AuthorDate: Wed Jun 12 14:28:36 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jun 12 14:28:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92c084d7

dev-debug/valgrind: fix live ebuild

Fixes: f0c447abf681cf8b7f99b84efe8838537915edc7
Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-.ebuild 
b/dev-debug/valgrind/valgrind-.ebuild
index b19c8e416302..8e4648affe18 100644
--- a/dev-debug/valgrind/valgrind-.ebuild
+++ b/dev-debug/valgrind/valgrind-.ebuild
@@ -98,7 +98,7 @@ src_prepare() {
cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in
fi
 
-   if [[ -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then
+   if [[ ${PV} !=  && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; 
then
PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} )
fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-06-11 Thread Sam James
commit: ee3b1ac9a619a2c2cc7ec8f711fc3949fdf727eb
Author: Sam James  gentoo  org>
AuthorDate: Wed Jun 12 04:25:56 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jun 12 04:25:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee3b1ac9

dev-debug/valgrind: Stabilize 3.21.0-r2 arm, #922067

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
index 9f38c6b898d2..feb6bd879890 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
@@ -20,7 +20,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* amd64 ~arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-06-11 Thread Sam James
commit: 27eca4b462ad28aa91f1df27cb5978b45c8092bb
Author: Sam James  gentoo  org>
AuthorDate: Wed Jun 12 04:25:57 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jun 12 04:25:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27eca4b4

dev-debug/valgrind: Stabilize 3.21.0-r2 ppc, #922067

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
index feb6bd879890..c2fc15cb86b8 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
@@ -20,7 +20,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* amd64 arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 arm arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-06-11 Thread Sam James
commit: f0c447abf681cf8b7f99b84efe8838537915edc7
Author: Sam James  gentoo  org>
AuthorDate: Tue Jun 11 18:56:33 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jun 11 18:57:29 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0c447ab

dev-debug/valgrind: backport patches from stable branch for 3.23.0

Per https://sourceforge.net/p/valgrind/mailman/message/58782511/.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/Manifest|  1 +
 ...grind-.ebuild => valgrind-3.23.0_p1.ebuild} | 30 +++---
 dev-debug/valgrind/valgrind-.ebuild| 30 +++---
 3 files changed, 55 insertions(+), 6 deletions(-)

diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index 21a5e4c20e6d..441394c4aa5a 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -2,5 +2,6 @@ DIST valgrind-3.21.0.tar.bz2 17449484 BLAKE2B 
1f7306d288eb5ecfb2b2f0b2dc68960ecd
 DIST valgrind-3.21.0.tar.bz2.asc 488 BLAKE2B 
6297bc925c16526a51de4f589232a8d5bcb8d54bdc885c145d329deeba45b42d3a5a8a3f59d3fb240d3bd78be7fd30d95ceb33c7624afd3c99c51833d0fd16f2
 SHA512 
114e5cd2f7352e56099efa3b2c42d39ed24e42419bbaac1af5e2b5c4fa72a2ba38ac6b0c60b93460a0cce8819ca0c7fae6618599b2af809ac0ab4fa30fdb25ba
 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-1.tar.xz 9660 BLAKE2B 
0f59ff11d440cf39c3af6a3c6d9a21b0d922f79cb00e77c0e183224e4baca6037d30c48368934498ee5bf5c98b555b2cf80d0bdcef851f264949199079c74f65
 SHA512 
69544e36f0d3718c02ca781b58c5f76856ccba3a863cee785342e26265a430b2b5aebd1e558dd63ba798cc762be750ac66f192ef4eeb3bc18c6c156633475683
 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

diff --git a/dev-debug/valgrind/valgrind-.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0_p1.ebuild
similarity index 87%
copy from dev-debug/valgrind/valgrind-.ebuild
copy to dev-debug/valgrind/valgrind-3.23.0_p1.ebuild
index 48014039f07e..b19c8e416302 100644
--- a/dev-debug/valgrind/valgrind-.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0_p1.ebuild
@@ -14,6 +14,7 @@ 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} ==  ]]; then
EGIT_REPO_URI="https://sourceware.org/git/${PN}.git;
inherit git-r3
@@ -22,8 +23,17 @@ else
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 )"
+   MY_P="${MY_P%%_p*}"
+   VALGRIND_PATCH_TARBALL="${MY_P}-patches-1"
+   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
@@ -52,7 +62,6 @@ PATCHES=(
"${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
 )
 
 QA_CONFIG_IMPL_DECL_SKIP+=(
@@ -62,6 +71,17 @@ QA_CONFIG_IMPL_DECL_SKIP+=(
foo
 )
 
+src_unpack() {
+   if [[ ${PV} ==  ]] ; then
+   git-r3_src_unpack
+   elif use verify-sig ; then
+   # Needed for downloaded patch (which is unsigned, which is fine)
+   verify-sig_verify_detached 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-05-26 Thread Sam James
commit: 7dacecf376120d114419b41885bcfa01ed1d981e
Author: Eli Schwartz  gmail  com>
AuthorDate: Sun May 26 22:17:49 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun May 26 23:11:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dacecf3

dev-debug/valgrind: add whitelist for false positive configure implicit decls

The issue here is, yet again, that clang is a trash compiler and cannot
handle sensible diagnostic output. It warns you for implicit function
decls because it doesn't permit nested function definitions, *after* it
tells you that it doesn't permit the nested function. Instead of just
telling you that the former is forbidden.

Closes: https://bugs.gentoo.org/900396
Signed-off-by: Eli Schwartz  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.22.0-r2.ebuild | 7 +++
 dev-debug/valgrind/valgrind-3.23.0.ebuild| 7 +++
 dev-debug/valgrind/valgrind-.ebuild  | 7 +++
 3 files changed, 21 insertions(+)

diff --git a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
index b9204af91b7b..86ec190689c8 100644
--- a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
@@ -53,6 +53,13 @@ PATCHES=(

"${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

diff --git a/dev-debug/valgrind/valgrind-3.23.0.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0.ebuild
index efcec418f726..48014039f07e 100644
--- a/dev-debug/valgrind/valgrind-3.23.0.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0.ebuild
@@ -55,6 +55,13 @@ PATCHES=(
# From stable branch
 )
 
+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

diff --git a/dev-debug/valgrind/valgrind-.ebuild 
b/dev-debug/valgrind/valgrind-.ebuild
index efcec418f726..48014039f07e 100644
--- a/dev-debug/valgrind/valgrind-.ebuild
+++ b/dev-debug/valgrind/valgrind-.ebuild
@@ -55,6 +55,13 @@ PATCHES=(
# From stable branch
 )
 
+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



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-05-13 Thread Arthur Zamarin
commit: f97510f6bad0c258dde6f0da85cd45fa7382ffce
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon May 13 12:52:24 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon May 13 12:52:24 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97510f6

dev-debug/valgrind: Stabilize 3.22.0-r2 arm64, #931822

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-debug/valgrind/valgrind-3.22.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
index c35267b9a76f..b9204af91b7b 100644
--- a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
@@ -27,7 +27,7 @@ else
S="${WORKDIR}"/${MY_P}
 
if [[ ${PV} != *_rc* ]] ; then
-   KEYWORDS="-* amd64 ~arm ~arm64 ~ppc ppc64 x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm arm64 ~ppc ppc64 x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
fi
 fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-05-12 Thread Sam James
commit: b1010d549a72374a7134ecc97f27bb331b9dc937
Author: Sam James  gentoo  org>
AuthorDate: Mon May 13 01:05:42 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 13 01:05:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1010d54

dev-debug/valgrind: Stabilize 3.22.0-r2 amd64, #931822

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.22.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
index fd4c4cea5a1d..db53c056b3cb 100644
--- a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
@@ -27,7 +27,7 @@ else
S="${WORKDIR}"/${MY_P}
 
if [[ ${PV} != *_rc* ]] ; then
-   KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
fi
 fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-05-12 Thread Sam James
commit: 43ef606d19202153f7640931828429cde24efd1d
Author: Sam James  gentoo  org>
AuthorDate: Mon May 13 01:05:45 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 13 01:05:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43ef606d

dev-debug/valgrind: Stabilize 3.22.0-r2 ppc64, #931822

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.22.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
index f88b96d14dac..c35267b9a76f 100644
--- a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
@@ -27,7 +27,7 @@ else
S="${WORKDIR}"/${MY_P}
 
if [[ ${PV} != *_rc* ]] ; then
-   KEYWORDS="-* amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm ~arm64 ~ppc ppc64 x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
fi
 fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-05-12 Thread Sam James
commit: 8be63e056f68a06d49f1dfc2dee8d995be5a8852
Author: Sam James  gentoo  org>
AuthorDate: Mon May 13 01:05:43 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 13 01:05:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8be63e05

dev-debug/valgrind: Stabilize 3.22.0-r2 x86, #931822

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.22.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
index db53c056b3cb..f88b96d14dac 100644
--- a/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.22.0-r2.ebuild
@@ -27,7 +27,7 @@ else
S="${WORKDIR}"/${MY_P}
 
if [[ ${PV} != *_rc* ]] ; then
-   KEYWORDS="-* amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
fi
 fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-04-26 Thread Sam James
commit: 5514123820c205bada4151f0a35400858e7be95f
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 26 21:34:33 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 26 21:34:48 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55141238

dev-debug/valgrind: install man pages in live ebuild

Thanks to mjw for helping out.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.23.0.ebuild | 20 +---
 dev-debug/valgrind/valgrind-.ebuild   | 20 +---
 2 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/dev-debug/valgrind/valgrind-3.23.0.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0.ebuild
index 5a073f147105..efcec418f726 100644
--- a/dev-debug/valgrind/valgrind-3.23.0.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0.ebuild
@@ -37,8 +37,14 @@ IUSE="mpi"
 
 DEPEND="mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}"
-if [[ ${PV} !=  ]] ; then
-   BDEPEND="verify-sig? ( sec-keys/openpgp-keys-valgrind )"
+if [[ ${PV} ==  ]] ; 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=(
@@ -121,14 +127,14 @@ src_test() {
 }
 
 src_install() {
-   default
-
-   if [[ ${PV} == "" ]]; then
-   # Otherwise FAQ.txt won't exist:
-   emake -C docs FAQ.txt
+   if [[ ${PV} ==  ]]; 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

diff --git a/dev-debug/valgrind/valgrind-.ebuild 
b/dev-debug/valgrind/valgrind-.ebuild
index 5a073f147105..efcec418f726 100644
--- a/dev-debug/valgrind/valgrind-.ebuild
+++ b/dev-debug/valgrind/valgrind-.ebuild
@@ -37,8 +37,14 @@ IUSE="mpi"
 
 DEPEND="mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}"
-if [[ ${PV} !=  ]] ; then
-   BDEPEND="verify-sig? ( sec-keys/openpgp-keys-valgrind )"
+if [[ ${PV} ==  ]] ; 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=(
@@ -121,14 +127,14 @@ src_test() {
 }
 
 src_install() {
-   default
-
-   if [[ ${PV} == "" ]]; then
-   # Otherwise FAQ.txt won't exist:
-   emake -C docs FAQ.txt
+   if [[ ${PV} ==  ]]; 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



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-04-26 Thread Sam James
commit: 95aa4204708549ddfcc701708d05c1bb3e4f6f83
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 26 19:03:30 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 26 19:35:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95aa4204

dev-debug/valgrind: add 3.23.0, drop 3.23.0_rc2

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/Manifest   | 4 ++--
 .../valgrind/{valgrind-3.23.0_rc2.ebuild => valgrind-3.23.0.ebuild}   | 0
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index a508db6fee2a..21a5e4c20e6d 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -2,5 +2,5 @@ DIST valgrind-3.21.0.tar.bz2 17449484 BLAKE2B 
1f7306d288eb5ecfb2b2f0b2dc68960ecd
 DIST valgrind-3.21.0.tar.bz2.asc 488 BLAKE2B 
6297bc925c16526a51de4f589232a8d5bcb8d54bdc885c145d329deeba45b42d3a5a8a3f59d3fb240d3bd78be7fd30d95ceb33c7624afd3c99c51833d0fd16f2
 SHA512 
114e5cd2f7352e56099efa3b2c42d39ed24e42419bbaac1af5e2b5c4fa72a2ba38ac6b0c60b93460a0cce8819ca0c7fae6618599b2af809ac0ab4fa30fdb25ba
 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.RC2.tar.bz2 16551949 BLAKE2B 
0104a56006cd4a1f4d3195c69d76b13f3eebb15b3cd490e6b78f5b0ad6267488e5b1b5502711fba171d213158d2bc9f4644c9f15b73ed00533748117afba5eef
 SHA512 
36d20c08442bd00ae560693517d69ab5cc1665b210cb7510e6ab7cfa7ce7a35e0f289fdbedc0b1c682ad2698586e49c8c65e52bbe699eef3aec6b7b1fdb5b961
-DIST valgrind-3.23.0.RC2.tar.bz2.asc 488 BLAKE2B 
bc858fe769d9cc28ab0d17738075e0523de701bf67fc0f80bdbc258465fd1b60cedd7730156a186db20406b8a35fe79f6e58daf718dd59852384f7b445d2ce7d
 SHA512 
b91c2ab157a3cf3042cde2b531a33b063d92c5bef8ae7e097d860b2b19a84ad372e4b7057a6d49ec8ad51a2cb2a80ecdf02115813f1c517b674a810876552512
+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

diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0.ebuild
similarity index 100%
rename from dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
rename to dev-debug/valgrind/valgrind-3.23.0.ebuild



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-04-25 Thread Sam James
commit: 8f4e490c3b2462e43047a116ec41847c418dfc26
Author: Sam James  gentoo  org>
AuthorDate: Wed Apr 24 23:16:39 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 08:54:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f4e490c

dev-debug/valgrind: add 3.23.0_rc2, drop 3.23.0_rc1

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/Manifest   | 4 ++--
 .../{valgrind-3.23.0_rc1.ebuild => valgrind-3.23.0_rc2.ebuild}| 0
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index 8ac610d293c2..a508db6fee2a 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -2,5 +2,5 @@ DIST valgrind-3.21.0.tar.bz2 17449484 BLAKE2B 
1f7306d288eb5ecfb2b2f0b2dc68960ecd
 DIST valgrind-3.21.0.tar.bz2.asc 488 BLAKE2B 
6297bc925c16526a51de4f589232a8d5bcb8d54bdc885c145d329deeba45b42d3a5a8a3f59d3fb240d3bd78be7fd30d95ceb33c7624afd3c99c51833d0fd16f2
 SHA512 
114e5cd2f7352e56099efa3b2c42d39ed24e42419bbaac1af5e2b5c4fa72a2ba38ac6b0c60b93460a0cce8819ca0c7fae6618599b2af809ac0ab4fa30fdb25ba
 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.RC1.tar.bz2 16320808 BLAKE2B 
e66bdef3dcd1c5793bdd263dc12f55797d1b07add6c07cc57e06564a3b50447653a0e418be3bfecf1bffb15be7f0b906a75015a4c5f30d201eff9e79b72871f3
 SHA512 
6d9b95ce919ffa1993265c2972b407beb2879b87f84efd61ada4e75f334b332917a726b053c5dbc64b970a55334189c48ccae9231934c9474b65eb6ec1e2c18f
-DIST valgrind-3.23.0.RC1.tar.bz2.asc 488 BLAKE2B 
d413285e74965581b7f1ab8f4ea8ef6b182ae73462d4ca4a5d34b6eafa70a4be3b36a92a1b9a84ee626817e9c87e9a67659e43cc7f6ec504a3afc609365b6441
 SHA512 
d0552673053bfeb1c5aba9fdee25e6e280de204d84d8bc8a0a723041844dea7071fdf55cdc8e3120ef42eb6adf746c725cca89471cf58d546c1112e3655cf688
+DIST valgrind-3.23.0.RC2.tar.bz2 16551949 BLAKE2B 
0104a56006cd4a1f4d3195c69d76b13f3eebb15b3cd490e6b78f5b0ad6267488e5b1b5502711fba171d213158d2bc9f4644c9f15b73ed00533748117afba5eef
 SHA512 
36d20c08442bd00ae560693517d69ab5cc1665b210cb7510e6ab7cfa7ce7a35e0f289fdbedc0b1c682ad2698586e49c8c65e52bbe699eef3aec6b7b1fdb5b961
+DIST valgrind-3.23.0.RC2.tar.bz2.asc 488 BLAKE2B 
bc858fe769d9cc28ab0d17738075e0523de701bf67fc0f80bdbc258465fd1b60cedd7730156a186db20406b8a35fe79f6e58daf718dd59852384f7b445d2ce7d
 SHA512 
b91c2ab157a3cf3042cde2b531a33b063d92c5bef8ae7e097d860b2b19a84ad372e4b7057a6d49ec8ad51a2cb2a80ecdf02115813f1c517b674a810876552512

diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
similarity index 100%
rename from dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild
rename to dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-04-25 Thread Sam James
commit: 6ada69a5bb8289f32d04b3eeaf354b2e089692b5
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 08:53:05 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 08:54:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ada69a5

dev-debug/valgrind: stop filtering LTO

mjw pointed out that Valgrind has a --enable-lto configure arg but it also
seems to work well nowadays. Valgrind is a special-case so use it.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild | 3 ++-
 dev-debug/valgrind/valgrind-.ebuild   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
index 312c4f8b724e..5a073f147105 100644
--- a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
@@ -75,6 +75,8 @@ src_configure() {
--with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
)
 
+   tc-is-lto && myconf+=( --enable-lto )
+
# Respect ar, bug #468114
tc-export AR
 
@@ -87,7 +89,6 @@ src_configure() {
# -fstack-protector-strong See -fstack-protector (bug #620402)
# -m64 -mx32for 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

diff --git a/dev-debug/valgrind/valgrind-.ebuild 
b/dev-debug/valgrind/valgrind-.ebuild
index 312c4f8b724e..5a073f147105 100644
--- a/dev-debug/valgrind/valgrind-.ebuild
+++ b/dev-debug/valgrind/valgrind-.ebuild
@@ -75,6 +75,8 @@ src_configure() {
--with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
)
 
+   tc-is-lto && myconf+=( --enable-lto )
+
# Respect ar, bug #468114
tc-export AR
 
@@ -87,7 +89,6 @@ src_configure() {
# -fstack-protector-strong See -fstack-protector (bug #620402)
# -m64 -mx32for 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



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-04-24 Thread Sam James
commit: 64b018a2c40307b048017ee4b9e9afafe1ffb19e
Author: Sam James  gentoo  org>
AuthorDate: Wed Apr 24 23:02:34 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Apr 24 23:02:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64b018a2

dev-debug/valgrind: add upstream bug link for -fno-sa in tests, sync live

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild | 1 +
 dev-debug/valgrind/valgrind-.ebuild   | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild
index 625625cc2679..312c4f8b724e 100644
--- a/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild
@@ -115,6 +115,7 @@ src_configure() {
 
 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
 }
 

diff --git a/dev-debug/valgrind/valgrind-.ebuild 
b/dev-debug/valgrind/valgrind-.ebuild
index e79b850d13a3..312c4f8b724e 100644
--- a/dev-debug/valgrind/valgrind-.ebuild
+++ b/dev-debug/valgrind/valgrind-.ebuild
@@ -115,7 +115,8 @@ src_configure() {
 
 src_test() {
# fxsave.o, tronical.o have textrels
-   emake LDFLAGS="${LDFLAGS} -Wl,-z,notext" check
+   # -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() {



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-04-19 Thread Sam James
commit: cac914e6f8c3963c000640124432d2a125999e16
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr 20 04:16:46 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr 20 04:16:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cac914e6

dev-debug/valgrind: add 3.23.0_rc1

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/Manifest   |   2 +
 dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild | 154 ++
 2 files changed, 156 insertions(+)

diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index 53d46a910f48..8ac610d293c2 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -2,3 +2,5 @@ DIST valgrind-3.21.0.tar.bz2 17449484 BLAKE2B 
1f7306d288eb5ecfb2b2f0b2dc68960ecd
 DIST valgrind-3.21.0.tar.bz2.asc 488 BLAKE2B 
6297bc925c16526a51de4f589232a8d5bcb8d54bdc885c145d329deeba45b42d3a5a8a3f59d3fb240d3bd78be7fd30d95ceb33c7624afd3c99c51833d0fd16f2
 SHA512 
114e5cd2f7352e56099efa3b2c42d39ed24e42419bbaac1af5e2b5c4fa72a2ba38ac6b0c60b93460a0cce8819ca0c7fae6618599b2af809ac0ab4fa30fdb25ba
 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.RC1.tar.bz2 16320808 BLAKE2B 
e66bdef3dcd1c5793bdd263dc12f55797d1b07add6c07cc57e06564a3b50447653a0e418be3bfecf1bffb15be7f0b906a75015a4c5f30d201eff9e79b72871f3
 SHA512 
6d9b95ce919ffa1993265c2972b407beb2879b87f84efd61ada4e75f334b332917a726b053c5dbc64b970a55334189c48ccae9231934c9474b65eb6ec1e2c18f
+DIST valgrind-3.23.0.RC1.tar.bz2.asc 488 BLAKE2B 
d413285e74965581b7f1ab8f4ea8ef6b182ae73462d4ca4a5d34b6eafa70a4be3b36a92a1b9a84ee626817e9c87e9a67659e43cc7f6ec504a3afc609365b6441
 SHA512 
d0552673053bfeb1c5aba9fdee25e6e280de204d84d8bc8a0a723041844dea7071fdf55cdc8e3120ef42eb6adf746c725cca89471cf58d546c1112e3655cf688

diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild
new file mode 100644
index ..625625cc2679
--- /dev/null
+++ b/dev-debug/valgrind/valgrind-3.23.0_rc1.ebuild
@@ -0,0 +1,154 @@
+# 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} ==  ]]; 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} !=  ]] ; 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
+)
+
+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 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/, dev-debug/valgrind/files/

2024-03-04 Thread Sam James
commit: d2ef5565cb818a3917a22949f91d48bcba3b83fe
Author: Sam James  gentoo  org>
AuthorDate: Mon Mar  4 10:12:35 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Mar  4 10:13:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2ef5565

dev-debug/valgrind: drop 3.20.0-r2, 3.22.0, 3.22.0-r1

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/Manifest|   2 -
 .../valgrind/files/valgrind-3.13.0-malloc.patch|  24 
 .../valgrind/files/valgrind-3.20.0-gcc-13.patch|  44 --
 .../files/valgrind-3.20.0-musl-interpose.patch |  30 
 .../files/valgrind-3.20.0-tests-clang16.patch  |  23 ---
 dev-debug/valgrind/valgrind-3.20.0-r2.ebuild   | 141 --
 dev-debug/valgrind/valgrind-3.22.0-r1.ebuild   | 157 -
 dev-debug/valgrind/valgrind-3.22.0.ebuild  | 152 
 8 files changed, 573 deletions(-)

diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest
index f4270c750aac..53d46a910f48 100644
--- a/dev-debug/valgrind/Manifest
+++ b/dev-debug/valgrind/Manifest
@@ -1,5 +1,3 @@
-DIST valgrind-3.20.0.tar.bz2 16469274 BLAKE2B 
8217dcfc185c7f6601fedd8d53bb35d260b985b8049c8c73a26151db6650b1607e8e53b614652c40962ea7382b9301c4b234a933c8d81f57e649ebf3f703e630
 SHA512 
d6bfb9284d0410134ee7e2a5975b13c01508dd5587b562947d8197b3c113b76fdfac88c4072948be68bbf0dbeb17b4d1acb1412ce898adaa83c30ae2c6a1c12b
-DIST valgrind-3.20.0.tar.bz2.asc 488 BLAKE2B 
12642e4f85c7b17bdb892221f74d80ce919554ffde3cdfa79ca27f4c5f8b48dac699084b8296b5cea285b5af660a0bc51c42b108a725be60002b14f0fda7eac7
 SHA512 
70dd20f15b159ffbf016c118046ee42160dd867415f1c565a92995952b1720ec36fc48557f6b523d28e6f675d62df10a4022e900fa4a104626b9e6ed6fe9ad6d
 DIST valgrind-3.21.0.tar.bz2 17449484 BLAKE2B 
1f7306d288eb5ecfb2b2f0b2dc68960ecd4a7213b96a2e4ecb9990a755e8c233b0e9d190c0f807019bde669f44a631c8dafe9eb521d739561e6f889f7bdaca5c
 SHA512 
3e86cda2f2d6cd30807fac7933ba2c46a97a2b4a868db989e6b0cceeadf029af7ee34ba900466a346948289aacb30f4399799bb83b97cc49a4d2d810441e5cfd
 DIST valgrind-3.21.0.tar.bz2.asc 488 BLAKE2B 
6297bc925c16526a51de4f589232a8d5bcb8d54bdc885c145d329deeba45b42d3a5a8a3f59d3fb240d3bd78be7fd30d95ceb33c7624afd3c99c51833d0fd16f2
 SHA512 
114e5cd2f7352e56099efa3b2c42d39ed24e42419bbaac1af5e2b5c4fa72a2ba38ac6b0c60b93460a0cce8819ca0c7fae6618599b2af809ac0ab4fa30fdb25ba
 DIST valgrind-3.22.0.tar.bz2 16565502 BLAKE2B 
80024371b3e70521996077fba24e233097a6190477ced1b311cd41fead687dcc2511ac0ef723792488f4af08867dff3e1f474816fda09c1604b89059e31c2514
 SHA512 
2904c13f68245bbafcea70998c6bd20725271300a7e94b6751ca00916943595fc3fac8557da7ea8db31b54a43f092823a0a947bc142829da811d074e1fe49777

diff --git a/dev-debug/valgrind/files/valgrind-3.13.0-malloc.patch 
b/dev-debug/valgrind/files/valgrind-3.13.0-malloc.patch
deleted file mode 100644
index d0eb795b84be..
--- a/dev-debug/valgrind/files/valgrind-3.13.0-malloc.patch
+++ /dev/null
@@ -1,24 +0,0 @@
 valgrind-3.13.0/coregrind/m_replacemalloc/vg_replace_malloc.c
-+++ valgrind-3.13.0/coregrind/m_replacemalloc/vg_replace_malloc.c
-@@ -765,13 +765,15 @@ static void init(void);
-   DO_INIT; \
-   MALLOC_TRACE("realloc(%p,%llu)", ptrV, (ULong)new_size ); \
-   \
--  if (ptrV == NULL) \
-- /* We need to call a malloc-like function; so let's use \
--one which we know exists. */ \
-- return VG_REPLACE_FUNCTION_EZU(10010,VG_Z_LIBC_SONAME,malloc) \
--   (new_size); \
-+  if (ptrV == NULL) { \
-+ TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED(new_size); \
-+ v = (void*)VALGRIND_NON_SIMD_CALL1( info.tl_malloc, new_size ); \
-+ MALLOC_TRACE(" = %p\n", v ); \
-+ return v; \
-+  } \
-   if (new_size <= 0) { \
-- VG_REPLACE_FUNCTION_EZU(10050,VG_Z_LIBC_SONAME,free)(ptrV); \
-+ if (ptrV != NULL)  \
-+VALGRIND_NON_SIMD_CALL1( info.tl_free, ptrV ); \
-  MALLOC_TRACE(" = 0\n"); \
-  return NULL; \
-   } \

diff --git a/dev-debug/valgrind/files/valgrind-3.20.0-gcc-13.patch 
b/dev-debug/valgrind/files/valgrind-3.20.0-gcc-13.patch
deleted file mode 100644
index 3d3644f85fc1..
--- a/dev-debug/valgrind/files/valgrind-3.20.0-gcc-13.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-https://sourceware.org/git/?p=valgrind.git;a=commit;h=dee222c6e818ca43ac45952fc8a020f445d98781
-https://sourceware.org/git/?p=valgrind.git;a=commit;h=3155bacf26237beb65edb4a572402492b2f1b050
-
-From dee222c6e818ca43ac45952fc8a020f445d98781 Mon Sep 17 00:00:00 2001
-From: Paul Floyd 
-Date: Fri, 27 Jan 2023 08:30:41 +0100
-Subject: [PATCH] Bug 464859 - Build failures with GCC-13 (drd tsan_unittest)
-
-Patch submitted by
-   Khem Raj 
 a/drd/tests/tsan_thread_wrappers_pthread.h
-+++ b/drd/tests/tsan_thread_wrappers_pthread.h
-@@ -55,6 +55,7 @@
- #define NO_TLS
- #endif
- 
-+#include 
- #include 
- using namespace std;
- 
--- 
-2.31.1
-
-From 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/, dev-debug/valgrind/files/

2024-01-22 Thread Sam James
commit: 6c34ec2caafeb7e0f53f76dc06b01b02f73ccbaa
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan 22 13:11:13 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan 22 13:11:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c34ec2c

dev-debug/valgrind: fix compat w/ upcoming binutils-2.42

Signed-off-by: Sam James  gentoo.org>

 ...nitor.py-regular-expressions-should-use-r.patch |   2 +-
 ...valgrind-3.22.0-fails-on-assertion-when-l.patch |   2 +-
 .../0003-Add-fchmodat2-syscall-on-linux.patch  |   2 +-
 ...Valgrind-incompatibility-with-binutils-2..patch | 151 
 dev-debug/valgrind/valgrind-3.22.0-r2.ebuild   | 158 +
 5 files changed, 312 insertions(+), 3 deletions(-)

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
index cc51bc219456..70bd723855ad 100644
--- 
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
@@ -1,7 +1,7 @@
 From 027b649fdb831868e71be01cafdacc49a5f419ab Mon Sep 17 00:00:00 2001
 From: Mark Wielaard 
 Date: Fri, 17 Nov 2023 14:01:21 +0100
-Subject: [PATCH 1/3] valgrind-monitor.py regular expressions should use raw
+Subject: [PATCH 1/4] valgrind-monitor.py regular expressions should use raw
  strings
 
 With python 3.12 gdb will produce the following SyntaxWarning when

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
index 40885a04d850..df6250ea81db 100644
--- 
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
@@ -1,7 +1,7 @@
 From 1d00e5ce0fb069911c4b525ec38289fb5d9021b0 Mon Sep 17 00:00:00 2001
 From: Paul Floyd 
 Date: Sat, 18 Nov 2023 08:49:34 +0100
-Subject: [PATCH 2/3] Bug 476548 - valgrind 3.22.0 fails on assertion when
+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)

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
index a65178a585f4..568cc5302b63 100644
--- a/dev-debug/valgrind/files/0003-Add-fchmodat2-syscall-on-linux.patch
+++ b/dev-debug/valgrind/files/0003-Add-fchmodat2-syscall-on-linux.patch
@@ -1,7 +1,7 @@
 From a43e62dddcf51ec6578a90c5988a41e856b44b05 Mon Sep 17 00:00:00 2001
 From: Mark Wielaard 
 Date: Sat, 18 Nov 2023 21:17:02 +0100
-Subject: [PATCH 3/3] Add fchmodat2 syscall on linux
+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.

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
new file mode 100644
index ..a1413916ea73
--- /dev/null
+++ 
b/dev-debug/valgrind/files/0004-Bug-478624-Valgrind-incompatibility-with-binutils-2..patch
@@ -0,0 +1,151 @@
+From 41ff9aa49f6c54c66d0e6b37f265fd9cb0176057 Mon Sep 17 00:00:00 2001
+From: Paul Floyd 
+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 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/files/, dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: 0aaf24bffa7167ec92ae380cefc031ce812fd5dd
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 04:40:23 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 04:40:23 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aaf24bf

dev-debug/valgrind: backport fixes from 3.22.0 stable branch

Mark Wielaard (2):
  valgrind-monitor.py regular expressions should use raw strings
  Add fchmodat2 syscall on linux

Paul Floyd (1):
  Bug 476548 - valgrind 3.22.0 fails on assertion when loading debuginfo 
file produced by mold

Signed-off-by: Sam James  gentoo.org>

 ...nitor.py-regular-expressions-should-use-r.patch |  61 ++
 ...valgrind-3.22.0-fails-on-assertion-when-l.patch | 144 ++
 .../0003-Add-fchmodat2-syscall-on-linux.patch  | 218 +
 ...grind-.ebuild => valgrind-3.22.0-r1.ebuild} |   7 +-
 dev-debug/valgrind/valgrind-.ebuild|   4 +-
 5 files changed, 432 insertions(+), 2 deletions(-)

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
new file mode 100644
index ..cc51bc219456
--- /dev/null
+++ 
b/dev-debug/valgrind/files/0001-valgrind-monitor.py-regular-expressions-should-use-r.patch
@@ -0,0 +1,61 @@
+From 027b649fdb831868e71be01cafdacc49a5f419ab Mon Sep 17 00:00:00 2001
+From: Mark Wielaard 
+Date: Fri, 17 Nov 2023 14:01:21 +0100
+Subject: [PATCH 1/3] 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=XX
++where XX 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
new file mode 100644
index ..40885a04d850
--- /dev/null
+++ 
b/dev-debug/valgrind/files/0002-Bug-476548-valgrind-3.22.0-fails-on-assertion-when-l.patch
@@ -0,0 +1,144 @@
+From 1d00e5ce0fb069911c4b525ec38289fb5d9021b0 Mon Sep 17 00:00:00 2001
+From: Paul Floyd 
+Date: Sat, 18 Nov 2023 08:49:34 +0100
+Subject: [PATCH 2/3] 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 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: 11045bb593445b60b5fdc40a0c1cfa129aa7a4c4
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 04:32:40 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 04:32:40 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11045bb5

dev-debug/valgrind: Stabilize 3.21.0-r2 x86, #922067

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
index a434040c1f8b..9f38c6b898d2 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
@@ -20,7 +20,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* amd64 ~arm arm64 ~ppc ppc64 ~x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: 57d08811513a5a620f137e2a981d43809d595c52
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 04:19:14 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 04:19:14 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57d08811

dev-debug/valgrind: Stabilize 3.21.0-r2 ppc64, #922067

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
index 498febbd854b..a434040c1f8b 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
@@ -20,7 +20,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* amd64 ~arm arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm arm64 ~ppc ppc64 ~x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: ce7c6c4dcc96f9bee0b3a75850d50725a0211342
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 04:14:04 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 04:14:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce7c6c4d

dev-debug/valgrind: Stabilize 3.21.0-r2 amd64, #922067

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
index 4fffdd3b3c6a..498febbd854b 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
@@ -20,7 +20,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* ~amd64 ~arm arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 ~arm arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: ff5a67a9155ef0cb3d4b6a04ae8a09f8b67b534a
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 04:08:00 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 04:08:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff5a67a9

dev-debug/valgrind: Stabilize 3.21.0-r2 arm64, #922067

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
index 1c6ad6cb0422..4fffdd3b3c6a 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r2.ebuild
@@ -20,7 +20,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="-* ~amd64 ~arm arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: d6b889ecc8667342d6de9ac980a2665f77663849
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 03:16:16 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 03:16:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6b889ec

dev-debug/valgrind: Stabilize 3.21.0-r1 arm, #908143

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild
index 9b78aebad2fb..0e097ae8d7f1 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild
@@ -15,7 +15,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* amd64 ~arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/

2024-01-13 Thread Sam James
commit: 791303199f408aac81372cffb1b4eb0ab2a17d1b
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 14 03:16:19 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 14 03:16:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79130319

dev-debug/valgrind: Stabilize 3.21.0-r1 ppc, #908143

Signed-off-by: Sam James  gentoo.org>

 dev-debug/valgrind/valgrind-3.21.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild 
b/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild
index 0e097ae8d7f1..632b096a9c08 100644
--- a/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild
+++ b/dev-debug/valgrind/valgrind-3.21.0-r1.ebuild
@@ -15,7 +15,7 @@ else
inherit verify-sig
SRC_URI="https://sourceware.org/pub/valgrind/${P}.tar.bz2;
SRC_URI+=" verify-sig? ( 
https://sourceware.org/pub/valgrind/${P}.tar.bz2.asc )"
-   KEYWORDS="-* amd64 arm arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
+   KEYWORDS="-* amd64 arm arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux 
~x64-macos ~x64-solaris"
 fi
 
 LICENSE="GPL-2"