Catkin plugin requires a valid environment before it runs setup.sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Kyle Fazzari |
Bug Description
Catkin has a number of environment hooks that are run when `setup.sh` is sourced. Various packages insert their own hooks here, which means `setup.sh` runs a variable number of things depending on what's contained in stage-packages.
Of particular note are the Turtlebot packages, which install environment hooks that call various other binaries (e.g. rospack). These hooks fail as the environment setup by the Catkin plugin is more for run-time than build-time, and isn't completely valid by the time setup.sh runs. Specifically:
- The LD_LIBRARY_PATH is setup _after_ the plugin sets up its environment.
- $SNAP_USER_DATA is not defined at build time, thus making $ROS_HOME point to /ros (absolute).
description: | updated |
summary: |
- Catkin plugin requires LD_LIBRARY_PATH to be defined before it runs - setup.sh + Catkin plugin requires a valid environment before it runs setup.sh |
description: | updated |
Changed in snapcraft: | |
milestone: | none → 2.29 |
Changed in snapcraft: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Kyle Fazzari (kyrofa) |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
Fix here: https:/ /github. com/snapcore/ snapcraft/ pull/1239