← Back to issue list

Default pkg-config paths not found

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1661070
Type
issue
State
open
Author
~mrjogo
Labels
robotics
Created
2017-02-01 18:55:53.263984+00:00
Updated
2017-03-21 19:21:05.556907+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

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).

Evaluation history

No evaluation history available.