Skip to content

Commit 96611b6

Browse files
committed
[snap] only run execstack on amd64
1 parent 3c96f91 commit 96611b6

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

snapcraft.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ parts:
6262
${CRAFT_PROJECT_DIR}/snap/local/scriptlets/selective-checkout --force-snapshot
6363
override-build: |
6464
craftctl default
65-
execstack --clear-execstack $SNAPCRAFT_PART_INSTALL/usr/bin/lnav
65+
# Get the machine architecture
66+
ARCH=$(uname -m)
67+
# Check if the architecture is x86_64 (amd64)
68+
if [ "$ARCH" = "x86_64" ]; then
69+
echo "Architecture $ARCH confirmed. Running execstack..."
70+
execstack --clear-execstack $SNAPCRAFT_PART_INSTALL/usr/bin/lnav
71+
else
72+
echo "Skipping: execstack is not supported on $ARCH architecture."
73+
fi
6674
build-packages:
6775
- git
6876
- curl

0 commit comments

Comments
 (0)