Build dependencies on system should be installed via a meta-package

Bug #1640143 reported by Marco Trevisan (Treviño)
6
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_PROJECT_NAME-version-buidld-deps.deb that depends on the required build-packages.

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.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

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

Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1640143] Re: Build dependencies on system should be installed via a meta-package

El 08/11/16 a las 09:02, Marco Trevisan (Treviño) escribió:
> 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).

Download and unpacking is a feature of stage-packages, but it will be
more problems with build-packages as this process won't trigger postinst
scripts.

What you really probably want to look into is working inside a container.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> What you really probably want to look into is working inside a
> container.

Which I do... But that's not a good reason for loosing track of what
I've installed there. So, well, first suggestion is still the one
should be applied IMHO.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: New → In Progress
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
importance: Undecided → Medium
milestone: none → 2.23
importance: Medium → Wishlist
importance: Wishlist → Low
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.