[bug] prefix in pkg-config (.pc) file is emtpy when in editable mode
See original GitHub issueI just updated conan to version 1.53.0 and am surprised that my .pc files generated with PkgConfigDeps into build/generators contain an empty prefix. This only when in editable mode. I use the layout() feature.
With conan 1.44
prefix=/home/dev/git/libname
libdir1=${prefix}/build/src
includedir1=${prefix}/include
includedir2=${prefix}/build/include
includedir3=${prefix}/build/include/libname
With conan 1.53
prefix=
libdir1=${prefix}/build/generators/build/src
includedir1=${prefix}/../../include
includedir2=${prefix}/../include
includedir3=${prefix}/../include/libname
Is this a bug or did I miss to migrate some variable in the layout() section. Thanks
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
gtk missing and broken pkgconfig files · Issue #12282 - GitHub
Describe the bug The directory lib/pkgconfig is supposed to contain pkgconfig files for gtk, however some of them are missing.
Read more >Bug #1876042 “Incorrect prefix in .pc files” - Launchpad Bugs
All pkg-config files contain wrong prefix. It is specified as prefix=${pcfiledir}/../.. which is resolved to /usr/lib while it should be ...
Read more >PKG_CONFIG_PATH environment variable - Ask Ubuntu
PKG_CONFIG_PATH is a environment variable that specifies additional paths in which pkg-config will search for its .pc files. This variable is used to ......
Read more >install: add EXPORT mode to generate pkg-config files (#22621)
We may be able to generate pkg-config files for CMake packages by extending install(EXPORT) with a mode to generate .pc files.
Read more >pkg-config - NEWS - Freedesktop GitLab
Handle an empty prefix setting correctly when --define-prefix is used. 7. (#97453). 8. - Lazily load pc files instead of reading all available...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @franramirez688 No problem, I’m happy to help. Let me know if I can test anything related.
Closed by https://github.com/conan-io/conan/pull/12529 This fix will be available in the next Conan 1.55 release.