aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_python
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-05 11:21:47 +0800
committerperky <perky@FreeBSD.org>2003-08-05 11:21:47 +0800
commit4798a50eaec32f38a5102a177dbfe5a838796819 (patch)
tree5e7938ef7dda220c7fd600dbe6cd7615c82a3ee1 /www/mod_python
parent4c3e80fd2d54b3e90981a882b2b891973bbfb500 (diff)
downloadfreebsd-ports-gnome-4798a50eaec32f38a5102a177dbfe5a838796819.tar.gz
freebsd-ports-gnome-4798a50eaec32f38a5102a177dbfe5a838796819.tar.zst
freebsd-ports-gnome-4798a50eaec32f38a5102a177dbfe5a838796819.zip
Fix libc_r detection routine that didn't work on -current.
Spotted by: "Richard Johannesson" <rtjohan@syspres.com>
Diffstat (limited to 'www/mod_python')
-rw-r--r--www/mod_python/pkg-req.threads15
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