Date: Sun, 24 Jul 2022 14:36:14 +0200 From: Andrea Pappacoda <andrea@pappacoda.it> To: freebsd-hackers@FreeBSD.org Subject: pkg-config and share/ Message-ID: <50B3D276-5E68-4F87-97FB-71D75D3D9602@pappacoda.it>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi everyone! First time on the FreeBSD mailing lists, I hope this is not in the wrong section :) I'd like to ask/discuss about FreeBSD's pkg-config behaviour. [As far as I understand][1], on FreeBSD pkgconf looks for .pc files in the /usr/lib and /usr/libdata directories, but completely ignores /usr/share. Why is that? Where should arch-independent packages install their .pc files? I came here after a short discussion on a [GitHub issue][2], and I recommend looking at that thread too because it gives a lot of information about what the issue with not looking in share/ is, but in short it creates interoperability problems with OSs wanting to use that directory for cross-build purposes. Could somebody please help me understand why things work this way here, and if this unusual pkg-config behaviour could be improved? Thanks! [1]: https://cgit.freebsd.org/ports/tree/devel/pkgconf/Makefile#n23 [2]: https://github.com/marzer/tomlplusplus/pull/165 [-- Attachment #2 --] <!DOCTYPE html><html><body>Hi everyone! First time on the FreeBSD mailing lists, I hope this is not in the wrong section :)<br><br>I'd like to ask/discuss about FreeBSD's pkg-config behaviour. [As far as I understand][1], on FreeBSD pkgconf looks for .pc files in the /usr/lib and /usr/libdata directories, but completely ignores /usr/share. Why is that? Where should arch-independent packages install their .pc files?<br><br>I came here after a short discussion on a [GitHub issue][2], and I recommend looking at that thread too because it gives a lot of information about what the issue with not looking in share/ is, but in short it creates interoperability problems with OSs wanting to use that directory for cross-build purposes.<br><br>Could somebody please help me understand why things work this way here, and if this unusual pkg-config behaviour could be improved?<br><br>Thanks!<br><br>[1]: <a href="https://cgit.freebsd.org/ports/tree/devel/pkgconf/Makefile#n23">https://cgit.freebsd.org/ports/tree/devel/pkgconf/Makefile#n23</a><br><br>[2]: <a href="https://github.com/marzer/tomlplusplus/pull/165">https://github.com/marzer/tomlplusplus/pull/165</a></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B3D276-5E68-4F87-97FB-71D75D3D9602>
