Catkin plugin requires a valid environment before it runs setup.sh

Bug #1674487 reported by Kyle Fazzari
6
This bug affects 1 person
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).

Kyle Fazzari (kyrofa)
description: updated
Kyle Fazzari (kyrofa)
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
Leo Arias (elopio)
Changed in snapcraft:
milestone: none → 2.29
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Kyle Fazzari (kyrofa)
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.