Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925748 - app-eselect/eselect-postgresql-2.4-r1 creates pkgconfig symlinks in wrong directory
Summary: app-eselect/eselect-postgresql-2.4-r1 creates pkgconfig symlinks in wrong dir...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-29 11:04 UTC by Matt Whitlock
Modified: 2024-02-29 14:25 UTC (History)
1 user (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 Matt Whitlock 2024-02-29 11:04:53 UTC
dev-db/postgresql installs its pkg-config files in
/usr/lib*/postgresql-*/lib*/pkgconfig/, and then eselect-postgresql creates symlinks to them in /usr/share/pkgconfig/. This is wrong, as /usr/share/ is intended for architecture-independent files. The correct location for architecture-dependent pkg-config files is /usr/lib*/pkgconfig/. Please fix eselect-postgresql to create its pkg-config symlinks in the correct location.


Also, while you're at it: eselect-postgresql currently fails if the destination pkgconfig directory does not already exist:

# eselect postgresql update
Setting 16 as the default...ln: failed to create symbolic link '/usr/share/pkgconfig/libecpg_compat.pc': No such file or directory
!!! Error: SYMLINK FAILED: ../../lib64/postgresql-16/lib64/pkgconfig/libecpg_compat.pc -> /usr/share/pkgconfig/libecpg_compat.pc

So be sure you're creating the (correct) destination directory before trying to create symlinks in it.