From: Gustavo Zacarias Date: Wed, 18 Jun 2014 22:49:36 +0000 (-0300) Subject: valgrind: fix build for glibc 2.19 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d85010a5463e92e922e7a251f32cd7e475a4f6e2;p=buildroot.git valgrind: fix build for glibc 2.19 Fix build for glibc 2.19-based toolchains, fixes: http://autobuild.buildroot.net/results/be4/be4c033e2088c324f93fc70230f05d761108cfba/ Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- diff --git a/package/valgrind/valgrind-0005-glibc-2.19.patch b/package/valgrind/valgrind-0005-glibc-2.19.patch new file mode 100644 index 0000000000..e386a79fe9 --- /dev/null +++ b/package/valgrind/valgrind-0005-glibc-2.19.patch @@ -0,0 +1,32 @@ +Enable valgrind for glibc 2.19 targets, and update the error from 2.17 +to 2.19 (which in reality was 2.18). +Status: upstream. + +Signed-off-by: Gustavo Zacarias + +diff -Nura valgrind-3.9.0.orig/configure.ac valgrind-3.9.0/configure.ac +--- valgrind-3.9.0.orig/configure.ac 2014-06-18 19:06:39.212571710 -0300 ++++ valgrind-3.9.0/configure.ac 2014-06-18 19:08:37.385557736 -0300 +@@ -918,6 +918,13 @@ + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" + DEFAULT_SUPP="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="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" ++ DEFAULT_SUPP="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]) +@@ -931,7 +938,7 @@ + + *) + AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}]) +- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.17]) ++ AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.19]) + AC_MSG_ERROR([or Darwin libc]) + ;; + esac