[Unbound-users] issue with pythonmodule

W.C.A. Wijngaards wouter at NLnetLabs.nl
Tue Aug 9 07:45:53 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On 08/09/2011 12:02 AM, Paul Wouters wrote:
> On Mon, 8 Aug 2011, Tom Hendrikx wrote:
> 
>> I did some more research on this and I think I found the culprit.
>> Attached is a patch against unbound 1.4.12 that adds the site-packages
>> dir to the search path when initialising the python module.
>>
>> With this patch, things Work For Me (tm) :)
> 
> I can confirm this fixes the pythonmod loading! Thanks! I've built it
> for fedora rawhide, and over the next few days should trickly up in all
> branches.
> 
> Wouter: Please apply patch to git^Wsvn

okay.  (yes git is fashionable, but svn works, and featureset of git is
not necessary, this is not the linux kernel, this is the only patch in
months :-) ).  The patch has been committed, thanks Tom!

> We're still seeing installs in the wrong dir though:
> 
> [paul at bofh unbound]$ rpm -ql unbound-python
> /usr/lib/python2.7/site-packages/_unbound.so
> /usr/lib/python2.7/site-packages/_unbound.so.2
> /usr/lib/python2.7/site-packages/_unbound.so.2.12.0
> /usr/lib/python2.7/site-packages/unbound.py
> /usr/lib/python2.7/site-packages/unbound.pyc
> /usr/lib/python2.7/site-packages/unbound.pyo
> /usr/lib/python2.7/site-packages/unboundmodule.py
> /usr/lib/python2.7/site-packages/unboundmodule.pyc
> /usr/lib/python2.7/site-packages/unboundmodule.pyo
> 
> That should be /usr/lib64/ not /usr/lib/
> 
> Paul

in acx_python.m4 it does this:
        #
        # Check for site packages
        #
        AC_MSG_CHECKING([for Python site-packages path])
        if test -z "$PYTHON_SITE_PKG"; then
                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
                        print distutils.sysconfig.get_python_lib(0,0);"`
        fi
        AC_MSG_RESULT([$PYTHON_SITE_PKG])
        AC_SUBST([PYTHON_SITE_PKG])

it is very simple.  How could that give the correct path?

Best regards,
   Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOQOWwAAoJEJ9vHC1+BF+NzvgP/jL/X/W52xt1balN+AHFEp6Z
Fl+0RsVDwI180LGU1qQFnTbxxq1CjimNYqAt3dhWw6g3TfiKdVmOR2anHLKdK3ds
OY2J6ZEWCGHEHul0I+o9qIN2jUJptUytUVznit8gDW5YIlWTG4O1hMD9nR0DU7T5
1BTo2SLMN/I2pqL0SNl9BQCQis/AyPTuY5+dXPpiNY6hwZZgr2VpTtdGjVJ5kbIa
qcrYRI2YxfagZ8PVRZaHX0cTCzKYxF/b1VmqhltLBVj8HOGsIj8QDdHTYXV3oW+C
vX1Y1lnVyFOJAfT01ZK10sCLyB2xxHwy0WLV9tMs9/GU6y6lWhnfo2QWxSeaUvAA
219JBnXt5o6n8BqMrw8ZgSo47U2UJX1ZUziek3Be6AbttgnwY+QCsH7dU5OCxm8C
ZHifJNnWHqVWcpkZiOHJDFRyhSAZ5RAjNYLuLoHd59n4OMK7qLwKcn9RGgx9K4r+
l1v863KAZ6zEXqmo7qZQ9JcRWzCYVTa+EoWCjWPpG8PcwkkYGVktoLm2/HPtY7Yk
L0ij17wrmqtp58EBrVbJbHGzOOY4k/IEwYUf7EHZHzDXu3J43gu7akVnYd/lB8Go
eSRKG4yqNcWP7b6A4lNup5TVIapeugMLQTUNDZjP5+epv55cW4JvwjakWtI3Htbm
DAaXPpTFjvdOrweRmHAp
=1IkJ
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list