summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Jones <cretin@gentoo.org>2003-03-10 15:19:18 +0000
committerStefan Jones <cretin@gentoo.org>2003-03-10 15:19:18 +0000
commitf5d49b105e0d840088d433f5dfde6e78e783e99e (patch)
tree6d3aaeab8686ec1ca0d3d42801d245093abe1914 /dev-util/dmake
parentAdded errno fixes to patch (diff)
downloadhistorical-f5d49b105e0d840088d433f5dfde6e78e783e99e.tar.gz
historical-f5d49b105e0d840088d433f5dfde6e78e783e99e.tar.bz2
historical-f5d49b105e0d840088d433f5dfde6e78e783e99e.zip
Fix bug 17187
Diffstat (limited to 'dev-util/dmake')
-rw-r--r--dev-util/dmake/ChangeLog5
-rw-r--r--dev-util/dmake/dmake-4.1-r1.ebuild13
-rw-r--r--dev-util/dmake/files/dmake-4.1-r1.diff170
3 files changed, 176 insertions, 12 deletions
diff --git a/dev-util/dmake/ChangeLog b/dev-util/dmake/ChangeLog
index 761ce15e7ddc..e4d4538e91f4 100644
--- a/dev-util/dmake/ChangeLog
+++ b/dev-util/dmake/ChangeLog
@@ -1,11 +1,14 @@
# ChangeLog for dev-util/dmake
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dmake/ChangeLog,v 1.4 2003/02/12 06:40:43 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dmake/ChangeLog,v 1.5 2003/03/10 15:19:18 cretin Exp $
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
*dmake-4.1-r1 (1 Feb 2002)
+ 10 Mar 2003; Stefan Jones <cretin@gentoo.org> :
+ Added patch to fix errno in newer glibc and merged sed lines also int patch
+
1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
diff --git a/dev-util/dmake/dmake-4.1-r1.ebuild b/dev-util/dmake/dmake-4.1-r1.ebuild
index 781de8d76dac..f721151d6998 100644
--- a/dev-util/dmake/dmake-4.1-r1.ebuild
+++ b/dev-util/dmake/dmake-4.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dmake/dmake-4.1-r1.ebuild,v 1.7 2003/02/13 11:50:50 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dmake/dmake-4.1-r1.ebuild,v 1.8 2003/03/10 15:19:18 cretin Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Improved make"
@@ -21,17 +21,8 @@ src_unpack() {
mv dmake ${P}
cd ${S}
- cp unix/runargv.c unix/runargv.c.orig
-
- cat unix/runargv.c.orig | \
- sed -e "s:extern.*char \*sys_errlist\[\];::" \
- > unix/runargv.c
- cp unix/startup.h unix/startup.h.orig
-
- cat unix/startup.h | \
- sed -e "s:usr/local/lib/dmake:usr/share/dmake:" \
- > unix/startup.h
+ patch -p1 < ${FILESDIR}/${PF}.diff || die
}
src_compile() {
diff --git a/dev-util/dmake/files/dmake-4.1-r1.diff b/dev-util/dmake/files/dmake-4.1-r1.diff
new file mode 100644
index 000000000000..3655a6bb067e
--- /dev/null
+++ b/dev-util/dmake/files/dmake-4.1-r1.diff
@@ -0,0 +1,170 @@
+diff -ur dmake.orig/dbug/malloc/testmem.c dmake-4.1/dbug/malloc/testmem.c
+--- dmake.orig/dbug/malloc/testmem.c 1997-07-15 17:02:26.000000000 +0100
++++ dmake-4.1/dbug/malloc/testmem.c 2003-03-10 15:02:38.000000000 +0000
+@@ -64,7 +64,7 @@
+ int f;
+ extern char *sys_errlist[];
+ extern int sys_nerr;
+-extern int errno;
++#include <errno.h>
+ #endif
+
+ /* ARGSUSED */
+diff -ur dmake.orig/qssl/runargv.c dmake-4.1/qssl/runargv.c
+--- dmake.orig/qssl/runargv.c 1997-07-15 17:02:29.000000000 +0100
++++ dmake-4.1/qssl/runargv.c 2003-03-10 15:03:09.000000000 +0000
+@@ -24,6 +24,7 @@
+ */
+
+ #include <signal.h>
++#include <errno.h>
+ #include "extern.h"
+ #include "sysintf.h"
+
+@@ -67,7 +68,6 @@
+ int shell;
+ char *cmd;
+ {
+- extern int errno;
+ int pid;
+ char **argv;
+
+diff -ur dmake.orig/qssl/stdlib.h dmake-4.1/qssl/stdlib.h
+--- dmake.orig/qssl/stdlib.h 1997-07-15 17:02:29.000000000 +0100
++++ dmake-4.1/qssl/stdlib.h 2003-03-10 15:03:35.000000000 +0000
+@@ -39,7 +39,7 @@
+ extern free();
+ #endif
+
+-extern int errno;
++#include <errno.h>
+
+ #ifndef EIO
+ # include <errno.h>
+diff -ur dmake.orig/unix/386ix/stdlib.h dmake-4.1/unix/386ix/stdlib.h
+--- dmake.orig/unix/386ix/stdlib.h 1997-07-15 17:02:34.000000000 +0100
++++ dmake-4.1/unix/386ix/stdlib.h 2003-03-10 15:04:33.000000000 +0000
+@@ -35,7 +35,7 @@
+ extern char *malloc();
+ extern char *realloc();
+ extern free();
+-extern int errno;
++#include <errno.h>
+
+ #ifndef EIO
+ # include <errno.h>
+diff -ur dmake.orig/unix/bsd43/stdlib.h dmake-4.1/unix/bsd43/stdlib.h
+--- dmake.orig/unix/bsd43/stdlib.h 1997-07-15 17:02:35.000000000 +0100
++++ dmake-4.1/unix/bsd43/stdlib.h 2003-03-10 15:04:55.000000000 +0000
+@@ -35,7 +35,7 @@
+ extern char *malloc();
+ extern char *realloc();
+ extern free();
+-extern int errno;
++#include <errno.h>
+
+ #ifndef EIO
+ # include <errno.h>
+diff -ur dmake.orig/unix/coherent/stdlib.h dmake-4.1/unix/coherent/stdlib.h
+--- dmake.orig/unix/coherent/stdlib.h 1997-07-15 17:02:35.000000000 +0100
++++ dmake-4.1/unix/coherent/stdlib.h 2003-03-10 15:05:33.000000000 +0000
+@@ -35,7 +35,7 @@
+ extern char *malloc();
+ extern char *realloc();
+ extern free();
+-extern int errno;
++#include <errno.h>
+
+ #ifndef EIO
+ # include <errno.h>
+diff -ur dmake.orig/unix/runargv.c dmake-4.1/unix/runargv.c
+--- dmake.orig/unix/runargv.c 1997-07-15 17:02:34.000000000 +0100
++++ dmake-4.1/unix/runargv.c 2003-03-10 15:05:53.000000000 +0000
+@@ -24,6 +24,7 @@
+ */
+
+ #include <signal.h>
++#include <errno.h>
+ #include "extern.h"
+ #include "sysintf.h"
+
+@@ -67,8 +68,7 @@
+ int shell;
+ char *cmd;
+ {
+- extern int errno;
+- extern char *sys_errlist[];
++
+ int pid;
+ char **argv;
+
+diff -ur dmake.orig/unix/startup.h dmake-4.1/unix/startup.h
+--- dmake.orig/unix/startup.h 1997-07-15 17:02:34.000000000 +0100
++++ dmake-4.1/unix/startup.h 2003-03-10 15:00:46.000000000 +0000
+@@ -24,4 +24,4 @@
+ -- Use cvs log to obtain detailed change logs.
+ */
+
+-"MAKESTARTUP := $(ROOTDIR)/usr/local/lib/dmake/startup/startup.mk",
++"MAKESTARTUP := $(ROOTDIR)/usr/share/dmake/startup/startup.mk",
+diff -ur dmake.orig/unix/sysvr1/stdlib.h dmake-4.1/unix/sysvr1/stdlib.h
+--- dmake.orig/unix/sysvr1/stdlib.h 1997-07-15 17:02:36.000000000 +0100
++++ dmake-4.1/unix/sysvr1/stdlib.h 2003-03-10 15:06:16.000000000 +0000
+@@ -35,7 +35,7 @@
+ extern char *malloc();
+ extern char *realloc();
+ extern free();
+-extern int errno;
++#include <errno.h>
+
+ #ifndef EIO
+ # include <errno.h>
+diff -ur dmake.orig/unix/sysvr3/stdlib.h dmake-4.1/unix/sysvr3/stdlib.h
+--- dmake.orig/unix/sysvr3/stdlib.h 1997-07-15 17:02:36.000000000 +0100
++++ dmake-4.1/unix/sysvr3/stdlib.h 2003-03-10 15:06:50.000000000 +0000
+@@ -46,10 +46,6 @@
+ #define NAME_MAX pathconf("/dev/null",_PC_NAME_MAX)
+ #endif
+
+-extern int errno;
+-
+-#ifndef EIO
+-# include <errno.h>
+-#endif
++#include <errno.h>
+
+ #endif /* _STDLIB_INCLUDED_ */
+diff -ur dmake.orig/unix/xenix/stdlib.h dmake-4.1/unix/xenix/stdlib.h
+--- dmake.orig/unix/xenix/stdlib.h 1997-07-15 17:02:36.000000000 +0100
++++ dmake-4.1/unix/xenix/stdlib.h 2003-03-10 15:05:15.000000000 +0000
+@@ -41,7 +41,7 @@
+ extern free();
+ #endif
+
+-extern int errno;
++#include <errno.h>
+
+ #ifndef EIO
+ # include <errno.h>
+diff -ur dmake.orig/win95/microsft/vpp40/runargv.c dmake-4.1/win95/microsft/vpp40/runargv.c
+--- dmake.orig/win95/microsft/vpp40/runargv.c 1997-07-15 17:02:37.000000000 +0100
++++ dmake-4.1/win95/microsft/vpp40/runargv.c 2003-03-10 15:07:06.000000000 +0000
+@@ -73,7 +73,6 @@
+ int shell;
+ char *cmd;
+ {
+- extern int errno;
+ extern char *sys_errlist[];
+ int pid;
+ char **argv;
+diff -ur dmake.orig/winnt/microsft/vpp40/runargv.c dmake-4.1/winnt/microsft/vpp40/runargv.c
+--- dmake.orig/winnt/microsft/vpp40/runargv.c 1997-07-15 17:02:38.000000000 +0100
++++ dmake-4.1/winnt/microsft/vpp40/runargv.c 2003-03-10 15:07:21.000000000 +0000
+@@ -73,7 +73,6 @@
+ int shell;
+ char *cmd;
+ {
+- extern int errno;
+ extern char *sys_errlist[];
+ int pid;
+ char **argv;