Public bug reported:

pkg-config has built-in paths that it searches:

  $ pkg-config --variable pc_path pkg-config
/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig

However, these are absolute, so they are different in a snap. This
results in scripts that use pkg-config failing (such as
https://github.com/ros-simulation/gazebo_ros_pkgs/blob/kinetic-
devel/gazebo_ros/scripts/gzserver#L26).

One solution might be setting the correct default paths in the
PKG_CONFIG_PATH environment variable in the wrappers (similar to how
PATH is treated).

** Affects: snapcraft (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1661070

Title:
  Default pkg-config paths not found

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1661070/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to