[valgrind] Add valgrind-3.9.0-s390-dup3.patch

Mark Wielaard mjw at fedoraproject.org
Fri Feb 21 14:47:58 UTC 2014


commit 2b58ba7427e4ce82911566fc7268ae8a7b2011b7
Author: Mark Wielaard <mjw at redhat.com>
Date:   Fri Feb 21 15:42:34 2014 +0100

    Add valgrind-3.9.0-s390-dup3.patch

 valgrind-3.9.0-s390-dup3.patch |   13 +++++++++++++
 valgrind.spec                  |    7 +++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/valgrind-3.9.0-s390-dup3.patch b/valgrind-3.9.0-s390-dup3.patch
new file mode 100644
index 0000000..06578f6
--- /dev/null
+++ b/valgrind-3.9.0-s390-dup3.patch
@@ -0,0 +1,13 @@
+diff --git a/coregrind/m_syswrap/syswrap-s390x-linux.c b/coregrind/m_syswrap/syswrap-s390x-linux.c
+index f9bc136..58ed0f8 100644
+--- a/coregrind/m_syswrap/syswrap-s390x-linux.c
++++ b/coregrind/m_syswrap/syswrap-s390x-linux.c
+@@ -1044,7 +1044,7 @@ static SyscallTableEntry syscall_table[] = {
+    LINXY(__NR_inotify_init1,  sys_inotify_init1),                     // 324
+ 
+    LINXY(__NR_pipe2,  sys_pipe2),                                     // 325
+-   // (__NR_dup3,  ),
++   LINXY(__NR_dup3,  sys_dup3),                                       // 326
+    LINXY(__NR_epoll_create1,  sys_epoll_create1),                     // 327
+    LINXY(__NR_preadv, sys_preadv),                                    // 328
+    LINX_(__NR_pwritev, sys_pwritev),                                  // 329
diff --git a/valgrind.spec b/valgrind.spec
index 4c4f970..dc701fa 100644
--- a/valgrind.spec
+++ b/valgrind.spec
@@ -53,6 +53,9 @@ Patch12: valgrind-3.9.0-manpage-memcheck-options.patch
 # KDE#328455 - s390x SIGILL after emitting wrong register pair for ldxbr
 Patch13: valgrind-3.9.0-s390-fpr-pair.patch
 
+# KDE#331337 - s390x WARNING: unhandled syscall: 326 (dup3)
+Patch14: valgrind-3.9.0-s390-dup3.patch
+
 %ifarch x86_64 ppc64
 # Ensure glibc{,-devel} is installed for both multilib arches
 BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
@@ -158,6 +161,7 @@ Valgrind User Manual for details.
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
+%patch14 -p1
 
 %build
 # We need to use the software collection compiler and binutils if available.
@@ -311,6 +315,9 @@ echo ===============END TESTING===============
 %endif
 
 %changelog
+* Fri Feb 21 2014 Mark Wielaard <mjw at redhat.com>
+- Add valgrind-3.9.0-s390-dup3.patch
+
 * Thu Dec 12 2013 Mark Wielaard <mjw at redhat.com> - 3.9.0-5
 - Add valgrind-3.9.0-manpage-memcheck-options.patch.
 - Add valgrind-3.9.0-s390-fpr-pair.patch.


More information about the scm-commits mailing list