Created attachment 844539 [details] Output from emerge --info =sci-libs/gdal-3.5.3 For gdal package, libdir is hardcoded in gdal.pc.in and not processed while generated gdal.pc This leads to an invalid path in the installed gdal.pc into pkgconfig directory for 64 bits systems and would make dependency not properly detect gdal 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 gdal install (for safety) or emerge gdal on a 64 bits system » check the content of /usr/lib64/pkgconfig/gdal.pc Actual result: libdir=${exec_prefix}/lib Expected result: libdir=${exec_prefix}/lib64 Notes: this issue can also be reproduced with the instable 3.6.1 release
Created attachment 844541 [details, diff] Ebuild patch proposal to fix gdal.pc.in files and thus generate a correct gdal.pc file
Similar bug as #887731 for miniupnpc package Maybe related with obsoleted #805266 issue.
(In reply to Jocelyn Mayer from comment #2) > Similar bug as #887731 for miniupnpc package > Maybe related with obsoleted #805266 issue. Yeah, very surprised to see this issue back.