dev-util/valgrind: add support for glibc 2.22, bug #580092
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 16 Apr 2016 08:58:51 +0000 (04:58 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Sat, 16 Apr 2016 08:59:13 +0000 (04:59 -0400)
Package-Manager: portage-2.2.26

dev-util/valgrind/files/valgrind-3.10.1-glibc-2.22.patch [new file with mode: 0644]
dev-util/valgrind/valgrind-3.10.1.ebuild

diff --git a/dev-util/valgrind/files/valgrind-3.10.1-glibc-2.22.patch b/dev-util/valgrind/files/valgrind-3.10.1-glibc-2.22.patch
new file mode 100644 (file)
index 0000000..aa44aec
--- /dev/null
@@ -0,0 +1,17 @@
+diff -Naur valgrind-3.10.1.orig/configure.ac valgrind-3.10.1/configure.ac
+--- valgrind-3.10.1.orig/configure.ac  2016-04-16 04:24:22.285314910 -0400
++++ valgrind-3.10.1/configure.ac       2016-04-16 04:39:03.437329726 -0400
+@@ -1032,6 +1032,13 @@
+       DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+       DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+       ;;
++     2.22)
++      AC_MSG_RESULT(2.22 family)
++      AC_DEFINE([GLIBC_2_22], 1, [Define to 1 if you're using glibc 2.22.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])
index 7dd15a4e7a6fe427e2f4bd93da0cec7b55ce71ee..b36dfc6a5fed3aa1bed2cfc76d0cef8412a93c22 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="4"
+EAPI="5"
 inherit autotools eutils flag-o-matic toolchain-funcs multilib pax-utils
 
 DESCRIPTION="An open-source memory debugger for GNU/Linux"
@@ -46,6 +46,9 @@ src_prepare() {
        # glibc 2.21 fix.  Bug #554808.
        epatch "${FILESDIR}"/${PN}-3.10.1-glibc-2.21.patch
 
+       # glibc 2.22 fix.  Bug #580092
+       epatch "${FILESDIR}"/${PN}-3.10.1-glibc-2.22.patch
+
        # Allow users to test their own patches
        epatch_user