Skip to content

Commit

Permalink
dev-util/valgrind: add support for glibc 2.22, bug #580092
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
blueness committed Apr 16, 2016
1 parent e3c5a0e commit 3a0c640
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions dev-util/valgrind/files/valgrind-3.10.1-glibc-2.22.patch
Original file line number Diff line number Diff line change
@@ -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])
7 changes: 5 additions & 2 deletions dev-util/valgrind/valgrind-3.10.1.ebuild
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3a0c640

Please sign in to comment.