1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/www/mod_python/pkg-req.threads
Pete Fritchman 2774a916c5 - Remove old maintainer from pkg-descr
- Fix pkg-req script
 -Set NO_PACKAGE, as this port requires Python without threads support

PR:		31273
Submitted by:	Anders Nordby <anders@fix.no>
2001-11-06 14:24:29 +00:00

23 lines
568 B
Bash

#! /bin/sh
# 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)
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)
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