ports/51192: portlint has wrong #! line
Andrew
andrew at ugh.net.au
Sun Apr 20 18:50:16 UTC 2003
>Number: 51192
>Category: ports
>Synopsis: portlint has wrong #! line
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Apr 20 11:50:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Andrew
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
UgH!
>Environment:
System: FreeBSD amy.ugh.net.au 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sat Apr 12 19:08:08 EST 2003 andrew at amy.local:/usr/obj/usr/src/sys/AMY i386
>Description:
When portlint is installed from the ports collection the #! line is /usr/bin/perl. With the removal
of perl from the base system this won't always be the correct path.
>How-To-Repeat:
>Fix:
Below is a patch. I had to copy the src files as there is no guarentee that ${SRC} is writeable.
diff -ruN /usr/ports/devel/portlint/Makefile portlint/Makefile
--- /usr/ports/devel/portlint/Makefile Sun Mar 9 06:17:15 2003
+++ portlint/Makefile Mon Apr 21 04:20:00 2003
@@ -9,7 +9,7 @@
PORTNAME= portlint
PORTVERSION= 2.3.3
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
@@ -18,8 +18,9 @@
COMMENT= A verifier for FreeBSD port directory
NO_BUILD= yes
-NO_WRKSUBDIR= yes
+WRKSRC= ${WRKDIR}/src
USE_PERL5= yes
+USE_REINPLACE= yes
SRC= ${.CURDIR}/src
@@ -28,8 +29,14 @@
do-fetch:
@${DO_NADA}
+pre-patch:
+ @${CP} -R ${SRC} ${WRKDIR}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's#/usr/bin/perl#${PERL}#' ${WRKSRC}/portlint.pl
+
do-install:
- ${INSTALL_SCRIPT} ${SRC}/portlint.pl ${PREFIX}/bin/portlint
- ${INSTALL_MAN} ${SRC}/portlint.1 ${MAN1PREFIX}/man/man1
+ ${INSTALL_SCRIPT} ${WRKSRC}/portlint.pl ${PREFIX}/bin/portlint
+ ${INSTALL_MAN} ${WRKSRC}/portlint.1 ${MAN1PREFIX}/man/man1
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list