Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 2021 20:32:20 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Thierry Thomas <thierry@freebsd.org>
Cc:        python@freebsd.org
Subject:   Re: [Bug 257864] lang/pythonXX: Fix library installation
Message-ID:  <YWcYJB5px/MxYS8D@kib.kiev.ua>
In-Reply-To: <bug-257864-21822-BZURVNMASG@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257864-21822@https.bugs.freebsd.org/bugzilla/> <bug-257864-21822-BZURVNMASG@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 13, 2021 at 05:06:45PM +0000, bugzilla-noreply@freebsd.org wrote:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257864
> 
> --- Comment #7 from commit-hook@FreeBSD.org ---
> A commit in branch main references this bug:
> 
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=693abe1cb40ba9f505b2c72497443ca3ce85887d
> 
> commit 693abe1cb40ba9f505b2c72497443ca3ce85887d
> Author:     Thierry Thomas <thierry@FreeBSD.org>
> AuthorDate: 2021-10-13 16:48:56 +0000
> Commit:     Thierry Thomas <thierry@FreeBSD.org>
> CommitDate: 2021-10-13 17:05:40 +0000
> 
>     lang/python3X: Fix library installation
> 
>     The Python ports install the library libpython3.x.so under $PREFIX/lib,
>     and they set USE_LDCONFIG, but these libraries are not registered, due
>     to a missing symlink, and they are not found by `ldconfig -r'.
There is no such think as registration of shared libraries for ELF.
Also, no output from ldconfig -r again means nothing.  I tried to remove
all that cruft that does not matter for at least 25 years, in the latest
update to ldconfig(1) man page.

The only thing that matter is that binary is linked with the right rpath
if library is located under non-standard path , and the library name in
DT_NEEDED entry of the binary matches the name of file found under the
rpath.

> 
>     This commit make them to be registered, and for some reason it helps the
>     dynamic linker to find them, and this allows to fix an error in
>     french/aster. It also helps to fix errors in newer releases of math/sage
>     (not yet ready to be committed due to other problems).
> 
>     No exp-run, but it has been tested with many ports on several platforms.
> 
>     PR:             257864
>     Approved by:    koobs (Python team)
>     MFH:            2021Q4
> 
>  lang/python310/Makefile  | 2 ++
>  lang/python310/pkg-plist | 1 +
>  lang/python36/Makefile   | 2 ++
>  lang/python36/pkg-plist  | 1 +
>  lang/python37/Makefile   | 2 ++
>  lang/python37/pkg-plist  | 1 +
>  lang/python38/Makefile   | 2 ++
>  lang/python38/pkg-plist  | 1 +
>  lang/python39/Makefile   | 2 ++
>  lang/python39/pkg-plist  | 1 +
>  10 files changed, 15 insertions(+)
> 
> -- 
> You are receiving this mail because:
> You are on the CC list for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YWcYJB5px/MxYS8D>