From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 20 11:50:16 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC66437B401 for ; Sun, 20 Apr 2003 11:50:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D82A743FDD for ; Sun, 20 Apr 2003 11:50:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3KIoEUp082424 for ; Sun, 20 Apr 2003 11:50:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3KIoETT082423; Sun, 20 Apr 2003 11:50:14 -0700 (PDT) Resent-Date: Sun, 20 Apr 2003 11:50:14 -0700 (PDT) Resent-Message-Id: <200304201850.h3KIoETT082423@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F341C37B401; Sun, 20 Apr 2003 11:45:15 -0700 (PDT) Received: from mail.alwaysonline.net.au (sikuzote.AlwaysONLINE.net.au [202.181.16.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 574CA43FE3; Sun, 20 Apr 2003 11:45:15 -0700 (PDT) (envelope-from andrew@amy.ugh.net.au) Received: from amy.ugh.net.au (amy.ugh.net.au [202.181.20.95]) by mail.alwaysonline.net.au (Postfix) with ESMTP id 36C89F053; Mon, 21 Apr 2003 04:46:27 +1000 (EST) Received: from amy.ugh.net.au (andrew@localhost [127.0.0.1]) by amy.local (8.12.9/8.12.9) with ESMTP id h3KINYBa012749; Mon, 21 Apr 2003 04:23:34 +1000 (EST) (envelope-from andrew@amy.ugh.net.au) Received: (from andrew@localhost) by amy.ugh.net.au (8.12.9/8.12.9/Submit) id h3KINYNa012748; Mon, 21 Apr 2003 04:23:34 +1000 (EST) Message-Id: <200304201823.h3KINYNa012748@amy.ugh.net.au> Date: Mon, 21 Apr 2003 04:23:34 +1000 (EST) From: Andrew To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: mharo@FreeBSD.org Subject: ports/51192: portlint has wrong #! line X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 18:50:16 -0000 >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 >Release-Note: >Audit-Trail: >Unformatted: