summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2017-12-12 15:36:05 -0600
committerAustin English <wizardedit@gentoo.org>2017-12-12 15:59:33 -0600
commitc0dad8f0e252a0e30dbbe4e1f285f619374fed84 (patch)
tree66a3d91b413ac9b15ecf024bf822e5ba90a98ecc /dev-util/valgrind/files
parentdev-util/valgrind: also strip -fstack-protector-strong/-fstack-protector-all (diff)
downloadgentoo-c0dad8f0e252a0e30dbbe4e1f285f619374fed84.tar.gz
gentoo-c0dad8f0e252a0e30dbbe4e1f285f619374fed84.tar.bz2
gentoo-c0dad8f0e252a0e30dbbe4e1f285f619374fed84.zip
dev-util/valgrind: fix test failures with newer glibc-3.13.0
Gentoo-Bug: https://bugs.gentoo.org/637488 Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-util/valgrind/files')
-rw-r--r--dev-util/valgrind/files/valgrind-3.13.0-test-fixes.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-util/valgrind/files/valgrind-3.13.0-test-fixes.patch b/dev-util/valgrind/files/valgrind-3.13.0-test-fixes.patch
new file mode 100644
index 000000000000..9bdd29013ba7
--- /dev/null
+++ b/dev-util/valgrind/files/valgrind-3.13.0-test-fixes.patch
@@ -0,0 +1,29 @@
+See:
+https://bugs.gentoo.org/637488
+https://bugs.kde.org/show_bug.cgi?id=387686
+
+commit 2b5eab6a8db1b0487a3ad7fc4e7eeda6d3513626
+Author: Mark Wielaard <mark@klomp.org>
+Date: Thu Jun 29 15:26:30 2017 +0000
+
+ memcheck/tests: Use ucontext_t instead of struct ucontext
+
+ glibc 2.26 does not expose struct ucontext anymore.
+
+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+ git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16457
+
+diff --git a/memcheck/tests/linux/stack_changes.c b/memcheck/tests/linux/stack_changes.c
+index a978fc2b0..7f97b90a5 100644
+--- a/memcheck/tests/linux/stack_changes.c
++++ b/memcheck/tests/linux/stack_changes.c
+@@ -10,7 +10,7 @@
+ // This test is checking the libc context calls (setcontext, etc.) and
+ // checks that Valgrind notices their stack changes properly.
+
+-typedef struct ucontext mycontext;
++typedef ucontext_t mycontext;
+
+ mycontext ctx1, ctx2, oldc;
+ int count;