The distribution patch under work/nbitools-R6.3/config/md.patch breaks with GNU patch, hurting !NetBSD pkgsrc platforms. Replace the patch with patch-a{m,n,o}, and remove the pre-patch target. The pkglint ERROR: Makefile:24: Invalid tool syntax: "${IMAKE_TOOLS:Nimake}". appears to be bogus, given an identical expression is used in <mk/tools/imake.mk>.diff -r1.17 -r1.18 pkgsrc/devel/nbitools/Makefile
(hauke)
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.17 2009/09/11 18:47:55 tnn Exp $ | 1 | # $NetBSD: Makefile,v 1.18 2010/11/25 15:17:50 hauke Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= nbitools-R6.3 | 4 | DISTNAME= nbitools-R6.3 | |
5 | PKGNAME= nbitools-6.3 | 5 | PKGNAME= nbitools-6.3 | |
6 | PKGREVISION= 4 | 6 | PKGREVISION= 5 | |
7 | CATEGORIES= devel | 7 | CATEGORIES= devel | |
8 | MASTER_SITES= ${MASTER_SITE_LOCAL} | 8 | MASTER_SITES= ${MASTER_SITE_LOCAL} | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://www.kitebird.com/imake-book/ | 11 | HOMEPAGE= http://www.kitebird.com/imake-book/ | |
12 | COMMENT= imake and tools derived from NetBSD-current/xsrc | 12 | COMMENT= imake and tools derived from NetBSD-current/xsrc | |
13 | 13 | |||
14 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 14 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
15 | PKG_DESTDIR_SUPPORT= destdir | 15 | PKG_DESTDIR_SUPPORT= destdir | |
16 | NOT_FOR_UNPRIVILEGED= yes | 16 | NOT_FOR_UNPRIVILEGED= yes | |
17 | 17 | |||
18 | BUILD_TARGET= World | 18 | BUILD_TARGET= World | |
19 | MAKE_ENV+= GCCCMD=gcc | 19 | MAKE_ENV+= GCCCMD=gcc | |
@@ -22,17 +22,14 @@ MAKE_JOBS_SAFE= NO | @@ -22,17 +22,14 @@ MAKE_JOBS_SAFE= NO | |||
22 | .include "../../mk/bsd.prefs.mk" | 22 | .include "../../mk/bsd.prefs.mk" | |
23 | 23 | |||
24 | USE_TOOLS+= ${IMAKE_TOOLS:Nimake} | 24 | USE_TOOLS+= ${IMAKE_TOOLS:Nimake} | |
25 | 25 | |||
26 | SUBST_CLASSES+= nbi | 26 | SUBST_CLASSES+= nbi | |
27 | SUBST_STAGE.nbi= pre-configure | 27 | SUBST_STAGE.nbi= pre-configure | |
28 | SUBST_MESSAGE.nbi= Fixing definition of ProjectRoot. | 28 | SUBST_MESSAGE.nbi= Fixing definition of ProjectRoot. | |
29 | SUBST_FILES.nbi= config/cf/site.def | 29 | SUBST_FILES.nbi= config/cf/site.def | |
30 | SUBST_SED.nbi= -e 's|^\(\#define[ \t]*ProjectRoot\).*|\1 ${PREFIX}|' | 30 | SUBST_SED.nbi= -e 's|^\(\#define[ \t]*ProjectRoot\).*|\1 ${PREFIX}|' | |
31 | 31 | |||
32 | post-extract: | 32 | post-extract: | |
33 | ${CP} ${FILESDIR}/DragonFly.cf ${WRKSRC}/config/cf | 33 | ${CP} ${FILESDIR}/DragonFly.cf ${WRKSRC}/config/cf | |
34 | 34 | |||
35 | pre-patch: | |||
36 | cd ${WRKSRC}/config/makedepend; ${PATCH} --quiet < md.patch | |||
37 | ||||
38 | .include "../../mk/bsd.pkg.mk" | 35 | .include "../../mk/bsd.pkg.mk" |
@@ -1,17 +1,20 @@ | @@ -1,17 +1,20 @@ | |||
1 | $NetBSD: distinfo,v 1.10 2006/07/05 04:59:47 jlam Exp $ | 1 | $NetBSD: distinfo,v 1.11 2010/11/25 15:17:50 hauke Exp $ | |
2 | 2 | |||
3 | SHA1 (nbitools-R6.3.tar.gz) = 0f6751417d7ef412be04611fbe4f56386a04322a | 3 | SHA1 (nbitools-R6.3.tar.gz) = 0f6751417d7ef412be04611fbe4f56386a04322a | |
4 | RMD160 (nbitools-R6.3.tar.gz) = 047f64b113a0307b045573bfe429b59063ae38ea | 4 | RMD160 (nbitools-R6.3.tar.gz) = 047f64b113a0307b045573bfe429b59063ae38ea | |
5 | Size (nbitools-R6.3.tar.gz) = 435764 bytes | 5 | Size (nbitools-R6.3.tar.gz) = 435764 bytes | |
6 | SHA1 (patch-aa) = df66d326f0a5375f829353084bf9935ac2d8e57c | 6 | SHA1 (patch-aa) = df66d326f0a5375f829353084bf9935ac2d8e57c | |
7 | SHA1 (patch-ab) = 4cc71d9e9a3c12106deff9d60118d363ae3ba981 | 7 | SHA1 (patch-ab) = 4cc71d9e9a3c12106deff9d60118d363ae3ba981 | |
8 | SHA1 (patch-ac) = 443c407f7619a8592da4d833f9fba91d78bd0493 | 8 | SHA1 (patch-ac) = 443c407f7619a8592da4d833f9fba91d78bd0493 | |
9 | SHA1 (patch-ad) = 4b6792ede85edcf9315a5f10e3a080db73e67a44 | 9 | SHA1 (patch-ad) = 4b6792ede85edcf9315a5f10e3a080db73e67a44 | |
10 | SHA1 (patch-ae) = 0a0acf8798055a7b1b292e8d2edf998857641550 | 10 | SHA1 (patch-ae) = 0a0acf8798055a7b1b292e8d2edf998857641550 | |
11 | SHA1 (patch-af) = 9a7e4bd19863d086a1e57f1cd9484b05189cbda6 | 11 | SHA1 (patch-af) = 9a7e4bd19863d086a1e57f1cd9484b05189cbda6 | |
12 | SHA1 (patch-ag) = 2563b2e5105d000cc0b57717d4dadfadec34ee4f | 12 | SHA1 (patch-ag) = 2563b2e5105d000cc0b57717d4dadfadec34ee4f | |
13 | SHA1 (patch-ah) = 10645ba6e875cca81c7cb67e570b737f16ccfa26 | 13 | SHA1 (patch-ah) = 10645ba6e875cca81c7cb67e570b737f16ccfa26 | |
14 | SHA1 (patch-ai) = 9085fda5360c672865561e2c0aeafdc34596eb66 | 14 | SHA1 (patch-ai) = 9085fda5360c672865561e2c0aeafdc34596eb66 | |
15 | SHA1 (patch-aj) = b3ec58e0fcbed869e230e0e3fa8b37517ed1b52e | 15 | SHA1 (patch-aj) = b3ec58e0fcbed869e230e0e3fa8b37517ed1b52e | |
16 | SHA1 (patch-ak) = 293f304c8e4dcafd2dd0f344c322df9fae9ff4a2 | 16 | SHA1 (patch-ak) = 293f304c8e4dcafd2dd0f344c322df9fae9ff4a2 | |
17 | SHA1 (patch-al) = d3f31eb2594560b75508fac223680fb9a01fe35c | 17 | SHA1 (patch-al) = d3f31eb2594560b75508fac223680fb9a01fe35c | |
18 | SHA1 (patch-am) = 24784762135c22786e805c90d2c86b0df83b9115 | |||
19 | SHA1 (patch-an) = 12997783591a61c3c547b1bcfc1fb248ea5b800b | |||
20 | SHA1 (patch-ao) = 86fdd0f788a992ff51871613e459b18cefb1946e |
$NetBSD: patch-am,v 1.1 2010/11/25 15:17:51 hauke Exp $
One of the three patches replacing the distribution patch
under work/nbitools-R6.3/config/md.patch
--- config/makedepend/def.h.orig 1997-08-22 08:21:35.000000000 +0000
+++ config/makedepend/def.h
@@ -1,5 +1,6 @@
/* $XConsortium: def.h /main/30 1996/12/04 10:11:12 swick $ */
/* $XFree86: xc/config/makedepend/def.h,v 3.3 1997/01/12 10:38:17 dawes Exp $ */
+
/*
Copyright (c) 1993, 1994 X Consortium
@@ -137,7 +138,7 @@ char *realloc();
char *copy();
char *base_name();
-char *getline();
+char *mdgetline();
struct symtab **slookup();
struct symtab **isdefined();
struct symtab **fdefined();
$NetBSD: patch-an,v 1.1 2010/11/25 15:17:51 hauke Exp $
One of the three patches replacing the distribution patch
under work/nbitools-R6.3/config/md.patch
--- config/makedepend/main.c.orig 1997-08-22 08:21:36.000000000 +0000
+++ config/makedepend/main.c
@@ -1,5 +1,6 @@
/* $XConsortium: main.c /main/84 1996/12/04 10:11:23 swick $ */
/* $XFree86: xc/config/makedepend/main.c,v 3.11.2.1 1997/05/11 05:04:07 dawes Exp $ */
+
/*
Copyright (c) 1993, 1994 X Consortium
@@ -548,7 +549,7 @@ match(str, list)
* Get the next line. We only return lines beginning with '#' since that
* is all this program is ever interested in.
*/
-char *getline(filep)
+char *mdgetline(filep)
register struct filepointer *filep;
{
register char *p, /* walking pointer */
$NetBSD: patch-ao,v 1.1 2010/11/25 15:17:51 hauke Exp $
One of the three patches replacing the distribution patch
under work/nbitools-R6.3/config/md.patch
--- config/makedepend/parse.c.orig 1997-08-22 08:21:37.000000000 +0000
+++ config/makedepend/parse.c
@@ -1,4 +1,5 @@
/* $XConsortium: parse.c /main/33 1996/12/04 10:11:28 swick $ */
+
/*
Copyright (c) 1993, 1994 X Consortium
@@ -40,7 +41,7 @@ gobble(filep, file, file_red)
register char *line;
register int type;
- while (line = getline(filep)) {
+ while (line = mdgetline(filep)) {
switch(type = deftype(line, filep, file_red, file, FALSE)) {
case IF:
case IFFALSE:
@@ -529,7 +530,7 @@ find_includes(filep, file, file_red, rec
register int type;
boolean recfailOK;
- while (line = getline(filep)) {
+ while (line = mdgetline(filep)) {
switch(type = deftype(line, filep, file_red, file, TRUE)) {
case IF:
doif: