Pull request for branch for-2012.02/valgrind-bump
Hello,
Here is a single patch that bumps Valgrind to 3.7.0 and also fixes the build of Valgrind when the ccache support is enabled.
Changes since v2:
* Removed the valgrind-3.7.0-readstab-fix.patch, which was a tentative to fix the missing a.out.h problem on PowerPC, but it doesn't work. The build of Valgrind on PowerPC still fails, but it is not a regression introduced by the version bump. Thanks to Belisko Marek for testing and reporting!
Changes since v1:
* Fixed my Git branch to only include this patch and not something else.
Thomas
The following changes since commit ef3fe1bef6581c66af3858d540343e011cb9fdd6:
cdrkit: bump to version 1.1.11 and adjust style (2011-12-21 23:02:31 +0100)
are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git for-2012.02/valgrind-bump
Thomas Petazzoni (1):
valgrind: bump to 3.7.0 and fix build with ccache
.../valgrind-3.6.1-configure-support-linux-3.patch | 30 --------
.../valgrind/valgrind-3.7.0-compiler-check.patch | 76 ++++++++++++++++++++
.../valgrind-3.7.0-fix-ccache-support.patch | 51 +++++++++++++
...gefile.patch => valgrind-3.7.0-largefile.patch} | 22 +++---
...ctls.patch => valgrind-3.7.0-more-ioctls.patch} | 34 +++++-----
...valgrind-3.7.0-workaround-SIGSEGV-on-PPC.patch} | 15 ++---
package/valgrind/valgrind.mk | 3 +-
7 files changed, 162 insertions(+), 69 deletions(-)
delete mode 100644 package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch
create mode 100644 package/valgrind/valgrind-3.7.0-compiler-check.patch
create mode 100644 package/valgrind/valgrind-3.7.0-fix-ccache-support.patch
rename package/valgrind/{valgrind-3.6.1-largefile.patch => valgrind-3.7.0-largefile.patch} (71%)
rename package/valgrind/{valgrind-3.6.1-more-ioctls.patch => valgrind-3.7.0-more-ioctls.patch} (90%)
rename package/valgrind/{valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch => valgrind-3.7.0-workaround-SIGSEGV-on-PPC.patch} (60%)Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/1 valgrind: bump to 3.7.0 and fix build with ccache
After bumping to 3.7.0, the valgrind-3.6.1-configure-support-linux-3.patch is no longer necessary since it was added upstream. The valgrind-3.7.0-compiler-check.patch patch is added to fix a compiler version check issue (patch taken from the upstream Subversion repository). The valgrind-3.7.0-fix-ccache-support.patch is added to fix the build process when ccache is used.
---
.../valgrind-3.6.1-configure-support-linux-3.patch | 30 --------
.../valgrind/valgrind-3.7.0-compiler-check.patch | 76 ++++++++++++++++++++
.../valgrind-3.7.0-fix-ccache-support.patch | 51 +++++++++++++
...gefile.patch => valgrind-3.7.0-largefile.patch} | 22 +++---
...ctls.patch => valgrind-3.7.0-more-ioctls.patch} | 34 +++++-----
...valgrind-3.7.0-workaround-SIGSEGV-on-PPC.patch} | 15 ++---
package/valgrind/valgrind.mk | 3 +-
7 files changed, 162 insertions(+), 69 deletions(-)
delete mode 100644 package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch
create mode 100644 package/valgrind/valgrind-3.7.0-compiler-check.patch
create mode 100644 package/valgrind/valgrind-3.7.0-fix-ccache-support.patch
rename package/valgrind/{valgrind-3.6.1-largefile.patch => valgrind-3.7.0-largefile.patch} (71%)
rename package/valgrind/{valgrind-3.6.1-more-ioctls.patch => valgrind-3.7.0-more-ioctls.patch} (90%)
rename package/valgrind/{valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch => valgrind-3.7.0-workaround-SIGSEGV-on-PPC.patch} (60%)package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch deleted +0 -30
@@ -1,30 +0,0 @@ -Add support for kernel 3.x. From upstream r11796 (via Debian). - -Signed-off-by: Baruch Siach <[email protected]> - -Index: valgrind-3.6.1/configure.in -=================================================================== ---- valgrind-3.6.1.orig/configure.in 2011-02-15 18:31:17.000000000 +0100 -+++ valgrind-3.6.1/configure.in 2011-07-08 22:36:36.051563848 +0200 -@@ -220,7 +220,7 @@ - kernel=`uname -r` - - case "${kernel}" in -- 2.6.*) -+ 2.6.*|3.*) - AC_MSG_RESULT([2.6 family (${kernel})]) - AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x]) - ;; -Index: valgrind-3.6.1/configure -=================================================================== ---- valgrind-3.6.1.orig/configure 2011-07-08 22:37:18.911240743 +0200 -+++ valgrind-3.6.1/configure 2011-07-08 22:37:44.847045178 +0200 -@@ -5348,7 +5348,7 @@ - kernel=`uname -r` - - case "${kernel}" in -- 2.6.*) -+ 2.6.*|3.*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5 - $as_echo "2.6 family (${kernel})" >&6; } -
package/valgrind/valgrind-3.7.0-compiler-check.patch new file +76 -0
76 lines not on this page · raw message
package/valgrind/valgrind-3.7.0-fix-ccache-support.patch new file +51 -0
51 lines not on this page · raw message
package/valgrind/valgrind-3.7.0-largefile.patch renamed from package/valgrind/valgrind-3.6.1-largefile.patch +11 -11
@@ -6,11 +6,11 @@ is detected. Signed-off-by: Peter Korsgaard <[email protected]> -Index: valgrind-3.6.1/coregrind/m_initimg/initimg-linux.c +Index: valgrind-3.7.0/coregrind/m_initimg/initimg-linux.c =================================================================== ---- valgrind-3.6.1.orig/coregrind/m_initimg/initimg-linux.c 2011-07-06 09:45:10.203070009 +0200 -+++ valgrind-3.6.1/coregrind/m_initimg/initimg-linux.c 2011-07-06 09:45:17.343070005 +0200 -@@ -54,7 +54,11 @@ +--- valgrind-3.7.0.orig/coregrind/m_initimg/initimg-linux.c 2011-10-26 23:24:43.000000000 +0200 ++++ valgrind-3.7.0/coregrind/m_initimg/initimg-linux.c 2011-12-22 14:53:12.798185055 +0100 +@@ -55,7 +55,11 @@ /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ #define _GNU_SOURCE
@@ -22,11 +22,11 @@ Index: valgrind-3.6.1/coregrind/m_initimg/initimg-linux.c /* This is for ELF types etc, and also the AT_ constants. */ #include <elf.h> /* --- !!! --- EXTERNAL HEADERS end --- !!! --- */ -Index: valgrind-3.6.1/coregrind/m_main.c +Index: valgrind-3.7.0/coregrind/m_main.c =================================================================== ---- valgrind-3.6.1.orig/coregrind/m_main.c 2011-07-06 09:44:22.203070033 +0200 -+++ valgrind-3.6.1/coregrind/m_main.c 2011-07-06 09:44:42.803070024 +0200 -@@ -2797,7 +2797,11 @@ +--- valgrind-3.7.0.orig/coregrind/m_main.c 2011-10-26 23:24:45.000000000 +0200 ++++ valgrind-3.7.0/coregrind/m_main.c 2011-12-22 14:53:12.798185055 +0100 +@@ -2743,7 +2743,11 @@ /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ #define _GNU_SOURCE
@@ -38,10 +38,10 @@ Index: valgrind-3.6.1/coregrind/m_main.c /* This is in order to get AT_NULL and AT_PAGESIZE. */ #include <elf.h> /* --- !!! --- EXTERNAL HEADERS end --- !!! --- */ -Index: valgrind-3.6.1/coregrind/m_ume/elf.c +Index: valgrind-3.7.0/coregrind/m_ume/elf.c =================================================================== ---- valgrind-3.6.1.orig/coregrind/m_ume/elf.c 2011-07-06 09:44:51.343070018 +0200 -+++ valgrind-3.6.1/coregrind/m_ume/elf.c 2011-07-06 09:44:58.833070015 +0200 +--- valgrind-3.7.0.orig/coregrind/m_ume/elf.c 2011-10-26 23:24:41.000000000 +0200 ++++ valgrind-3.7.0/coregrind/m_ume/elf.c 2011-12-22 14:53:12.798185055 +0100 @@ -48,7 +48,11 @@ /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */
package/valgrind/valgrind-3.7.0-more-ioctls.patch renamed from package/valgrind/valgrind-3.6.1-more-ioctls.patch +17 -17
@@ -4,11 +4,11 @@ Patch initially written by Eric Andersen <[email protected]>. Signed-off-by: Thomas Petazzoni <[email protected]> -Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c +Index: valgrind-3.7.0/coregrind/m_syswrap/syswrap-linux.c =================================================================== ---- valgrind-3.6.1.orig/coregrind/m_syswrap/syswrap-linux.c 2011-07-06 09:50:32.243069845 +0200 -+++ valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c 2011-07-06 09:53:39.783069751 +0200 -@@ -3900,7 +3900,33 @@ +--- valgrind-3.7.0.orig/coregrind/m_syswrap/syswrap-linux.c 2011-10-27 12:55:05.000000000 +0200 ++++ valgrind-3.7.0/coregrind/m_syswrap/syswrap-linux.c 2011-12-22 14:53:16.258126390 +0100 +@@ -4058,7 +4058,33 @@ case VKI_SG_GET_SG_TABLESIZE: /* 0x227f */ PRE_MEM_WRITE( "ioctl(SG_GET_SG_TABLESIZE)", ARG3, sizeof(int) ); break;
@@ -42,7 +42,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_IIOCGETCPS: PRE_MEM_WRITE( "ioctl(IIOCGETCPS)", ARG3, VKI_ISDN_MAX_CHANNELS * 2 * sizeof(unsigned long) ); -@@ -4215,6 +4241,8 @@ +@@ -4373,6 +4399,8 @@ case VKI_BLKROGET: PRE_MEM_WRITE( "ioctl(BLKROGET)", ARG3, sizeof(int)); break;
@@ -51,7 +51,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_BLKGETSIZE: PRE_MEM_WRITE( "ioctl(BLKGETSIZE)", ARG3, sizeof(unsigned long)); break; -@@ -4223,6 +4251,8 @@ +@@ -4381,6 +4409,8 @@ case VKI_BLKRAGET: PRE_MEM_WRITE( "ioctl(BLKRAGET)", ARG3, sizeof(long)); break;
@@ -60,7 +60,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_BLKFRASET: break; case VKI_BLKFRAGET: -@@ -4289,6 +4319,8 @@ +@@ -4447,6 +4477,8 @@ PRE_MEM_WRITE( "ioctl(CDROMREADTOCENTRY)", ARG3, sizeof(struct vki_cdrom_tocentry)); break;
@@ -69,7 +69,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_CDROMMULTISESSION: /* 0x5310 */ PRE_MEM_WRITE( "ioctl(CDROMMULTISESSION)", ARG3, sizeof(struct vki_cdrom_multisession)); -@@ -4989,7 +5021,28 @@ +@@ -5321,7 +5353,28 @@ case VKI_SG_GET_SG_TABLESIZE: POST_MEM_WRITE(ARG3, sizeof(int)); break;
@@ -98,7 +98,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_IIOCGETCPS: POST_MEM_WRITE( ARG3, VKI_ISDN_MAX_CHANNELS * 2 * sizeof(unsigned long) ); break; -@@ -5210,6 +5263,8 @@ +@@ -5542,6 +5595,8 @@ case VKI_BLKROGET: POST_MEM_WRITE(ARG3, sizeof(int)); break;
@@ -107,7 +107,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_BLKGETSIZE: POST_MEM_WRITE(ARG3, sizeof(unsigned long)); break; -@@ -5218,6 +5273,8 @@ +@@ -5550,6 +5605,8 @@ case VKI_BLKRAGET: POST_MEM_WRITE(ARG3, sizeof(long)); break;
@@ -116,7 +116,7 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_BLKFRASET: break; case VKI_BLKFRAGET: -@@ -5259,6 +5316,8 @@ +@@ -5591,6 +5648,8 @@ case VKI_CDROMREADTOCENTRY: POST_MEM_WRITE(ARG3, sizeof(struct vki_cdrom_tocentry)); break;
@@ -125,11 +125,11 @@ Index: valgrind-3.6.1/coregrind/m_syswrap/syswrap-linux.c case VKI_CDROMMULTISESSION: POST_MEM_WRITE(ARG3, sizeof(struct vki_cdrom_multisession)); break; -Index: valgrind-3.6.1/include/vki/vki-linux.h +Index: valgrind-3.7.0/include/vki/vki-linux.h =================================================================== ---- valgrind-3.6.1.orig/include/vki/vki-linux.h 2011-07-06 09:48:16.733069914 +0200 -+++ valgrind-3.6.1/include/vki/vki-linux.h 2011-07-06 09:49:49.413069868 +0200 -@@ -1646,7 +1646,9 @@ +--- valgrind-3.7.0.orig/include/vki/vki-linux.h 2011-10-26 23:24:31.000000000 +0200 ++++ valgrind-3.7.0/include/vki/vki-linux.h 2011-12-22 14:53:16.258126390 +0100 +@@ -1654,7 +1654,9 @@ #define VKI_BLKROSET _VKI_IO(0x12,93) /* set device read-only (0 = read-write) */ #define VKI_BLKROGET _VKI_IO(0x12,94) /* get read-only status (0 = read_write) */
@@ -139,7 +139,7 @@ Index: valgrind-3.6.1/include/vki/vki-linux.h #define VKI_BLKRASET _VKI_IO(0x12,98) /* set read ahead for block device */ #define VKI_BLKRAGET _VKI_IO(0x12,99) /* get current read ahead setting */ #define VKI_BLKFRASET _VKI_IO(0x12,100)/* set filesystem (mm/filemap.c) read-ahead */ -@@ -1721,6 +1723,53 @@ +@@ -1729,6 +1731,53 @@ //#define SG_GET_COMMAND_Q 0x2270 /* Yields 0 (queuing off) or 1 (on) */ #define VKI_SG_SET_COMMAND_Q 0x2271 /* Change queuing state with 0 or 1 */
@@ -193,7 +193,7 @@ Index: valgrind-3.6.1/include/vki/vki-linux.h //---------------------------------------------------------------------- // From linux-2.6.8.1/include/linux/cdrom.h //---------------------------------------------------------------------- -@@ -1730,6 +1779,7 @@ +@@ -1738,6 +1787,7 @@ (struct cdrom_tochdr) */ #define VKI_CDROMREADTOCENTRY 0x5306 /* Read TOC entry (struct cdrom_tocentry) */
package/valgrind/valgrind-3.7.0-workaround-SIGSEGV-on-PPC.patch renamed from package/valgrind/valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch +6 -9
@@ -8,11 +8,11 @@ Signed-off-by: Pierre Habouzit <[email protected]> coregrind/m_machine.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) -diff --git a/coregrind/m_machine.c b/coregrind/m_machine.c -index 8dc3e17..7921502 100644 ---- a/coregrind/m_machine.c -+++ b/coregrind/m_machine.c -@@ -28,6 +28,10 @@ +Index: valgrind-3.7.0/coregrind/m_machine.c +=================================================================== +--- valgrind-3.7.0.orig/coregrind/m_machine.c 2011-10-27 12:45:52.000000000 +0200 ++++ valgrind-3.7.0/coregrind/m_machine.c 2011-12-22 14:53:19.758067046 +0100 +@@ -27,6 +27,10 @@ The GNU General Public License is contained in the file COPYING. */
@@ -22,7 +22,4 @@ index 8dc3e17..7921502 100644 + #include "pub_core_basics.h" #include "pub_core_vki.h" - #include "pub_core_threadstate.h" --- -1.7.5.1.290.g2095dc - + #include "pub_core_libcsetjmp.h" // setjmp facilities
package/valgrind/valgrind.mk +1 -2
@@ -4,10 +4,9 @@ # ############################################################# -VALGRIND_VERSION = 3.6.1 +VALGRIND_VERSION = 3.7.0 VALGRIND_SITE = http://valgrind.org/downloads/ VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2 - VALGRIND_CONF_OPT = --disable-tls # On ARM, Valgrind only supports ARMv7, and uses the arch part of the
Signature · 1 line
1.7.4.1
PATCH 1/1 valgrind: bump to 3.7.0 and fix build with ccache
Le Sat, 31 Dec 2011 15:07:08 +0100,
Thomas Petazzoni <[email protected]> a ?crit :
Quoted 8 lines
After bumping to 3.7.0, the valgrind-3.6.1-configure-support-linux-3.patch is no longer necessary since it was added upstream. The valgrind-3.7.0-compiler-check.patch patch is added to fix a compiler version check issue (patch taken from the upstream Subversion repository). The valgrind-3.7.0-fix-ccache-support.patch is added to fix the build process when ccache is used.
Signed-off-by Thomas Petazzoni <[email protected]>
This patch has received a:
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 valgrind: bump to 3.7.0 and fix build with ccache
In reply to Thomas PetazzoniQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> After bumping to 3.7.0, the
Thomas> valgrind-3.6.1-configure-support-linux-3.patch is no longer Thomas> necessary since it was added upstream. The Thomas> valgrind-3.7.0-compiler-check.patch patch is added to fix a Thomas> compiler version check issue (patch taken from the upstream Thomas> Subversion repository). The
Thomas> valgrind-3.7.0-fix-ccache-support.patch is added to fix the Thomas> build process when ccache is used.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard