strace 4.5 builds properly for mipsel, and does not use sys_errlist,
authorEric Andersen <andersen@codepoet.org>
Sat, 1 Nov 2003 05:57:07 +0000 (05:57 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 1 Nov 2003 05:57:07 +0000 (05:57 -0000)
so we no longer need to patch anything.
 -Erik

make/strace.mk
sources/strace.patch [deleted file]

index f4be954c59f9a400a8de9cc78457ed21626ef1f6..833366bfedef192808ede2aa6c28451563ace91e 100644 (file)
@@ -3,11 +3,10 @@
 # strace
 #
 #############################################################
-STRACE_SOURCE:=strace_4.4-1.tar.gz
+STRACE_SOURCE:=strace-4.5.tar.bz2
 STRACE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/strace
-STRACE_CAT:=zcat
-STRACE_DIR:=$(BUILD_DIR)/strace-4.4
-STRACE_PATCH:=$(SOURCE_DIR)/strace.patch
+STRACE_CAT:=bzcat
+STRACE_DIR:=$(BUILD_DIR)/strace-4.5
 
 
 $(DL_DIR)/$(STRACE_SOURCE):
@@ -17,7 +16,6 @@ strace-source: $(DL_DIR)/$(STRACE_SOURCE)
 
 $(STRACE_DIR)/.unpacked: $(DL_DIR)/$(STRACE_SOURCE)
        $(STRACE_CAT) $(DL_DIR)/$(STRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
-       cat $(STRACE_PATCH) | patch -p1 -d $(STRACE_DIR)
        touch $(STRACE_DIR)/.unpacked
 
 $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
diff --git a/sources/strace.patch b/sources/strace.patch
deleted file mode 100644 (file)
index bb5b866..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
---- strace-4.4/syscall.c.orig  2003-09-03 01:15:32.000000000 -0600
-+++ strace-4.4/syscall.c       2003-09-03 01:20:35.000000000 -0600
-@@ -71,10 +71,12 @@
- # include <asm/rse.h>
- #endif
-+#ifndef HAVE_STRERROR
- #ifndef SYS_ERRLIST_DECLARED
- extern int sys_nerr;
- extern char *sys_errlist[];
- #endif /* SYS_ERRLIST_DECLARED */
-+#endif /* HAVE_STERRROR */
- #define NR_SYSCALL_BASE 0
- #ifdef LINUX
-@@ -1529,6 +1531,7 @@
- #endif /* LINUX */
-                       default:
-                               tprintf("= -1 ");
-+#ifndef HAVE_STRERROR
-                               if (u_error < nerrnos && u_error < sys_nerr)
-                                       tprintf("%s (%s)", errnoent[u_error],
-                                               sys_errlist[u_error]);
-@@ -1540,6 +1543,13 @@
-                                               sys_errlist[u_error]);
-                               else
-                                       tprintf("E??? (errno %ld)", u_error);
-+#else
-+                              if (u_error < nerrnos)
-+                                      tprintf("%s (%s)", errnoent[u_error],
-+                                              strerror(u_error));
-+                              else
-+                                      tprintf("E??? (errno %ld)", u_error);
-+#endif
-                               break;
-                       }
-               }