Skip to content

Commit

Permalink
build: fix snap build in non-amd64 archs (#557)
Browse files Browse the repository at this point in the history
Some archs don't have wheels for some of the dependencies (like pygit2).
  • Loading branch information
tigarmo authored Apr 19, 2024
1 parent 15b653a commit f03bda5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ apps:

build-packages:
- libapt-pkg-dev
- libffi-dev # for cffi (via pygit2)
- libyaml-dev
- python3.10-dev
- pkg-config
Expand Down Expand Up @@ -50,6 +51,19 @@ parts:
organize:
"usr/bin/fuse-overlayfs": "libexec/rockcraft/fuse-overlayfs"

libgit2: # part came from snapcraft@5fbaab144842f
source: https://github.com/libgit2/libgit2/archive/refs/tags/v1.7.1.tar.gz
source-checksum: sha256/17d2b292f21be3892b704dddff29327b3564f96099a1c53b00edc23160c71327
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
build-packages:
- libssl-dev
build-attributes:
- enable-patchelf
prime:
- -usr/include

rockcraft:
source: .
plugin: python
Expand Down Expand Up @@ -77,6 +91,7 @@ parts:
sed -i -e '1 s|^#!/.*|#!/snap/rockcraft/current/bin/python -E|' $CRAFT_PART_INSTALL/bin/craftctl
after:
- rockcraft-libs
- libgit2

umoci:
plugin: make
Expand Down

0 comments on commit f03bda5

Please sign in to comment.