diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-05 03:21:47 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-05 03:21:47 +0000 |
commit | 52b7dff335a6158b9bc0faa27f6733629bef033a (patch) | |
tree | f15e6388691b9cb0d4252b1e444ab363a9781e33 /www/mod_python | |
parent | bd08591cdf7db040f42db17b1c846561b93ac046 (diff) |
Notes
Diffstat (limited to 'www/mod_python')
-rw-r--r-- | www/mod_python/pkg-req.threads | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/www/mod_python/pkg-req.threads b/www/mod_python/pkg-req.threads index 5328a30cedb5..918d09944ed4 100644 --- a/www/mod_python/pkg-req.threads +++ b/www/mod_python/pkg-req.threads @@ -2,21 +2,12 @@ # anders@fix.no, 2001-08-07 pydir=`dirname $1 | sed "s/\/bin//"` -mylibc=`ldd $1 | tail +2 | awk '{print $1}' | cut -d'.' -f1 | grep ^libc` - -case $mylibc in -libc_r) +if [ "`ldd $1|grep libc_r`" ]; then echo "Error: Python installation in $pydir uses threads. mod_python requires" echo "it to be built without threads. Please deinstall & rebuild/reinstall Python with" echo "WITHOUT_THREADS set." exit 1 - ;; -libc) +else echo "Using a no-threads Python installation (in $pydir). Good." exit 0 - ;; -*) - echo "Unknown libc library. Cannot use a Python installation that uses this." - exit 1 - ;; -esac +fi |