Skip to content

Commit

Permalink
snapcraft.yaml: include additional dependencies
Browse files Browse the repository at this point in the history
When building classic images, ubuntu-image will optionally run make to
build the gadget tree. Canonical's gadget snaps use a Makefile to create
certain artifacts, and some important commands used in this Makefile
(chdist, grub-mkimage) are provided by devscripts and grub-common. Add
these dependencies as stage-packages so that ubuntu-image can readily
build some gadget snaps, especially on non-Ubuntu systems.

Signed-off-by: Dilyn Corner <[email protected]>
  • Loading branch information
dilyn-corner committed Aug 31, 2023
1 parent 7ad2dd9 commit 2b663a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ environment:
GCONV_PATH: /snap/core20/current/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gconv
PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
DEBOOTSTRAP_DIR: $SNAP/usr/share/debootstrap

PERL5LIB: $SNAP/usr/share/perl5:$SNAP/usr/share/perl:$PERL5LIB

apps:
ubuntu-image:
Expand Down Expand Up @@ -45,6 +45,8 @@ parts:
- make
- kpartx
- qemu-utils
- devscripts
- grub-common
build-attributes: [ enable-patchelf ]
override-build: |
ins_bin=$SNAPCRAFT_PART_INSTALL/bin/
Expand Down

0 comments on commit 2b663a1

Please sign in to comment.