mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-15 06:34:51 +00:00
Packaging: run the cross-built CLI's --version check without the malloc re-exec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24d4f4db9f
commit
eed8bd27d2
1 file changed
+3
-1
@@ -208,7 +208,9 @@ fi
|
||||
if [[ -z "${CROSS_TARGET:-}" ]]; then
|
||||
"$STAGE/usr/bin/photocraft-cli" --version
|
||||
elif [[ -n "${EMULATOR:-}" ]]; then
|
||||
"$EMULATOR" "$STAGE/usr/bin/photocraft-cli" --version
|
||||
# Set, so malloc_tuning::apply doesn't re-execute the CLI (#8743): under qemu-user that exec goes
|
||||
# to the host kernel, which can't run a $CROSS_ARCH binary, and glibc then hands it to /bin/sh.
|
||||
MALLOC_TRIM_THRESHOLD_=131072 "$EMULATOR" "$STAGE/usr/bin/photocraft-cli" --version
|
||||
fi
|
||||
echo "==> done"
|
||||
ls -lh "$DIST"
|
||||
Reference in new issue
Block a user