commit:     42a92b2fe4a3c1eaf117f082af52b08a83b20104
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu May 17 14:54:28 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu May 17 14:54:43 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42a92b2f

dev-libs/librelp: Don't enable valgrind in tests

Closes: https://bugs.gentoo.org/655952
Package-Manager: Portage-2.3.36, Repoman-2.3.9

 .../files/librelp-1.2.16-fix-valgrind-usage.patch  | 27 ++++++++++++++++++++++
 dev-libs/librelp/librelp-1.2.16.ebuild             |  2 ++
 2 files changed, 29 insertions(+)

diff --git a/dev-libs/librelp/files/librelp-1.2.16-fix-valgrind-usage.patch 
b/dev-libs/librelp/files/librelp-1.2.16-fix-valgrind-usage.patch
new file mode 100644
index 00000000000..15f605dd482
--- /dev/null
+++ b/dev-libs/librelp/files/librelp-1.2.16-fix-valgrind-usage.patch
@@ -0,0 +1,27 @@
+Upstream bug: https://github.com/rsyslog/librelp/issues/100
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -176,16 +176,20 @@ fi
+ 
+ # valgrind
+ AC_ARG_ENABLE(valgrind,
+-        [AS_HELP_STRING([--enable-valgrind],[Enable valgrind 
tests@<:@default=yes@:>@])],
++        [AS_HELP_STRING([--enable-valgrind],[Enable valgrind 
tests@<:@default=no@:>@])],
+         [case "${enableval}" in
+          yes) enable_valgrind="yes" ;;
+           no) enable_valgrind="no" ;;
+            *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind) ;;
+          esac],
+-        [enable_valgrind="yes"]
++        [enable_valgrind="no"]
+ )
+ if test "$enable_valgrind" = "yes"; then
+         AC_CHECK_PROG(VALGRIND, [valgrind], [valgrind], [no])
++
++        if test "x$VALGRIND" = "xno"; then
++                AC_MSG_ERROR([valgrind is missing but forced with 
--enable-valgrind. Either install valgrind or remove the option!])
++        fi
+ fi
+ AM_CONDITIONAL([HAVE_VALGRIND], test "$enable_valgrind" == "yes")
+ 

diff --git a/dev-libs/librelp/librelp-1.2.16.ebuild 
b/dev-libs/librelp/librelp-1.2.16.ebuild
index e82777d8801..62f7452fb6a 100644
--- a/dev-libs/librelp/librelp-1.2.16.ebuild
+++ b/dev-libs/librelp/librelp-1.2.16.ebuild
@@ -26,6 +26,8 @@ DEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=( "${FILESDIR}"/${P}-fix-valgrind-usage.patch )
+
 src_prepare() {
        sed -i \
                -e 's/ -g"/"/g' \

Reply via email to