mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-07 12:13:10 +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:
co-authored by
Claude Opus 5.5
parent
24d4f4db9f
commit
eed8bd27d2
@@ -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