Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936313 - sys-libs/zlib multilib_src_install() /usr/share/pkgconfig/zlib.pc overwrites 64-bit with 32-bit version
Summary: sys-libs/zlib multilib_src_install() /usr/share/pkgconfig/zlib.pc overwrites ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 18:40 UTC by Jon Daniel
Modified: 2024-07-20 01:46 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 Jon Daniel 2024-07-19 18:40:54 UTC
execution order dependent multilib_src_install()

insinto /usr/${get_libdir}/pkgconfig
doins zlib.pc

in zlib-1.3.1-r1.ebuild

overwrites 64-bit zlib.pc with 32-bit zlib.pc and causes dev-util/intel_clc and media-libs/mesa build failures.
Comment 1 Jon Daniel 2024-07-19 19:12:16 UTC
The solution is not to install zlib.pc in /usr/share/pkgconfig if your os environment is multilib because the precedence over /usr/lib and /usr/lib64 overwrites one of them with the wrong libdir entry during other multilib installs.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-19 21:42:11 UTC
No, that's not right.

$(get_libdir)'s value changes depending on which ABI multilib_src_install is being executed for.

I don't have any file in /usr/share/pkgconfig for zlib. The ebuild does not install there.
Comment 3 Matt Turner gentoo-dev 2024-07-20 01:46:45 UTC
Are you telling me that the command I gave you in https://bugs.gentoo.org/933124#c12 would have identified the problem 6 weeks ago?