Skip to content

Commit

Permalink
fix(unsquashfs): fix Fatal Error when using unsquashfs
Browse files Browse the repository at this point in the history
When trying to push a big snap, snapcraft fails with the error

    FATAL ERROR: Data queue size is too large

This is a bug in unsquashfs tool 4.5. But it has been fixed in
4.6.1, the current stable.

This patch builds squashfs-tools version 4.6.1 from the GIT
repository, thus fixing this problem.

Fix #5132
  • Loading branch information
sergio-costas committed Nov 18, 2024
1 parent fa1043d commit 4eeecf1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ parts:
- python3-distutils
- python3-pkg-resources
- python3.10-minimal
- squashfs-tools
- xdelta3
build-attributes:
- enable-patchelf
Expand Down Expand Up @@ -139,6 +138,26 @@ parts:
sed -i "${SNAPCRAFT_PART_INSTALL}/usr/lib/python3.10/site.py" \
-e 's/^ENABLE_USER_SITE = None$/ENABLE_USER_SITE = False/'
squashfs-tools:
source: https://github.com/plougher/squashfs-tools
source-type: git
source-tag: "4.6.1"
after: ["snapcraft-libs"]
plugin: make
build-packages:
- help2man
- liblz4-dev
- liblzo2-dev
build-environment:
- CONFIG: "1"
- INSTALL_PREFIX: "${CRAFT_PART_INSTALL}/usr"
- LZMA_XZ_SUPPORT: "1"
- LZ4_SUPPORT: "1"
- LZO_SUPPORT: "1"
- XZ_SUPPORT: "1"
make-parameters:
- -C squashfs-tools

libgit2:
source: https://github.com/libgit2/libgit2/archive/refs/tags/v1.7.1.tar.gz
source-checksum: sha256/17d2b292f21be3892b704dddff29327b3564f96099a1c53b00edc23160c71327
Expand Down

0 comments on commit 4eeecf1

Please sign in to comment.