Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2002 16:08:06 -0500
From:      Jeff Ito <jeffi@rcn.com>
To:        ports@freebsd.org
Subject:   Re: missing perl dependencies
Message-ID:  <20021103210806.GF26082@rcn.com>
In-Reply-To: <20021103040421.GA15315@xor.obsecurity.org>
References:  <20021103040421.GA15315@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> At least 700 additional ports are breaking for this reason.  Many of
> them are using ${PERL} to do patching-in-place, and these should be
> converted to use REINPLACE_CMD/USE_REINPLACE.  Others use perl
> during the build and should set USE_PERL.

Here are some patches that fix these issues, more to come

Index: ports/net/flow-tools/Makefile
===================================================================
RCS file: /opt/cvs/fbsd/ports/net/flow-tools/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- ports/net/flow-tools/Makefile       28 Apr 2002 23:38:14 -0000      1.5
+++ ports/net/flow-tools/Makefile       3 Nov 2002 20:46:05 -0000
@@ -18,6 +18,8 @@

 GNU_CONFIGURE= yes

+USE_REINPLACE= yes
+
 MAN1=  flow-capture.1 flow-gen.1 flow-split.1 flow-cat.1       \
        flow-header.1 flow-stat.1 flow-dscan.1 flow-import.1    \
        flow-tools-examples.1 flow-expire.1 flow-merge.1        \
@@ -28,7 +30,7 @@
 post-patch:
        ${TOUCH} -r ${WRKSRC}/configure.in.orig ${WRKSRC}/configure.in
        ${TOUCH} -r ${WRKSRC}/configure.orig ${WRKSRC}/configure
-       ${PERL} -pi -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/docs/flow-print.1 \
+       ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/docs/flow-print.1 \
                ${WRKSRC}/docs/flow-tag.1

 pre-build:


Index: ports/mail/procmail/Makefile
===================================================================
RCS file: /opt/cvs/fbsd/ports/mail/procmail/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- ports/mail/procmail/Makefile        29 Sep 2001 09:00:28 -0000      1.40
+++ ports/mail/procmail/Makefile        3 Nov 2002 20:58:37 -0000
@@ -40,6 +40,8 @@
 IS_INTERACTIVE=        yes
 .endif

+USE_REINPLACE= yes
+
 INSTALL_TARGET=        install-suid install.man

 MAN1=          procmail.1 formail.1 lockfile.1
@@ -60,7 +62,7 @@
 post-configure: patch-config

 patch-config:
-       @${PERL} -pi.fbsd -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h
+       @${REINPLACE_CMD} -i.fbsd -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h

 # Post-install
 #

Index: ports/archivers/ha/Makefile
===================================================================
RCS file: /opt/cvs/fbsd/ports/archivers/ha/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- ports/archivers/ha/Makefile 31 Mar 2002 02:39:41 -0000      1.13
+++ ports/archivers/ha/Makefile 3 Nov 2002 21:01:18 -0000
@@ -18,9 +18,10 @@
 MAKEFILE=      makefile.nix
 ALL_TARGET=    ha
 USE_GMAKE=     yes
+USE_REINPLACE= yes

 pre-patch:
-       @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+       @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
                ${WRKSRC}/c/hsc.c ${WRKSRC}/c/cpy.c \
                ${WRKSRC}/c/asc.c


...

Jeff

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021103210806.GF26082>