Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Fix installing pkg-config file into libdir #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgorny
Copy link

@mgorny mgorny commented Feb 24, 2019

Fix the CMake rules to install pkg-config file into lib/pkgconfig
rather than share/pkgconfig. The former location is correct
for ABI-dependent files such as libraries, while the latter should be
used only for ABI-agnostic resources (data files, executables).

This fixes using yajl on multilib systems where 32-bit and 64-bit
versions of the library are installed separately. This requires two
separate pkg-config files to be installed along with the libraries
into appropriate libdirs. When the file was installed into /usr/share,
only one variant was permitted and effectively using the other multilib
variant was broken, breaking other packages.

Original bug report: https://bugs.gentoo.org/677870

Fix the CMake rules to install pkg-config file into lib/pkgconfig
rather than share/pkgconfig.  The former location is correct
for ABI-dependent files such as libraries, while the latter should be
used only for ABI-agnostic resources (data files, executables).

This fixes using yajl on multilib systems where 32-bit and 64-bit
versions of the library are installed separately.  This requires two
separate pkg-config files to be installed along with the libraries
into appropriate libdirs.  When the file was installed into /usr/share,
only one variant was permitted and effectively using the other multilib
variant was broken, breaking other packages.

Original bug report: https://bugs.gentoo.org/677870
@mgorny
Copy link
Author

mgorny commented Feb 24, 2019

This has been submitted as #158 previously but my PR is more complete as it changes internal layout as well.

@mgorny
Copy link
Author

mgorny commented Nov 11, 2019

Ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant