Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887735 - sci-libs/gdal-3.5.3: invalid libdir in pkgconfig file on 64 bits system
Summary: sci-libs/gdal-3.5.3: invalid libdir in pkgconfig file on 64 bits system
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-12-21 15:47 UTC by Jocelyn Mayer
Modified: 2022-12-21 19:19 UTC (History)
1 user (show)

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


Attachments
Output from emerge --info =sci-libs/gdal-3.5.3 (emerge-infos-gdal-3.5.3,24.44 KB, text/plain)
2022-12-21 15:47 UTC, Jocelyn Mayer
Details
Ebuild patch proposal to fix gdal.pc.in files and thus generate a correct gdal.pc file (sci-libs_gdal_gdal-3.5.3.ebuild.patch,421 bytes, patch)
2022-12-21 15:49 UTC, Jocelyn Mayer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Mayer 2022-12-21 15:47:48 UTC
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
Comment 1 Jocelyn Mayer 2022-12-21 15:49:14 UTC
Created attachment 844541 [details, diff]
Ebuild patch proposal to fix gdal.pc.in files and thus generate a correct gdal.pc file
Comment 2 Jocelyn Mayer 2022-12-21 15:51:44 UTC
Similar bug as #887731 for miniupnpc package
Maybe related with obsoleted #805266 issue.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-21 19:19:04 UTC
(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.