Build dependencies on system should be installed via a meta-package
Bug #1640143 reported by
Marco Trevisan (Treviño)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Low
|
Marco Trevisan (Treviño) |
Bug Description
Snapcraft should generate build dependencies by creating a meta package (as mk-build-deps does for debian files), such as $SNAPCRAFT_
In this way by removing this meta-package, the system goes back to its clean state.
Optionally, as a first step, you could apt-mark auto all the packages that have been installed as "auto", so that they can be easily removed later on with "apt-get autoremove", keeping the system clean.
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In general I'd just prefer the packages to be only downloaded locally though, extracted in parts/build-deps and then updating all the environment variables to build using that path.
Redefining PATH, CPATH, LIBRARY_PATH, LD_LIBRARY_PATH, LD_RUN_PATH, XDG_DATA_DIRS, XDG_CONFIG_DIRS, QML2_IMPORT_PATH, PKG_CONFIG_PATH, PYTHONPATH, GI_TYPELIB_PATH with that prefix for compiling should be in general enough (probably there would be some failing cases with packages using tools such as sdl-config).