Fix pkgconfig file's libdir value#326
Fix pkgconfig file's libdir value#326brarcher merged 2 commits intolibcheck:masterfrom mattst88:fix-libdir
Conversation
|
Hi. If we make this change, should we also change: BTW, the check.pc file uses variables. AFAIK this is common, but is it also a problem? Should they rather be constant strings? |
|
Thanks for taking a look!
So currently, check.pc contains: $ grep 'Libs:' /usr/lib*/pkgconfig/check.pc
/usr/lib64/pkgconfig/check.pc:Libs: -L/usr/lib -lcheck
/usr/lib/pkgconfig/check.pc:Libs: -L/usr/lib -lcheckwhich means that when you have it installed pkgconfig prints $ /usr/bin/i686-pc-linux-gnu-pkg-config --libs check
-lcheck
$ /usr/bin/x86_64-pc-linux-gnu-pkgconf --libs check
-L/usr/lib -lcheckThis would cause a 64-bit compilation that links with -lcheck to search for -lcheck in /usr/lib (the directory containing 32-bit shared objects). To answer your question, it should contain the default path (or no path at all). (In Gentoo, this was further confused by
Hmm. I don't know. I've never seen includedir be anything other than include. I guess it wouldn't hurt.
I don't think so. Seems like using variables isn't a problem—I see lots of variables in my |
|
I can see a possible corner case. could result with libdir becoming |
|
Thanks. Other Gentoo developers pointed me to how json-c handles pkgconfig file generation: https://github.com/json-c/json-c/blob/041cef434afe0d0c6da8b6ac1d1fa26087246dda/CMakeLists.txt#L500 and independently indicated that I should use |
|
Great. The CMake documentation on GNUInstallDirs clarifies the variable: |
And make a similar fix for includedir while we're here. Bug: https://bugs.gentoo.org/729642
Good grief. CI downloads a 3.9GB package? |
|
Yeah.... the LaTeX package is big, and is needed to test that the docs build. We don't own the image that runs the tests, so we need to configure the image each time. Probably testing that the docs build on both Linux and OSX is unnecessary, as success on one should be sufficient. I'll look to remove the OSX version of the test a little later. I think that it downloads a larger payload than Linux. |
|
Thanks for the fix! |
Bug: https://bugs.gentoo.org/729642