git: 05757c16c568 - main - devel/valgrind-devel: update to 3.24.0.g20240913

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Wed, 25 Sep 2024 06:30:10 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05757c16c5688cd47a615eb5ed7c9832356d1b45

commit 05757c16c5688cd47a615eb5ed7c9832356d1b45
Author:     Paul Floyd <pjfloyd@wanadoo.fr>
AuthorDate: 2024-09-20 15:07:02 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-25 06:28:05 +0000

    devel/valgrind-devel: update to 3.24.0.g20240913
    
     - updated for FreeBSD 13.4
     - aarch64 now supported
    
    Excerpt from NEWS:
    
    202770  open fd at exit --log-socket=127.0.0.1:1500 with --track-fds=yes
    276780  An instruction in fftw (Fast Fourier Transform) is unhandled by
            valgrind: vex x86->IR: unhandled instruction bytes:
            0x66 0xF 0x3A 0x2
    311655  --log-file=FILE leads to apparent fd leak
    317127  Fedora18/x86_64 --sanity-level=3 : aspacem segment mismatch
    337388  fcntl works on Valgrind's own file descriptors
    377966  arm64 unhandled instruction dc zva392146  aarch64: unhandled
            instruction 0xD5380001 (MRS rT, midr_el1)
    391148  Unhandled AVX instruction vmovq %xmm9,%xmm1
    392146  aarch64: unhandled instruction 0xD5380001 (MRS rT, midr_el1)
    412377  SIGILL on cache flushes on arm64
    417572  vex amd64->IR: unhandled instruction bytes: 0xC5 0x79 0xD6 0xED 0xC5
    447989  Support Armv8.2 SHA-512 instructions
    453044  gbserver_tests failures in aarch64
    479661  Valgrind leaks file descriptors
    486293  memccpy false positives
    487439  SIGILL in JDK11, JDK17
    487993  Alignment error when using Eigen with Valgrind and -m32
    488026  Use of `sizeof` instead of `strlen
    488379  --track-fds=yes errors that cannot be suppressed with --xml-file=
    488441  Add tests for --track-fds=yes --xml=yes and fd suppression tests
    489040  massif trace change to show the location increasing the stack
    489088  Valgrind throws unhandled instruction bytes: 0xC5 0x79 0xD6 0xE0 0xC5
    489338  arm64: Instruction fcvtas should round 322.5 to 323, but result is 322.
    489676  vgdb handle EINTR and EAGAIN more consistently
    490651  Stop using -flto-partition=one
    491394  (vgModuleLocal_addDiCfSI): Assertion 'di->fsm.have_rx_map &&
            di->fsm.rw_map_count' failed
    492663  Valgrind ignores debug info for some binaries
    
    PR:             281475
    Event:          EuroBSDcon 2024
---
 devel/valgrind-devel/Makefile  | 34 +++++++++++++++++++++++-----------
 devel/valgrind-devel/distinfo  |  6 +++---
 devel/valgrind-devel/pkg-plist | 24 ++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 14 deletions(-)

diff --git a/devel/valgrind-devel/Makefile b/devel/valgrind-devel/Makefile
index 1cf9c7e00c92..4f0161aa4a19 100644
--- a/devel/valgrind-devel/Makefile
+++ b/devel/valgrind-devel/Makefile
@@ -1,12 +1,11 @@
 PORTNAME=	valgrind
-PORTVERSION=	3.23.0.g20240201
-PORTREVISION=	1
+PORTVERSION=	3.24.0.g20240913
 DISTVERSIONPREFIX=	freebsd-
 PORTEPOCH=	1
 CATEGORIES=	devel
-MASTER_SITES=	https://snapshots.sourceware.org/valgrind/trunk/2024-02-01_13-39_1706794741/
+MASTER_SITES=	https://snapshots.sourceware.org/valgrind/trunk/2024-09-13_07-46_1726213561/
 PKGNAMESUFFIX=	-devel
-DISTNAME=	${PORTNAME}-3.23.0.GIT
+DISTNAME=	${PORTNAME}-3.24.0.GIT
 
 MAINTAINER=	pjfloyd@wanadoo.fr
 COMMENT=	Memory debugging and profiling tool
@@ -15,11 +14,14 @@ WWW=		https://www.valgrind.org/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-ONLY_FOR_ARCHS=	amd64 i386
+ONLY_FOR_ARCHS=	aarch64 amd64 i386
 
-USES=		autoreconf cpe gmake pathfix perl5 pkgconfig shebangfix python:3.9+,run tar:bz2
+USES=		autoreconf cpe gmake pathfix perl5 pkgconfig shebangfix \
+		python:3.9+,run tar:bz2
 USE_PERL5=	build
-SHEBANG_FILES=	callgrind/callgrind_annotate.in callgrind/callgrind_control.in cachegrind/cg_merge.in cachegrind/cg_diff.in cachegrind/cg_annotate.in
+SHEBANG_FILES=	callgrind/callgrind_annotate.in callgrind/callgrind_control.in \
+		cachegrind/cg_merge.in cachegrind/cg_diff.in \
+		cachegrind/cg_annotate.in
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_ENV+=	ac_cv_path_PERL=${PERL}
@@ -35,9 +37,9 @@ CONFLICTS=	valgrind
 #   in the installation tree.  Either Valgrind won't work at all, or it
 #   will still work if you do, but will generate less helpful error
 #   messages.)
-STRIP=		# empty
+STRIP=			# empty
 
-PORTDOCS=	html
+PORTDOCS=		html
 
 OPTIONS_DEFINE=		DOCS MANPAGES MPI
 OPTIONS_DEFINE_amd64=	32BIT
@@ -69,9 +71,19 @@ IGNORE=			please either install the lib32 distribution or unset the 32BIT option
 .  endif
 PLIST_SUB+=		X86=""
 . endif
-.else
+PLIST_SUB+=		AARCH64="@comment "
+.endif
+
+.if ${ARCH} == "i386"
+PLIST_SUB+=		AMD64="@comment " \
+			X86="" \
+			AARCH64="@comment "
+.endif
+
+.if ${ARCH} == "aarch64"
 PLIST_SUB+=		AMD64="@comment " \
-			X86=""
+			X86="@comment " \
+			AARCH64=""
 .endif
 
 post-patch-DOCS-off:
diff --git a/devel/valgrind-devel/distinfo b/devel/valgrind-devel/distinfo
index cbffd655f9ec..effb2329f526 100644
--- a/devel/valgrind-devel/distinfo
+++ b/devel/valgrind-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1706821653
-SHA256 (valgrind-3.23.0.GIT.tar.bz2) = 6acb8aff2156da992d2808ae55055de4bed5ceebc334c3393ed35a3dbda9681f
-SIZE (valgrind-3.23.0.GIT.tar.bz2) = 16184968
+TIMESTAMP = 1726252486
+SHA256 (valgrind-3.24.0.GIT.tar.bz2) = f70996a51d1fe973114b0f03fd0be758a2c1151daa18549354ba4a41ae9ec2bd
+SIZE (valgrind-3.24.0.GIT.tar.bz2) = 16310675
diff --git a/devel/valgrind-devel/pkg-plist b/devel/valgrind-devel/pkg-plist
index fe851319847a..0326a2b59576 100644
--- a/devel/valgrind-devel/pkg-plist
+++ b/devel/valgrind-devel/pkg-plist
@@ -79,6 +79,7 @@ include/valgrind/valgrind.h
 include/valgrind/vki/vki-amd64-freebsd.h
 include/valgrind/vki/vki-amd64-linux.h
 include/valgrind/vki/vki-arm-linux.h
+include/valgrind/vki/vki-arm64-freebsd.h
 include/valgrind/vki/vki-arm64-linux.h
 include/valgrind/vki/vki-darwin.h
 include/valgrind/vki/vki-freebsd.h
@@ -86,6 +87,7 @@ include/valgrind/vki/vki-linux-drm.h
 include/valgrind/vki/vki-linux-io_uring.h
 include/valgrind/vki/vki-linux.h
 include/valgrind/vki/vki-machine-types-amd64-freebsd.h
+include/valgrind/vki/vki-machine-types-arm64-freebsd.h
 include/valgrind/vki/vki-machine-types-x86-freebsd.h
 include/valgrind/vki/vki-mips32-linux.h
 include/valgrind/vki/vki-mips64-linux.h
@@ -138,14 +140,19 @@ include/valgrind/vki/vki-xen-xsm.h
 include/valgrind/vki/vki-xen.h
 %%AMD64%%lib/valgrind/libcoregrind-amd64-freebsd.a
 %%X86%%lib/valgrind/libcoregrind-x86-freebsd.a
+%%AARCH64%%lib/valgrind/libcoregrind-arm64-freebsd.a
 %%AMD64%%lib/valgrind/libgcc-sup-amd64-freebsd.a
 %%X86%%lib/valgrind/libgcc-sup-x86-freebsd.a
+%%AARCH64%%lib/valgrind/libgcc-sup-arm64-freebsd.a
 %%AMD64%%lib/valgrind/libreplacemalloc_toolpreload-amd64-freebsd.a
 %%X86%%lib/valgrind/libreplacemalloc_toolpreload-x86-freebsd.a
+%%AARCH64%%lib/valgrind/libreplacemalloc_toolpreload-arm64-freebsd.a
 %%AMD64%%lib/valgrind/libvex-amd64-freebsd.a
 %%X86%%lib/valgrind/libvex-x86-freebsd.a
+%%AARCH64%%lib/valgrind/libvex-arm64-freebsd.a
 %%AMD64%%lib/valgrind/libvexmultiarch-amd64-freebsd.a
 %%X86%%lib/valgrind/libvexmultiarch-x86-freebsd.a
+%%AARCH64%%lib/valgrind/libvexmultiarch-arm64-freebsd.a
 libdata/pkgconfig/valgrind.pc
 libexec/valgrind/32bit-core-valgrind-s1.xml
 libexec/valgrind/32bit-core-valgrind-s2.xml
@@ -184,30 +191,40 @@ libexec/valgrind/arm-with-vfpv3-valgrind.xml
 libexec/valgrind/arm-with-vfpv3.xml
 %%AMD64%%libexec/valgrind/cachegrind-amd64-freebsd
 %%X86%%libexec/valgrind/cachegrind-x86-freebsd
+%%AARCH64%%libexec/valgrind/cachegrind-arm64-freebsd
 %%AMD64%%libexec/valgrind/callgrind-amd64-freebsd
 %%X86%%libexec/valgrind/callgrind-x86-freebsd
+%%AARCH64%%libexec/valgrind/callgrind-arm64-freebsd
 libexec/valgrind/default.supp
 libexec/valgrind/dh_view.css
 libexec/valgrind/dh_view.html
 libexec/valgrind/dh_view.js
 %%AMD64%%libexec/valgrind/dhat-amd64-freebsd
 %%X86%%libexec/valgrind/dhat-x86-freebsd
+%%AARCH64%%libexec/valgrind/dhat-arm64-freebsd
 %%AMD64%%libexec/valgrind/drd-amd64-freebsd
 %%X86%%libexec/valgrind/drd-x86-freebsd
+%%AARCH64%%libexec/valgrind/drd-arm64-freebsd
 %%AMD64%%libexec/valgrind/exp-bbv-amd64-freebsd
 %%X86%%libexec/valgrind/exp-bbv-x86-freebsd
+%%AARCH64%%libexec/valgrind/exp-bbv-arm64-freebsd
 %%AMD64%%libexec/valgrind/getoff-amd64-freebsd
 %%X86%%libexec/valgrind/getoff-x86-freebsd
+%%AARCH64%%libexec/valgrind/getoff-arm64-freebsd
 %%AMD64%%libexec/valgrind/helgrind-amd64-freebsd
 %%X86%%libexec/valgrind/helgrind-x86-freebsd
+%%AARCH64%%libexec/valgrind/helgrind-arm64-freebsd
 libexec/valgrind/i386-coresse-valgrind.xml
 libexec/valgrind/i386-linux-valgrind.xml
 %%AMD64%%libexec/valgrind/lackey-amd64-freebsd
 %%X86%%libexec/valgrind/lackey-x86-freebsd
+%%AARCH64%%libexec/valgrind/lackey-arm64-freebsd
 %%AMD64%%libexec/valgrind/massif-amd64-freebsd
 %%X86%%libexec/valgrind/massif-x86-freebsd
+%%AARCH64%%libexec/valgrind/massif-arm64-freebsd
 %%AMD64%%libexec/valgrind/memcheck-amd64-freebsd
 %%X86%%libexec/valgrind/memcheck-x86-freebsd
+%%AARCH64%%libexec/valgrind/memcheck-arm64-freebsd
 libexec/valgrind/mips-cp0-valgrind-s1.xml
 libexec/valgrind/mips-cp0-valgrind-s2.xml
 libexec/valgrind/mips-cp0.xml
@@ -232,6 +249,7 @@ libexec/valgrind/mips64-linux-valgrind.xml
 libexec/valgrind/mips64-linux.xml
 %%AMD64%%libexec/valgrind/none-amd64-freebsd
 %%X86%%libexec/valgrind/none-x86-freebsd
+%%AARCH64%%libexec/valgrind/none-arm64-freebsd
 libexec/valgrind/power-altivec-valgrind-s1.xml
 libexec/valgrind/power-altivec-valgrind-s2.xml
 libexec/valgrind/power-altivec.xml
@@ -282,16 +300,22 @@ libexec/valgrind/valgrind-monitor-def.py
 libexec/valgrind/valgrind-monitor.py
 %%AMD64%%libexec/valgrind/vgpreload_core-amd64-freebsd.so
 %%X86%%libexec/valgrind/vgpreload_core-x86-freebsd.so
+%%AARCH64%%libexec/valgrind/vgpreload_core-arm64-freebsd.so
 %%AMD64%%libexec/valgrind/vgpreload_dhat-amd64-freebsd.so
 %%X86%%libexec/valgrind/vgpreload_dhat-x86-freebsd.so
+%%AARCH64%%libexec/valgrind/vgpreload_dhat-arm64-freebsd.so
 %%AMD64%%libexec/valgrind/vgpreload_drd-amd64-freebsd.so
 %%X86%%libexec/valgrind/vgpreload_drd-x86-freebsd.so
+%%AARCH64%%libexec/valgrind/vgpreload_drd-arm64-freebsd.so
 %%AMD64%%libexec/valgrind/vgpreload_helgrind-amd64-freebsd.so
 %%X86%%libexec/valgrind/vgpreload_helgrind-x86-freebsd.so
+%%AARCH64%%libexec/valgrind/vgpreload_helgrind-arm64-freebsd.so
 %%AMD64%%libexec/valgrind/vgpreload_massif-amd64-freebsd.so
 %%X86%%libexec/valgrind/vgpreload_massif-x86-freebsd.so
+%%AARCH64%%libexec/valgrind/vgpreload_massif-arm64-freebsd.so
 %%AMD64%%libexec/valgrind/vgpreload_memcheck-amd64-freebsd.so
 %%X86%%libexec/valgrind/vgpreload_memcheck-x86-freebsd.so
+%%AARCH64%%libexec/valgrind/vgpreload_memcheck-arm64-freebsd.so
 %%MANPAGES%%share/man/man1/callgrind_annotate.1.gz
 %%MANPAGES%%share/man/man1/callgrind_control.1.gz
 %%MANPAGES%%share/man/man1/cg_annotate.1.gz