Package Details: sasquatch 4.5.1_5-3

Git Clone URL: https://aur.archlinux.org/sasquatch.git (read-only, click to copy)
Package Base: sasquatch
Description: Patches to the standard unsquashfs utility that attempts to add support for many hacked-up vendor-specific SquashFS implementations.
Upstream URL: https://github.com/onekey-sec/sasquatch
Keywords: squashfs
Licenses: GPL-2.0-or-later
Submitter: Xeonacid
Maintainer: Xeonacid (lilac)
Last Packager: lilac
Votes: 4
Popularity: 0.29
First Submitted: 2025-01-18 11:06 (UTC)
Last Updated: 2025-09-29 10:00 (UTC)

Latest Comments

charlieREV commented on 2025-09-16 06:31 (UTC)

With the GPT I fixed it, just need to add prepare(). I'm not sure if its correct fix, but it works for me, its just another way from @RevoltOfTheAtoms.

add

prepare() {
  cd "$srcdir/$pkgname"
  # Fix: signal handlers must be void (*)(int)
  sed -i -E \
    's/^void[[:space:]]+sigwinch_handler\(\)/void sigwinch_handler(int __attribute__((unused)) signum)/' \
    squashfs-tools/unsquashfs.c
  sed -i -E \
    's/^void[[:space:]]+sigalrm_handler\(\)/void sigalrm_handler(int __attribute__((unused)) signum)/' \
    squashfs-tools/unsquashfs.c
}

after the sha512sums line

and before the build() line.

RevoltOfTheAtoms commented on 2025-05-09 22:22 (UTC) (edited on 2025-05-09 22:35 (UTC) by RevoltOfTheAtoms)

This package currently fails to compile due to missing parameters in signal handler function definitions. A small patch resolves the issue.

Create signal-handler-fix.patch

--- squashfs-tools.orig/unsquashfs.c 2025-05-09 01:28:20.069358384 +0000
+++ src/sasquatch/squashfs-tools/unsquashfs.c   2025-05-09 01:30:31.635620844 +0000
@@ -146,7 +146,7 @@

 #define MAX_LINE 16384

-void sigwinch_handler()
+void sigwinch_handler(int sig)
 {
    struct winsize winsize;

@@ -160,7 +160,7 @@
 }


-void sigalrm_handler()
+void sigalrm_handler(int sig)
 {
    rotate = (rotate + 1) % 4;
 }

Edit PKGBUILD

makedepends=(git)
source=(
git+$url.git#tag=$pkgname-v${pkgver//_/-}
signal-handler-fix.patch
)
sha512sums=(
'cf54ad00877e706e3646e7b502a7c0570e932dd3f82fa98257b48f98ee27df55f8e73e9582a3b3a449d954e8990acdcdbc80cfcc65cb394dba0c773c86db4996'
'SKIP'
)

build() {
  local make_options=(
    GZIP_SUPPORT=1
    LZ4_SUPPORT=1
    LZO_SUPPORT=1
    XATTR_SUPPORT=1
    XZ_SUPPORT=1
    ZSTD_SUPPORT=1
    -C $pkgname/squashfs-tools
  )
  patch -Np1 -i "signal-handler-fix.patch"
  make "${make_options[@]}"
}

surlyjake commented on 2025-04-07 17:38 (UTC)

This is the package you need to fix: ERROR binwalk::extractors::common] Failed to execute command sasquatch["/path/to/file.bin"]: No such file or directory (os error 2)

a bug has been filed requesting to add this to the binwalk optdepends here: https://gitlab.archlinux.org/archlinux/packaging/packages/binwalk/-/issues/1