diff --git a/valgrind-3.9.0-ppc64-priority.patch b/valgrind-3.9.0-ppc64-priority.patch new file mode 100644 index 0000000..cf593e4 --- /dev/null +++ b/valgrind-3.9.0-ppc64-priority.patch @@ -0,0 +1,24 @@ +commit df77b4d9c15823519165f6e9a206b2c40ac68389 +Author: mjw +Date: Mon Mar 10 14:45:32 2014 +0000 + + Enable sys_getpriority and sys_setpriority for ppc64. + + Bug 331830 - ppc64: WARNING: unhandled syscall: 96/97 + (Miroslav Franc, mfranc@redhat.com) + + git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13861 a5019735-40e9-0310-863c-91ae7b9d1cf9 + +--- a/coregrind/m_syswrap/syswrap-ppc64-linux.c ++++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c +@@ -792,8 +792,8 @@ static SyscallTableEntry syscall_table[] = { + GENX_(__NR_fchmod, sys_fchmod), // 94 + + GENX_(__NR_fchown, sys_fchown), // 95 +-// _____(__NR_getpriority, sys_getpriority), // 96 +-// _____(__NR_setpriority, sys_setpriority), // 97 ++ GENX_(__NR_getpriority, sys_getpriority), // 96 ++ GENX_(__NR_setpriority, sys_setpriority), // 97 + // _____(__NR_profil, sys_profil), // 98 + GENXY(__NR_statfs, sys_statfs), // 99 + diff --git a/valgrind.spec b/valgrind.spec index 48898e6..c24d983 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -3,7 +3,7 @@ Summary: Tool for finding memory management bugs in programs Name: %{?scl_prefix}valgrind Version: 3.9.0 -Release: 7%{?dist} +Release: 8%{?dist} Epoch: 1 License: GPLv2+ URL: http://www.valgrind.org/ @@ -62,6 +62,9 @@ Patch15: valgrind-3.9.0-timer_create.patch # Accept glibc 2.19 as valid (upstream valgrind svn r13829) Patch16: valgrind-3.9.0-glibc-2.19.patch +# KDE#331830 - ppc64: WARNING: unhandled syscall: 96/97 +Patch17: valgrind-3.9.0-ppc64-priority.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 @@ -170,6 +173,7 @@ Valgrind User Manual for details. %patch14 -p1 %patch15 -p1 %patch16 -p1 +%patch17 -p1 %build # We need to use the software collection compiler and binutils if available. @@ -323,6 +327,9 @@ echo ===============END TESTING=============== %endif %changelog +* Mon Mar 10 2014 Mark Wielaard - 3.9.0-8 +- Add valgrind-3.9.0-ppc64-priority.patch + * Mon Feb 24 2014 Mark Wielaard - Add upstream fixes to valgrind-3.9.0-timer_create.patch