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

pkg-conf file has arch-dependent contents but is installed to arch-independent datadir #1077

Open
drew-parsons opened this issue Dec 31, 2024 · 0 comments

Comments

@drew-parsons
Copy link

The destination for the pkg-conf file xsimd.pc at

DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig/")

was changed in PR #1026 to an arch-independent datadir (/usr/share/pkgconfig).

Using the datadir is correct for the cmake config files (in /usr/share/cmake), since xsimdConfig.cmake and xsimdTargets.cmake now have no arch-dependent references.

But xsimd.pc (xsimd.pc.in) contains libdir, which in general is arch-dependent, at least on systems which use GnuInstallDirs where, for instance, libdir= /usr/lib/x86_64-linux-gnu on an amd64 system (and xsimd does invoke GNUInstallDirs in CMakeLists.txt). I think in that case the general rule is that xsimd.pc ought to continue to be installed under libdir, not datadir.

For that reason I think PR #1026 should be half reverted to put xsimd.pc back under libdir.

Alternatively, since xsimd is header only as PR #1026 points out, would it be better to remove the libdir entry from xsimd.pc.in (or left empty), since xsimd is not actually providing any libraries in libdir? I'm not sure about the strict rules for the pkg-config file format. Does libdir need to be set, or need to point at the arch-dependent libdir?

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

No branches or pull requests

1 participant