Date: Mon, 21 Apr 2003 04:23:34 +1000 (EST) From: Andrew <andrew@ugh.net.au> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mharo@FreeBSD.org Subject: ports/51192: portlint has wrong #! line Message-ID: <200304201823.h3KINYNa012748@amy.ugh.net.au> Resent-Message-ID: <200304201850.h3KIoETT082423@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304201823.h3KINYNa012748>