Bug 193080 - Python bindings in unbound are broken
Summary: Python bindings in unbound are broken
Status: Closed DUPLICATE of bug 193057
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-27 20:47 UTC by Jeroen
Modified: 2014-08-28 10:07 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen 2014-08-27 20:47:42 UTC
After enabling the Python bindings in the configuration of unbound 1.4.22_4, the installation procedure fails with the following error:

===>  Installing for unbound-1.4.22_4
===>   unbound-1.4.22_4 depends on file: /usr/local/lib/libcrypto.so.8 - found
===>   unbound-1.4.22_4 depends on file: /usr/local/bin/python2.7 - found
===>   unbound-1.4.22_4 depends on shared library: libexpat.so - found (/usr/local/lib/libexpat.so.6.0.0)
===>   unbound-1.4.22_4 depends on shared library: libldns.so - found (/usr/local/lib/libldns.so.1.6.17)
===>   Registering installation for unbound-1.4.22_4
pkg-static: lstat(/usr/ports/dns/unbound/work/stage/usr/local/lib/python2.7/site-packages/_unbound.so.4): No such file or directory
*** Error code 74

The pkg-plist contains the line:
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_unbound.so.4

This file does not seem to exist after building:

$ pwd
/usr/ports/dns/unbound/work/stage/usr/local/lib/python2.7/site-packages
$ ls -al
total 308
drwxr-xr-x  2 root  wheel     512 Aug 27 22:46 .
drwxr-xr-x  3 root  wheel     512 Aug 27 22:46 ..
-rw-r--r--  1 root  wheel  108664 Aug 27 22:46 _unbound.a
lrwxr-xr-x  1 root  wheel      17 Aug 27 22:46 _unbound.so -> _unbound.so.2.2.1
lrwxr-xr-x  1 root  wheel      17 Aug 27 22:46 _unbound.so.2 -> _unbound.so.2.2.1
-rwxr-xr-x  1 root  wheel   87349 Aug 27 22:46 _unbound.so.2.2.1
-rw-r--r--  1 root  wheel   34891 Aug 27 22:46 unbound.py
-rw-r--r--  1 root  wheel   66776 Aug 27 22:46 unboundmodule.py
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2014-08-28 02:43:21 UTC
This was fixed in r366293 [1] that fixed bug 193057

Can you update your tree and confirm please.

[1] https://svnweb.freebsd.org/changeset/ports/366293
Comment 2 Jeroen 2014-08-28 10:07:05 UTC
Confirmed as duplicate of bug 193057 and fixed now.

*** This bug has been marked as a duplicate of bug 193057 ***