question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] prefix in pkg-config (.pc) file is emtpy when in editable mode

See original GitHub issue

I 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:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joastoecommented, Nov 9, 2022

Hi @franramirez688 No problem, I’m happy to help. Let me know if I can test anything related.

0reactions
franramirez688commented, Nov 17, 2022

Closed by https://github.com/conan-io/conan/pull/12529 This fix will be available in the next Conan 1.55 release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found