diff options
author | xtraeme <xtraeme> | 2004-01-14 02:10:47 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-01-14 02:10:47 +0000 |
commit | bf0627e3de3896981244cecb7f53a7692f39cbe1 (patch) | |
tree | 6a867c8f99b900910677c84f935b09834b6f6daf | |
parent | 5c31273be77a706625904cfe7bb58b787ab0adb7 (diff) | |
download | pkgsrc-bf0627e3de3896981244cecb7f53a7692f39cbe1.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.
-rw-r--r-- | lang/python/application.mk | 4 |
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) |