packages: ltrace/ltrace.spec, ltrace/ptrace-headers.patch (NEW) - PTRACE_* ...

glen glen at pld-linux.org
Tue Sep 29 18:10:11 CEST 2009


Author: glen                         Date: Tue Sep 29 16:10:11 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- PTRACE_* constants for older libc/llh (copied from sysdeps/linux-gnu/trace.c for now)

---- Files affected:
packages/ltrace:
   ltrace.spec (1.63 -> 1.64) , ptrace-headers.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ltrace/ltrace.spec
diff -u packages/ltrace/ltrace.spec:1.63 packages/ltrace/ltrace.spec:1.64
--- packages/ltrace/ltrace.spec:1.63	Tue Sep 29 17:53:42 2009
+++ packages/ltrace/ltrace.spec	Tue Sep 29 18:10:06 2009
@@ -15,6 +15,7 @@
 Patch0:		%{name}-Makefile.in.patch
 Patch1:		%{name}-debian.patch
 Patch2:		poor-mans-autoconf.patch
+Patch3:		ptrace-headers.patch
 URL:		http://ltrace.alioth.debian.org/
 BuildRequires:	elfutils-devel
 # for libsupc++ (used for symbols demangling)
@@ -73,6 +74,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 CC="%{__cc}" \
@@ -105,6 +107,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.64  2009/09/29 16:10:06  glen
+- PTRACE_* constants for older libc/llh (copied from sysdeps/linux-gnu/trace.c for now)
+
 Revision 1.63  2009/09/29 15:53:42  glen
 - update to 0.5.3
 - introduce poor mans autoconf as maintainer decided to kill ac stuff, sic!

================================================================
Index: packages/ltrace/ptrace-headers.patch
diff -u /dev/null packages/ltrace/ptrace-headers.patch:1.1
--- /dev/null	Tue Sep 29 18:10:12 2009
+++ packages/ltrace/ptrace-headers.patch	Tue Sep 29 18:10:06 2009
@@ -0,0 +1,36 @@
+--- ltrace-0.5.3/sysdeps/linux-gnu/events.c~	2009-07-25 18:13:02.000000000 +0300
++++ ltrace-0.5.3/sysdeps/linux-gnu/events.c	2009-09-29 19:06:47.179886244 +0300
+@@ -11,6 +11,33 @@
+ 
+ #include "common.h"
+ 
++/* If the system headers did not provide the constants, hard-code the normal
++   values.  */
++#ifndef PTRACE_EVENT_FORK
++
++#define PTRACE_OLDSETOPTIONS    21
++#define PTRACE_SETOPTIONS       0x4200
++#define PTRACE_GETEVENTMSG      0x4201
++
++/* options set using PTRACE_SETOPTIONS */
++#define PTRACE_O_TRACESYSGOOD   0x00000001
++#define PTRACE_O_TRACEFORK      0x00000002
++#define PTRACE_O_TRACEVFORK     0x00000004
++#define PTRACE_O_TRACECLONE     0x00000008
++#define PTRACE_O_TRACEEXEC      0x00000010
++#define PTRACE_O_TRACEVFORKDONE 0x00000020
++#define PTRACE_O_TRACEEXIT      0x00000040
++
++/* Wait extended result codes for the above trace options.  */
++#define PTRACE_EVENT_FORK       1
++#define PTRACE_EVENT_VFORK      2
++#define PTRACE_EVENT_CLONE      3
++#define PTRACE_EVENT_EXEC       4
++#define PTRACE_EVENT_VFORK_DONE 5
++#define PTRACE_EVENT_EXIT       6
++
++#endif /* PTRACE_EVENT_FORK */
++
+ static Event event;
+ 
+ Event *
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ltrace/ltrace.spec?r1=1.63&r2=1.64&f=u



More information about the pld-cvs-commit mailing list