← Back to issue list

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

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1674487
Type
issue
State
closed
Author
~kyrofa
Labels
Created
Updated
Closed

Current evaluation

Abandoned and closed without resolution. The Catkin plugin executes setup.sh before LD_LIBRARY_PATH and SNAP_USER_DATA are initialized, breaking environment hooks. No fix was implemented.

Suggested action:

No scores available.

Issue body

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

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned and closed without resolution. The Catkin plugin executes setup.sh before LD_LIBRARY_PATH and SNAP_USER_DATA are initialized, breaking environment hooks. No fix was implemented.
qwen/qwen3.6-35b-a3b Closed without resolution. The Catkin plugin runs setup.sh before LD_LIBRARY_PATH and SNAP_USER_DATA are defined, causing environment hook failures. No fix was implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1239 catkin plugin: create completely valid environment snapcraft merged Merged. Updates the Catkin plugin to create a fully valid build-time environment by setting LD_LIBRARY_PATH before sourcing setup.sh and ensuring ROS_HOME is valid. Resolves Launchpad bug #1674487 following maintainer approval.
74%