Support referencing the stage dir from snapcraft.yaml

Bug #1538688 reported by Sergio Schvezov on 2016-01-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
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
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  Edit
Everyone can see this information.

Other bug subscribers