Support referencing the stage dir from snapcraft.yaml

Bug #1538688 reported by Sergio Schvezov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Sergio Schvezov

Bug Description

Given the use of the after keyword for parts, it is also sometime desired to reference something inside the stage dir; given the execution location and the relocatable fact on building with snapcraft it makes sense to introduce a SNAPCRAFT_STAGE variable that can be used.

Here's an example:

snapcraft.yaml:

```yaml
parts:
  part1:
    plugin: autotools
    source: .
    configflags:
      - --with-swig: $SNAPCRAFT_STAGE/usr/swig
```

Changed in snapcraft:
milestone: none → 2.1
Revision history for this message
Sergio Schvezov (sergiusens) 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.