[Bug 227939] boost-python-libs vs ctypes.util.find_library

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 2 21:04:27 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227939

            Bug ID: 227939
           Summary: boost-python-libs vs ctypes.util.find_library
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: bsd at vink.pl

boost-python-libs installs following files:
lib/libboost_python%%PYTHON_SUFFIX%%.a
lib/libboost_python%%PYTHON_SUFFIX%%.so
lib/libboost_python%%PYTHON_SUFFIX%%.so.%%BOOST_SHARED_LIB_VER%%

What we are missing is:
lib/libboost_python%%PYTHON_SUFFIX%%.so.1

Because of this, when you do:
$ python3
Python 3.6.5 (default, Apr  5 2018, 01:15:08)
[GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] on
freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library
>>> find_library("boost_python36")
>>>

After creating this symlink manually, there is no problem. As far as I checked
all my installed libraries have symlink *.so.%%MAJOR_VERSION%%. The only
exception are boost libraries, which have only .so and .so.%%MAJOR%%.%%MINOR%%.

ctypes depends on ldconfig to find library. And indeed:
$ ldconfig -r | grep boost_
        388:-lboost_python36.1 => /usr/local/lib/libboost_python36.so.1

(for which I've made symlink, for example boost_atomic is missing).

This works on Linux, because ldconfig -p has entries regardless of missing
symlink.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list