valgrind: 3.16.1 -> 3.17.0
Version 3.17.0 contains support for sched_getattr and sched_setattr. This fixes an issue where the following messages can be logged: WARNING: unhandled amd64-linux syscall 315 See: https://bugs.kde.org/show_bug.cgi?id=369029 In addition to the version bump, this commit enables doCheck (as the tests now pass) and provides a separate pname and version. The upstream 3.17.0 also reorganized the output, placing the default.supp file in libexec rather than lib. The postInstall hook was adjusted accordingly. A patch file which has not been used since upgrade to 3.15.0 in 2019 was also removed.
This commit is contained in:
parent
513701efce
commit
098c63da60
2 changed files with 4 additions and 45 deletions
|
@ -1,41 +0,0 @@
|
|||
From 7820fc268fae4353118b6355f1d4b9e1b7eeebec Mon Sep 17 00:00:00 2001
|
||||
From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
||||
Date: Sun, 28 Oct 2018 18:35:11 +0100
|
||||
Subject: [PATCH 1/1] Fix dependencies between libcoregrind*.a and
|
||||
*m_main.o/*m_libcsetjmp.o
|
||||
|
||||
The primary and secondary coregrind libraries must be updated
|
||||
when m_main.c or m_libcsetjmp.c are changed.
|
||||
|
||||
A dependency was missing between libcoregrind*.a and libnolto_coregrind*.a,
|
||||
and so tools were not relinked when m_main.c or m_libcsetjmp.c were
|
||||
changed.
|
||||
---
|
||||
coregrind/Makefile.am | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am
|
||||
index 914a270..8de1996 100644
|
||||
--- a/coregrind/Makefile.am
|
||||
+++ b/coregrind/Makefile.am
|
||||
@@ -511,6 +511,8 @@ libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS += \
|
||||
endif
|
||||
libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_LIBADD = \
|
||||
$(libnolto_coregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_OBJECTS)
|
||||
+libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_DEPENDENCIES = \
|
||||
+ libnolto_coregrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
|
||||
|
||||
if VGCONF_HAVE_PLATFORM_SEC
|
||||
libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \
|
||||
@@ -531,6 +533,8 @@ libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS += \
|
||||
endif
|
||||
libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_LIBADD = \
|
||||
$(libnolto_coregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_OBJECTS)
|
||||
+libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_DEPENDENCIES = \
|
||||
+ libnolto_coregrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a
|
||||
endif
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
--
|
||||
2.9.3
|
||||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "valgrind";
|
||||
version = "3.16.1";
|
||||
version = "3.17.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://sourceware.org/pub/${pname}/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1jik19rcd34ip8a5c9nv5wfj8k8maqb8cyclr4xhznq2gcpkl7y9";
|
||||
sha256 = "18l5jbk301j3462gipqn9bkfx44mdmwn0pwr73r40gl1irkfqfmd";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "man" "doc" ];
|
||||
|
@ -54,10 +54,10 @@ stdenv.mkDerivation rec {
|
|||
lib.optional (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin") "--enable-only64bit"
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin "--with-xcodedir=${xnu}/include";
|
||||
|
||||
doCheck = false; # fails
|
||||
doCheck = true;
|
||||
|
||||
postInstall = ''
|
||||
for i in $out/lib/valgrind/*.supp; do
|
||||
for i in $out/libexec/valgrind/*.supp; do
|
||||
substituteInPlace $i \
|
||||
--replace 'obj:/lib' 'obj:*/lib' \
|
||||
--replace 'obj:/usr/X11R6/lib' 'obj:*/lib' \
|
||||
|
|
Loading…
Reference in a new issue