diff options
author | recht <recht@pkgsrc.org> | 2005-01-23 20:41:45 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2005-01-23 20:41:45 +0000 |
commit | 367eed19feed744dba7b8ab45ae14c8d83feaf5b (patch) | |
tree | c91b08fba110acac23e0418c231e8fe8945c54ed /lang/python23-pth/patches/patch-db | |
parent | 94cb047c113c1a3825b0b6d61de053bd5b007853 (diff) | |
download | pkgsrc-367eed19feed744dba7b8ab45ae14c8d83feaf5b.tar.gz |
Build Python with thread support by default and turn the existing
python*-pth packages into meta-packages which will install the non-pth
packages. Bump PKGREVISIONs on the non-pth versions to propagate the
thread change, but leave the *-pth versions untouched to not affect
existing installations.
Sync all PYTHON_VERSIONS_AFFECTED lines in package Makefiles.
Diffstat (limited to 'lang/python23-pth/patches/patch-db')
-rw-r--r-- | lang/python23-pth/patches/patch-db | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lang/python23-pth/patches/patch-db b/lang/python23-pth/patches/patch-db deleted file mode 100644 index c5e271cafaa..00000000000 --- a/lang/python23-pth/patches/patch-db +++ /dev/null @@ -1,35 +0,0 @@ -$NetBSD: patch-db,v 1.1 2004/11/28 13:33:20 recht Exp $ - ---- Modules/getpath.c.orig Thu Nov 11 18:08:55 2004 -+++ Modules/getpath.c Thu Nov 11 18:10:13 2004 -@@ -374,6 +374,9 @@ - #ifdef WITH_NEXT_FRAMEWORK - NSModule pythonModule; - #endif -+#ifdef __APPLE__ -+ unsigned long nsexeclength = MAXPATHLEN; -+#endif - - /* If there is no slash in the argv0 path, then we have to - * assume python is on the user's $PATH, since there's no -@@ -382,6 +385,20 @@ - */ - if (strchr(prog, SEP)) - strncpy(progpath, prog, MAXPATHLEN); -+#ifdef __APPLE__ -+ /* On Mac OS X, if a script uses an interpreter of the form -+ * "#!/opt/python2.3/bin/python", the kernel only passes "python" -+ * as argv[0], which falls through to the $PATH search below. -+ * If /opt/python2.3/bin isn't in your path, or is near the end, -+ * this algorithm may incorrectly find /usr/bin/python. To work -+ * around this, we can use _NSGetExecutablePath to get a better -+ * hint of what the intended interpreter was, although this -+ * will fail if a relative path was used. but in that case, -+ * absolutize() should help us out below -+ */ -+ else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP) -+ ; -+#endif // __APPLE__ - else if (path) { - while (1) { - char *delim = strchr(path, DELIM); |