summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-01-14 02:10:47 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-01-14 02:10:47 +0000
commit0a0152f5e48f9b30ae213007f6d0b75b52d865ef (patch)
tree6a867c8f99b900910677c84f935b09834b6f6daf /lang/python
parent7bd859355b367cdc7a0a8ef0a4626fb17c4c27a1 (diff)
downloadpkgsrc-0a0152f5e48f9b30ae213007f6d0b75b52d865ef.tar.gz
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 (limited to 'lang/python')
-rw-r--r--lang/python/application.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/application.mk b/lang/python/application.mk
index 9c044d83eff..323c31e7d7e 100644
--- a/lang/python/application.mk
+++ b/lang/python/application.mk
@@ -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)