Created attachment 844533 [details] Output from emerge --info =net-libs/miniupnpc-2.2.4 For miniupnpc package, libdir is hardcoded in miniupnpc.pc.in and not processed while generated miniupnpc.pc This leads to an invalid path in the installed miniupnpc.pc into pkgconfig directory for 64 bits systems and would make dependency not properly detect miniupnpc and / or have an invalid link path. This last point is particulary problematic on mulitlib distributions, as dependency links would have a /usr/lib and /usr/lib64 set on their link path. At least ld.lld (llvm toolchain linker) would then emit an error while linking. Steps to reproduce: » ebuild miniupnpc install (for safety) or emerge miniupnpc on a 64 bits system » check the content of /usr/lib64/pkgconfig/miniupnpc.pc Actual result: libdir=${exec_prefix}/lib Expected result: libdir=${exec_prefix}/lib64
Created attachment 844535 [details] Ebuild patch proposal to fix miniupnpc.pc.in file and thus generate a correct miniupnpc.pc file
I'm sorry, I have missed this bug. Thanks for the patch, however it's cleaner to fix it via passing LIBDIR= to make.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb7e3b58cb903f77ab5b97bec7e4a1e625755c76 commit bb7e3b58cb903f77ab5b97bec7e4a1e625755c76 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-02-11 17:10:14 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-02-11 17:10:14 +0000 net-libs/miniupnpc: Fix libdir path in pkg-config file Closes: https://bugs.gentoo.org/887731 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../miniupnpc/{miniupnpc-2.2.6.ebuild => miniupnpc-2.2.6-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)