From 35232039c0d3b21e40d447970784e464604e3e8a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 19 Oct 2014 22:35:27 +0000 Subject: valgrind: update to the latest version, fix musl support Signed-off-by: Felix Fietkau SVN-Revision: 42978 --- package/devel/valgrind/Makefile | 4 +- .../valgrind/patches/100-fix_configure_check.patch | 6 +-- .../valgrind/patches/120-no_linux_ptrace_h.patch | 10 ----- package/devel/valgrind/patches/200-musl_fix.patch | 45 ++++++++++++++++++++++ 4 files changed, 50 insertions(+), 15 deletions(-) delete mode 100644 package/devel/valgrind/patches/120-no_linux_ptrace_h.patch create mode 100644 package/devel/valgrind/patches/200-musl_fix.patch (limited to 'package') diff --git a/package/devel/valgrind/Makefile b/package/devel/valgrind/Makefile index f3c021c..eed73e4 100644 --- a/package/devel/valgrind/Makefile +++ b/package/devel/valgrind/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=valgrind -PKG_VERSION:=3.8.1 +PKG_VERSION:=3.10.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://valgrind.org/downloads/ -PKG_MD5SUM:=288758010b271119a0ffc0183f1d6e38 +PKG_MD5SUM:=7c311a72a20388aceced1aa5573ce970 PKG_MAINTAINER:=Felix Fietkau diff --git a/package/devel/valgrind/patches/100-fix_configure_check.patch b/package/devel/valgrind/patches/100-fix_configure_check.patch index b06cc3b..87ef3b3 100644 --- a/package/devel/valgrind/patches/100-fix_configure_check.patch +++ b/package/devel/valgrind/patches/100-fix_configure_check.patch @@ -1,6 +1,6 @@ ---- a/configure.in -+++ b/configure.in -@@ -260,7 +260,7 @@ case "${host_os}" in +--- a/configure.ac ++++ b/configure.ac +@@ -300,7 +300,7 @@ case "${host_os}" in # Ok, this is linux. Check the kernel version AC_MSG_CHECKING([for the kernel version]) diff --git a/package/devel/valgrind/patches/120-no_linux_ptrace_h.patch b/package/devel/valgrind/patches/120-no_linux_ptrace_h.patch deleted file mode 100644 index f159876..0000000 --- a/package/devel/valgrind/patches/120-no_linux_ptrace_h.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/coregrind/vgdb.c -+++ b/coregrind/vgdb.c -@@ -102,7 +102,6 @@ I_die_here : (PTRACEINVOKER) architectur - #include - #if defined(VGO_linux) - # include --# include - #endif - #endif - diff --git a/package/devel/valgrind/patches/200-musl_fix.patch b/package/devel/valgrind/patches/200-musl_fix.patch new file mode 100644 index 0000000..7bb2029 --- /dev/null +++ b/package/devel/valgrind/patches/200-musl_fix.patch @@ -0,0 +1,45 @@ +--- a/coregrind/vg_preloaded.c ++++ b/coregrind/vg_preloaded.c +@@ -56,7 +56,7 @@ + void VG_NOTIFY_ON_LOAD(freeres)( void ); + void VG_NOTIFY_ON_LOAD(freeres)( void ) + { +-# if !defined(__UCLIBC__) \ ++# if !defined(__UCLIBC__) && defined(__GLIBC__) \ + && !defined(VGPV_arm_linux_android) && !defined(VGPV_x86_linux_android) \ + && !defined(VGPV_mips32_linux_android) + extern void __libc_freeres(void); +--- a/include/pub_tool_redir.h ++++ b/include/pub_tool_redir.h +@@ -241,7 +241,7 @@ + /* --- Soname of the standard C library. --- */ + + #if defined(VGO_linux) +-# define VG_Z_LIBC_SONAME libcZdsoZa // libc.so* ++# define VG_Z_LIBC_SONAME libcZdZa // libc.* + + #elif defined(VGO_darwin) && (DARWIN_VERS <= DARWIN_10_6) + # define VG_Z_LIBC_SONAME libSystemZdZaZddylib // libSystem.*.dylib +@@ -273,7 +273,11 @@ + /* --- Soname of the pthreads library. --- */ + + #if defined(VGO_linux) ++# if defined(__GLIBC__) || defined(__UCLIBC__) + # define VG_Z_LIBPTHREAD_SONAME libpthreadZdsoZd0 // libpthread.so.0 ++# else ++# define VG_Z_LIBPTHREAD_SONAME libcZdZa // libc.* ++# endif + #elif defined(VGO_darwin) + # define VG_Z_LIBPTHREAD_SONAME libSystemZdZaZddylib // libSystem.*.dylib + #else +--- a/configure.ac ++++ b/configure.ac +@@ -1031,8 +1031,6 @@ case "${GLIBC_VERSION}" in + + *) + AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}]) +- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.19]) +- AC_MSG_ERROR([or Darwin or Bionic libc]) + ;; + esac + -- cgit v1.1