valgrind: update to 3.19.0.

This commit is contained in:
Duncaen 2022-06-28 22:42:52 +02:00 committed by Duncan Overbruck
parent 7e260c8c66
commit d8febc6bf7
4 changed files with 4 additions and 54 deletions

View file

@ -1,22 +0,0 @@
rawmemchar is not available on musl, guard it with defined(__GLIBC__)
--- a/memcheck/tests/str_tester.c 2021-10-10 14:17:32.000000000 +0000
+++ b/memcheck/tests/str_tester.c 2021-11-16 19:37:26.950006442 +0000
@@ -504,7 +504,7 @@
#endif
// DDD: better done by testing for the function.
-#if !defined(__APPLE__) && !defined(__sun) && !defined(__FreeBSD__)
+#if defined(__GLIBC__) && !defined(__APPLE__) && !defined(__sun) && !defined(__FreeBSD__)
static void
test_rawmemchr (void)
{
@@ -1451,7 +1451,7 @@
test_strchrnul ();
# endif
-# if !defined(__APPLE__) && !defined(__sun) && !defined(__FreeBSD__)
+# if defined(__GLIBC__) && !defined(__APPLE__) && !defined(__sun) && !defined(__FreeBSD__)
/* rawmemchr. */
test_rawmemchr ();
# endif

View file

@ -1,11 +0,0 @@
--- a/helgrind/tests/tc20_verifywrap.c 2021-11-16 21:01:30.020008847 +0000
+++ b/helgrind/tests/tc20_verifywrap.c 2021-11-16 21:02:22.140008872 +0000
@@ -20,7 +20,7 @@
#if !defined(__APPLE__) && !defined(__FreeBSD__)
-#if defined(__sun__)
+#if defined(__sun__) || !defined(__GLIBC__)
/* Fake __GLIBC_PREREQ on Solaris. Pretend glibc >= 2.4. */
# define __GLIBC_PREREQ
#else

View file

@ -1,18 +0,0 @@
--- a/memcheck/tests/linux/sys-statx.c 2021-01-21 15:09:33.000000000 +0000
+++ b/memcheck/tests/linux/sys-statx.c 2021-11-16 20:26:33.970007848 +0000
@@ -7,11 +7,15 @@
#include <assert.h>
#include <string.h>
#include <sys/syscall.h>
+#if defined(__GLIBC__)
#if __GLIBC_PREREQ(2,28)
/* struct statx provided in sys/stat.h */
#else
#include <linux/stat.h>
#endif
+#else
+#include <linux/stat.h>
+#endif
#include <errno.h>
int check_stat2;

View file

@ -1,6 +1,6 @@
# Template file for 'valgrind'
pkgname=valgrind
version=3.18.1
version=3.19.0
revision=1
build_style=gnu-configure
configure_args="--enable-tls --without-mpicc --enable-lto=yes"
@ -8,11 +8,12 @@ hostmakedepends="automake perl pkg-config"
makedepends="libgomp-devel"
depends="perl"
short_desc="Tool for finding memory management bugs in programs"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://valgrind.org/"
changelog="https://valgrind.org/docs/manual/dist.news.html"
distfiles="https://sourceware.org/pub/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=00859aa13a772eddf7822225f4b46ee0d39afbe071d32778da4d99984081f7f5
checksum=dd5e34486f1a483ff7be7300cc16b4d6b24690987877c3278d797534d6738f02
CFLAGS="-fno-stack-protector"
CXXFLAGS="-fno-stack-protector"