From fdf83ee3d6a9e0cb933346cd9f2d79e9fa086003a423bee962d8be8c8806de5e Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 2 Feb 2007 14:56:49 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/valgrind?expand=0&rev=4 --- openat-handling.diff | 65 ++++++++++++++++++++++++++++++++++++++++++ valgrind-3.2.2.tar.bz2 | 3 -- valgrind-3.2.3.tar.bz2 | 3 ++ valgrind.changes | 13 +++++++++ valgrind.spec | 15 ++++++++-- 5 files changed, 93 insertions(+), 6 deletions(-) create mode 100644 openat-handling.diff delete mode 100644 valgrind-3.2.2.tar.bz2 create mode 100644 valgrind-3.2.3.tar.bz2 diff --git a/openat-handling.diff b/openat-handling.diff new file mode 100644 index 0000000..681da41 --- /dev/null +++ b/openat-handling.diff @@ -0,0 +1,65 @@ +Index: include/vki-amd64-linux.h +=================================================================== +--- include/vki-amd64-linux.h (revision 6565) ++++ include/vki-amd64-linux.h (working copy) +@@ -240,6 +240,8 @@ struct vki_sigcontext { + #define VKI_O_NONBLOCK 04000 + #define VKI_O_LARGEFILE 0100000 + ++#define VKI_AT_FDCWD -100 ++ + #define VKI_F_DUPFD 0 /* dup */ + #define VKI_F_GETFD 1 /* get close_on_exec */ + #define VKI_F_SETFD 2 /* set/clear close_on_exec */ +Index: include/vki-ppc32-linux.h +=================================================================== +--- include/vki-ppc32-linux.h (revision 6565) ++++ include/vki-ppc32-linux.h (working copy) +@@ -300,6 +300,8 @@ struct vki_sigcontext { + #define VKI_O_NONBLOCK 04000 + #define VKI_O_LARGEFILE 0200000 + ++#define VKI_AT_FDCWD -100 ++ + #define VKI_F_DUPFD 0 /* dup */ + #define VKI_F_GETFD 1 /* get close_on_exec */ + #define VKI_F_SETFD 2 /* set/clear close_on_exec */ +Index: include/vki-x86-linux.h +=================================================================== +--- include/vki-x86-linux.h (revision 6565) ++++ include/vki-x86-linux.h (working copy) +@@ -272,6 +272,8 @@ struct vki_sigcontext { + #define VKI_O_NONBLOCK 04000 + #define VKI_O_LARGEFILE 0100000 + ++#define VKI_AT_FDCWD -100 ++ + #define VKI_F_DUPFD 0 /* dup */ + #define VKI_F_GETFD 1 /* get close_on_exec */ + #define VKI_F_SETFD 2 /* set/clear close_on_exec */ +Index: include/vki-ppc64-linux.h +=================================================================== +--- include/vki-ppc64-linux.h (revision 6565) ++++ include/vki-ppc64-linux.h (working copy) +@@ -357,6 +357,8 @@ struct vki_sigcontext { + #define VKI_O_NONBLOCK 04000 + #define VKI_O_LARGEFILE 0200000 + ++#define VKI_AT_FDCWD -100 ++ + #define VKI_F_DUPFD 0 /* dup */ + #define VKI_F_GETFD 1 /* get close_on_exec */ + #define VKI_F_SETFD 2 /* set/clear close_on_exec */ +Index: coregrind/m_syswrap/syswrap-linux.c +=================================================================== +--- coregrind/m_syswrap/syswrap-linux.c (revision 6565) ++++ coregrind/m_syswrap/syswrap-linux.c (working copy) +@@ -2434,7 +2434,7 @@ PRE(sys_openat) + int, dfd, const char *, filename, int, flags); + } + +- if (!ML_(fd_allowed)(ARG1, "openat", tid, False)) ++ if (ARG1 != VKI_AT_FDCWD && !ML_(fd_allowed)(ARG1, "openat", tid, False)) + SET_STATUS_Failure( VKI_EBADF ); + else + PRE_MEM_RASCIIZ( "openat(filename)", ARG2 ); diff --git a/valgrind-3.2.2.tar.bz2 b/valgrind-3.2.2.tar.bz2 deleted file mode 100644 index d431e06..0000000 --- a/valgrind-3.2.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ea8ed4d0d1d39372ca1ba8a6b7ad45e16efc63f62bca595bb6273743751795a -size 4016243 diff --git a/valgrind-3.2.3.tar.bz2 b/valgrind-3.2.3.tar.bz2 new file mode 100644 index 0000000..c40529c --- /dev/null +++ b/valgrind-3.2.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bca920527f43fd0c68e8f8eb16a7996b34f415e73af54de0f2cd43a8247c441 +size 4016265 diff --git a/valgrind.changes b/valgrind.changes index f0ac758..e171013 100644 --- a/valgrind.changes +++ b/valgrind.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Jan 30 14:22:31 CET 2007 - dmueller@suse.de + +- update to 3.2.3: + * fixes two serious regressions introduced in 3.2.2 + * intercept stpcpy_chk (#234247) +- fix openat syscall wrapper (#240225) + +------------------------------------------------------------------- +Thu Jan 25 15:08:36 CET 2007 - dmueller@suse.de + +- intercept stpcpy_chk and memrchr as well (#234347) + ------------------------------------------------------------------- Tue Jan 23 10:59:24 CET 2007 - dmueller@suse.de diff --git a/valgrind.spec b/valgrind.spec index 0a4dbe1..195ba80 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -1,5 +1,5 @@ # -# spec file for package valgrind (Version 3.2.2) +# spec file for package valgrind (Version 3.2.3) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -25,12 +25,13 @@ License: GNU General Public License (GPL) Group: Development/Tools/Debuggers Summary: Memory Management Debugger BuildRoot: %{_tmppath}/%{name}-%{version}-build -Version: 3.2.2 -Release: 2 +Version: 3.2.3 +Release: 1 Source0: %{name}-%{version}.tar.bz2 # svn di svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_2_1 svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH > 3_2_BRANCH.diff # svn di svn://svn.valgrind.org/vex/tags/VEX_3_2_1 svn://svn.valgrind.org/vex/branches/VEX_3_2_BRANCH > VEX_3_2_BRANCH.diff Patch3: valgrind-6012.patch +Patch4: openat-handling.diff Patch5: omega_RC_01.patch Provides: callgrind Obsoletes: callgrind @@ -76,6 +77,7 @@ cd .. %ifarch %ix86 x86_64 %patch5 %endif +%patch4 %build export CFLAGS="$RPM_OPT_FLAGS" @@ -100,6 +102,13 @@ mv $RPM_BUILD_ROOT/usr/share/doc/valgrind $RPM_BUILD_ROOT/usr/share/doc/packages %doc %_mandir/*/* %changelog -n valgrind +* Tue Jan 30 2007 - dmueller@suse.de +- update to 3.2.3: + * fixes two serious regressions introduced in 3.2.2 + * intercept stpcpy_chk (#234247) +- fix openat syscall wrapper (#240225) +* Thu Jan 25 2007 - dmueller@suse.de +- intercept stpcpy_chk and memrchr as well (#234347) * Tue Jan 23 2007 - dmueller@suse.de - switch to gcc-32bit on x86_64 * Mon Jan 22 2007 - dmueller@suse.de