Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832773 - dev-libs/imath does not define LD_PATH
Summary: dev-libs/imath does not define LD_PATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal blocker
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-02-05 22:21 UTC by Max
Modified: 2022-02-11 16:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2022-02-05 22:21:17 UTC
All

the package dev-libs/imath installs the libraries under /usr/lib64/Imath-3, but it does not add the directory LD_PATH in /etc/env.d.

As result, all packages using this library could be affected either in running (like openvdb) or linking phase (see bug 829874)

Solution: add a file 99imath with following content

LDPATH=/usr/lib64/Imath-3
Comment 1 Joost Ruis 2022-02-11 16:26:18 UTC
I can confirm this:

b7a35d9f4eb0 /luetbuild # ldd /usr/lib/python3.9/site-packages/Imath-3/imath.so
        linux-vdso.so.1 (0x00007ffe6e9fb000)
        libPyImath_Python3_9-3_1.so.29 => not found
        libImath-3_1.so.29 => not found
        libboost_python39.so.1.77.0 => /usr/lib64/libboost_python39.so.1.77.0 (0x00007f766224f000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libstdc++.so.6 (0x00007f7662041000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7661f01000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libgcc_s.so.1 (0x00007f7661ee7000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7661d20000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f7661d16000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7661d10000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7661cf0000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f7661ceb000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f766298e000)

I create the env file:
b7a35d9f4eb0 /etc/env.d # cat 99imath
LDPATH=/usr/lib64/Imath-3

[ebuild   R   ] dev-libs/imath-3.1.3  USE="python -doc -large-stack -static-libs -test" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"

b7a35d9f4eb0 /etc/env.d # ldd /usr/lib/python3.9/site-packages/Imath-3/imath.so
        linux-vdso.so.1 (0x00007ffcc87c6000)
        libPyImath_Python3_9-3_1.so.29 => /usr/lib64/Imath-3/libPyImath_Python3_9-3_1.so.29 (0x00007f74772a5000)
        libImath-3_1.so.29 => /usr/lib64/Imath-3/libImath-3_1.so.29 (0x00007f7477254000)
        libboost_python39.so.1.77.0 => /usr/lib64/libboost_python39.so.1.77.0 (0x00007f7477218000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libstdc++.so.6 (0x00007f747700a000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7476eca000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libgcc_s.so.1 (0x00007f7476eb0000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7476ce9000)
        libpython3.9.so.1.0 => /usr/lib64/libpython3.9.so.1.0 (0x00007f7476973000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f7476969000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7476963000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7476943000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f747693e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f74795b0000)
Comment 2 Larry the Git Cow gentoo-dev 2022-02-11 16:30:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55a3901b5cb825e1e972648f9edef0356d498bf8

commit 55a3901b5cb825e1e972648f9edef0356d498bf8
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-02-07 17:26:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-11 16:29:56 +0000

    dev-libs/imath: add env file to define LD_PATH
    
    Closes: https://bugs.gentoo.org/832773
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/imath/imath-3.1.3-r1.ebuild               | 84 ++++++++++++++++++++++
 .../{imath-3.1.4.ebuild => imath-3.1.4-r1.ebuild}  |  8 +++
 2 files changed, 92 insertions(+)