summaryrefslogtreecommitdiff
path: root/lang/python21/patches/patch-bj
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-04 21:07:52 +0000
committerrillig <rillig@pkgsrc.org>2006-10-04 21:07:52 +0000
commit2276cdf10a7300a15ad6c7ecbdbdc93cfba2a6c4 (patch)
treee4084f27fa13f0afd8320d0778068f9ef9eaa955 /lang/python21/patches/patch-bj
parent089e4defb85e7ab9687fdd2fba1c6490b179e540 (diff)
downloadpkgsrc-2276cdf10a7300a15ad6c7ecbdbdc93cfba2a6c4.tar.gz
Added a patch that fixes the interpreter path of the installed Python
scripts. Bumped PKGREVISION.
Diffstat (limited to 'lang/python21/patches/patch-bj')
-rw-r--r--lang/python21/patches/patch-bj16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/python21/patches/patch-bj b/lang/python21/patches/patch-bj
new file mode 100644
index 00000000000..b2ddbd4b859
--- /dev/null
+++ b/lang/python21/patches/patch-bj
@@ -0,0 +1,16 @@
+$NetBSD: patch-bj,v 1.1 2006/10/04 21:07:52 rillig Exp $
+
+Without this patch, some Python scripts had their interpreter changed to
+python2.1None instead of python2.1.
+
+--- Lib/distutils/command/build_scripts.py.orig 2001-07-30 11:56:31.000000000 +0200
++++ Lib/distutils/command/build_scripts.py 2006-10-04 22:59:10.000000000 +0200
+@@ -83,6 +83,8 @@ class build_scripts (Command):
+ if match:
+ adjust = 1
+ post_interp = match.group(1)
++ if post_interp == None:
++ post_interp = ""
+
+ if adjust:
+ self.announce("copying and adjusting %s -> %s" %