pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Accept any python executable with _PYTHON_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/acd943fe4b54
branches:  trunk
changeset: 466249:acd943fe4b54
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Jan 14 02:10:47 2004 +0000

description:
Accept any python executable with _PYTHON_PATCH_SCRIPT_SED; previous
scheme only accepts `python', so if we have a script which uses:

#!/path/to/python23

PYTHON_PATCH_SCRIPTS will fail.

Fix provided by Min Sik Kim in PR pkg/24069.

diffstat:

 lang/python/application.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fa7c790eb898 -r acd943fe4b54 lang/python/application.mk
--- a/lang/python/application.mk        Wed Jan 14 02:00:42 2004 +0000
+++ b/lang/python/application.mk        Wed Jan 14 02:10:47 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: application.mk,v 1.3 2002/10/18 16:34:54 jlam Exp $
+# $NetBSD: application.mk,v 1.4 2004/01/14 02:10:47 xtraeme Exp $
 
 .include "../../lang/python/pyversion.mk"
 
@@ -6,7 +6,7 @@
 # PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed,
 #  relative to ${WRKSRC}
 
-_PYTHON_PATCH_SCRIPT_SED=      -e "1s;^\#!.*python;\#!${PYTHONBIN};"
+_PYTHON_PATCH_SCRIPT_SED=      -e "1s;^\#!.*python[^ ];\#!${PYTHONBIN};"
 _PYTHON_PATCH_SCRIPT_SED+=     ${PYTHON_PATCH_SCRIPT_SED}
 
 .if defined(PYTHON_PATCH_SCRIPTS)



Home | Main Index | Thread Index | Old Index