瀏覽代碼

fix strace for FreeBSD

Ralf S. Engelschall 24 年之前
父節點
當前提交
9b2b070de1
共有 2 個文件被更改,包括 16 次插入1 次删除
  1. 13 0
      strace/strace-4.4.patch
  2. 3 1
      strace/strace.spec

+ 13 - 0
strace/strace-4.4.patch

@@ -0,0 +1,13 @@
+--- process.c.orig	Fri Aug  3 13:51:28 2001
++++ process.c	Sat Nov 24 19:40:05 2001
+@@ -1771,7 +1771,9 @@
+ 	{ PT_READ_D,		"PT_READ_D"		},
+ 	{ PT_WRITE_I,		"PT_WRITE_I"		},
+ 	{ PT_WRITE_D,		"PT_WRITE_D"		},
+-	{ PT_READ_U,		"PT_WRITE_U"		},
++#ifdef PT_READ_U
++	{ PT_READ_U,		"PT_READ_U"		},
++#endif
+ 	{ PT_CONTINUE,		"PT_CONTINUE"		},
+ 	{ PT_KILL,		"PT_KILL"		},
+ 	{ PT_STEP,		"PT_STEP"		},

+ 3 - 1
strace/strace.spec

@@ -35,10 +35,11 @@ Distribution: OpenPKG [EXP]
 Group:        Development
 License:      GPL
 Version:      %{V_major}
-Release:      20011121.0
+Release:      20011124.0
 
 #   list of sources
 Source0:      http://prdownloads.sourceforge.net/strace/strace_%{V_major}-%{V_minor}.tar.gz
+Patch0:       strace-%{V_major}.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -60,6 +61,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n strace-%{V_major}
+    %patch -p0
 
 %build
     CC="%{l_cc}" \