From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 6 12:10:22 2004 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 B6F5716A4CE for ; Tue, 6 Jul 2004 12:10:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A94843D68 for ; Tue, 6 Jul 2004 12:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i66CAMFc097872 for ; Tue, 6 Jul 2004 12:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i66CAM7m097871; Tue, 6 Jul 2004 12:10:22 GMT (envelope-from gnats) Resent-Date: Tue, 6 Jul 2004 12:10:22 GMT Resent-Message-Id: <200407061210.i66CAM7m097871@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, Herve Quiroz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62A9D16A56F for ; Tue, 6 Jul 2004 12:01:29 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id B76ED43D48 for ; Tue, 6 Jul 2004 12:01:28 +0000 (GMT) (envelope-from rv@arabica.esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])i66C1Q2r090370; Tue, 6 Jul 2004 14:01:26 +0200 (CEST) (envelope-from rv@arabica.esil.univ-mrs.fr) Received: (from rv@localhost)i66C1QtB090369; Tue, 6 Jul 2004 14:01:26 +0200 (CEST) (envelope-from rv) Message-Id: <200407061201.i66C1QtB090369@arabica.esil.univ-mrs.fr> Date: Tue, 6 Jul 2004 14:01:26 +0200 (CEST) From: Herve Quiroz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: hsn@netmag.cz Subject: ports/68723: [PATCH] sysutils/portindex: use the full-path for python executable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 12:10:22 -0000 >Number: 68723 >Category: ports >Synopsis: [PATCH] sysutils/portindex: use the full-path for python executable >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 06 12:10:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Herve Quiroz >Release: FreeBSD 5.2.1-RELEASE-p5 i386 >Organization: >Environment: System: FreeBSD arabica.esil.univ-mrs.fr 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #3: Thu May 6 20:17:47 CEST >Description: I use to run portindex in some custom script which is run by cron(8). Unfortunately, the path of the python(1) executable is missing in portindex (and other provided shell scripts) and that prevents portindex to be run with an empty PATH variable. This patch provides a little "sed magic" to the set of executable to hardcode the path of python(1) using the provided ${PYTHON_CMD} from bsd.python.mk. NOTE: bumped PORTREVISION Port maintainer (hsn@netmag.cz) is cc'd. Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: Just try to run 'portindex' with an empty PATH variable. >Fix: --- portindex-12_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/Makefile /usr/ports/sysutils/portindex/Makefile --- /usr/ports/sysutils/portindex.original/Makefile Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/Makefile Tue Jul 6 13:46:21 2004 @@ -7,6 +7,7 @@ PORTNAME= portindex PORTVERSION= 12 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://home.tiscali.cz:8080/~cz210552/distfiles/ \ http://www.oook.cz/bsd/distfiles/ @@ -66,7 +67,7 @@ do-build: ${REINPLACE_CMD} -e "s,ports.pck,/var/db/portindex.pck," ${WRKSRC}/freebsdports.py .for i in ${EXECUTABLES} - ${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/${i}.sh > ${WRKSRC}/${i} + ${SED} -e "s,%%DATADIR%%,${DATADIR}, ; s,%%PYTHON_CMD%%,${PYTHON_CMD}," ${FILESDIR}/${i}.sh > ${WRKSRC}/${i} .endfor do-install: diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/loadindex.sh /usr/ports/sysutils/portindex/files/loadindex.sh --- /usr/ports/sysutils/portindex.original/files/loadindex.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/loadindex.sh Tue Jul 6 13:45:45 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/loadindex.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/loadindex.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/minorupdates.sh /usr/ports/sysutils/portindex/files/minorupdates.sh --- /usr/ports/sysutils/portindex.original/files/minorupdates.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/minorupdates.sh Tue Jul 6 13:45:49 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/minorupdates.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/minorupdates.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/portindex.sh /usr/ports/sysutils/portindex/files/portindex.sh --- /usr/ports/sysutils/portindex.original/files/portindex.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/portindex.sh Tue Jul 6 13:44:26 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/indexer.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/indexer.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/portreadmes.sh /usr/ports/sysutils/portindex/files/portreadmes.sh --- /usr/ports/sysutils/portindex.original/files/portreadmes.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/portreadmes.sh Tue Jul 6 13:45:52 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/updatereadmes.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/updatereadmes.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/query.sh /usr/ports/sysutils/portindex/files/query.sh --- /usr/ports/sysutils/portindex.original/files/query.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/query.sh Tue Jul 6 13:45:54 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/query.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/query.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/updateall.sh /usr/ports/sysutils/portindex/files/updateall.sh --- /usr/ports/sysutils/portindex.original/files/updateall.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/updateall.sh Tue Jul 6 13:45:56 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/updateall.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/updateall.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex.original/files/updinst.sh /usr/ports/sysutils/portindex/files/updinst.sh --- /usr/ports/sysutils/portindex.original/files/updinst.sh Tue Jul 6 13:44:02 2004 +++ /usr/ports/sysutils/portindex/files/updinst.sh Tue Jul 6 13:45:59 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/updinst.py $* +exec /usr/bin/env %%PYTHON_CMD%% %%DATADIR%%/updinst.py $* --- portindex-12_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: