Patchwork [2/6] valgrind: Add glibc 2.19 awareness

login
register
mail settings
Submitter Khem Raj
Date Feb. 17, 2014, 7:34 p.m.
Message ID <1364536e4a64f5c5f1889021ae78300fda2c3790.1392665521.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/66865/
State New
Headers show

Comments

Khem Raj - Feb. 17, 2014, 7:34 p.m.
It wont compile otherwise and fail with errors e.g.

Valgrind requires glibc version 2.2 - 2.17 ...

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../valgrind/valgrind/glibc-2.19.patch             |   23 ++++++++++++++++++++
 meta/recipes-devtools/valgrind/valgrind_3.9.0.bb   |    1 +
 2 files changed, 24 insertions(+)
 create mode 100644 meta/recipes-devtools/valgrind/valgrind/glibc-2.19.patch

Patch

diff --git a/meta/recipes-devtools/valgrind/valgrind/glibc-2.19.patch b/meta/recipes-devtools/valgrind/valgrind/glibc-2.19.patch
new file mode 100644
index 0000000..7714b99
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind/glibc-2.19.patch
@@ -0,0 +1,23 @@ 
+Add support for compiling with glibc 2.19
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Upstream-Status: Pending
+Index: valgrind-3.9.0/configure.ac
+===================================================================
+--- valgrind-3.9.0.orig/configure.ac	2014-02-12 09:03:07.879873700 -0800
++++ valgrind-3.9.0/configure.ac	2014-02-12 09:07:35.099871774 -0800
+@@ -918,6 +918,13 @@
+ 	DEFAULT_SUPP="$srcdir/glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+ 	DEFAULT_SUPP="$srcdir/glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+ 	;;
++     2.19)
++	AC_MSG_RESULT(2.19 family)
++	AC_DEFINE([GLIBC_2_19], 1, [Define to 1 if you're using glibc 2.19.x])
++	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
++	DEFAULT_SUPP="$srcdir/glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
++	DEFAULT_SUPP="$srcdir/glibc-2.X-drd.supp ${DEFAULT_SUPP}"
++	;;
+      darwin)
+ 	AC_MSG_RESULT(Darwin)
+ 	AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb
index e1fb568..64da1a2 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb
@@ -15,6 +15,7 @@  SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
            file://fixed-perl-path.patch \
            file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \
            file://sepbuildfix.patch \
+           file://glibc-2.19.patch \
           "
 
 SRC_URI[md5sum] = "0947de8112f946b9ce64764af7be6df2"