Hello community,

here is the log from the commit of package valgrind for openSUSE:Factory 
checked in at 2013-08-14 22:41:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/valgrind (Old)
 and      /work/SRC/openSUSE:Factory/.valgrind.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "valgrind"

Changes:
--------
--- /work/SRC/openSUSE:Factory/valgrind/valgrind.changes        2013-04-05 
17:14:26.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.valgrind.new/valgrind.changes   2013-08-14 
22:41:20.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Aug 13 15:13:20 UTC 2013 - [email protected]
+
+- valgrind-glibc-2.18.patch: add support for glibc 2.18
+
+-------------------------------------------------------------------

New:
----
  valgrind-glibc-2.18.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ valgrind.spec ++++++
--- /var/tmp/diff_new_pack.LY01cy/_old  2013-08-14 22:41:21.000000000 +0200
+++ /var/tmp/diff_new_pack.LY01cy/_new  2013-08-14 22:41:21.000000000 +0200
@@ -41,6 +41,7 @@
 Patch1:         jit-register-unregister.diff
 Patch2:         raise-segnames-limit.diff
 Patch3:         valgrind-glibc-2.17.patch
+Patch4:         valgrind-glibc-2.18.patch
 # during building the major version of glibc is built into the suppression file
 %define glibc_main_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut 
-d. -f1)
 %define glibc_major_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut 
-d. -f2)
@@ -140,6 +141,7 @@
 %patch1
 %patch2
 %patch3 -p1
+%patch4 -p1
 
 %build
 %ifarch %arm

++++++ valgrind-glibc-2.18.patch ++++++
Index: valgrind-3.8.1/configure.in
===================================================================
--- valgrind-3.8.1.orig/configure.in
+++ valgrind-3.8.1/configure.in
@@ -913,6 +913,13 @@ case "${GLIBC_VERSION}" in
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
        DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
        ;;
+     2.18)
+       AC_MSG_RESULT(2.18 family)
+       AC_DEFINE([GLIBC_2_18], 1, [Define to 1 if you're using glibc 2.18.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])
Index: valgrind-3.8.1/coregrind/vgdb.c
===================================================================
--- valgrind-3.8.1.orig/coregrind/vgdb.c
+++ valgrind-3.8.1/coregrind/vgdb.c
@@ -102,7 +102,6 @@ I_die_here : (PTRACEINVOKER) architectur
 #include <sys/user.h>
 #if defined(VGO_linux)
 #  include <sys/prctl.h>
-#  include <linux/ptrace.h>
 #endif
 #endif
 
@@ -696,7 +695,8 @@ static struct user user_save;
 //       runtime check not yet done.
 //   0 : PTRACE_GETREGS runtime check has failed.
 //   1 : PTRACE_GETREGS defined and runtime check ok.
-#ifdef PTRACE_GETREGS
+// <sys/ptrace.h> defines PTRACE_GETREGS as enum, check also for PT_GETREGS
+#if defined PTRACE_GETREGS || defined PT_GETREGS
 static int has_working_ptrace_getregs = -1;
 #endif
 
@@ -707,7 +707,7 @@ static
 Bool getregs (int pid, void *regs, long regs_bsz)
 {
    DEBUG(1, "getregs regs_bsz %ld\n", regs_bsz);
-#  ifdef PTRACE_GETREGS
+#  if defined PTRACE_GETREGS || defined PT_GETREGS
    if (has_working_ptrace_getregs) {
       // Platforms having GETREGS
       long res;
@@ -778,7 +778,7 @@ Bool setregs (int pid, void *regs, long
    DEBUG(1, "setregs regs_bsz %ld\n", regs_bsz);
 // Note : the below is checking for GETREGS, not SETREGS
 // as if one is defined and working, the other one should also work.
-#  ifdef PTRACE_GETREGS
+#  if defined PTRACE_GETREGS || defined PT_GETREGS
    if (has_working_ptrace_getregs) {
       // Platforms having SETREGS
       long res;
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to