Skip to content

Commit

Permalink
fix execstack for jazzy
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Aug 27, 2024
1 parent b1ade93 commit 376df31
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion snapcraft_template.yaml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,26 @@ parts:
craftctl default
cp $CRAFT_PART_BUILD/yq $CRAFT_PRIME/usr/bin/yq
chmod +x $CRAFT_PRIME/usr/bin/yq
rm -rf $CRAFT_PRIME/local-ros
rm -rf $CRAFT_PRIME/local-ros

fix-execstack:
plugin: nil
after:
- husarion-depthai
- local-files
- husarion-snap-common
build-packages:
- execstack
override-prime: |
set -eu
craftctl default

choosen_files=(
usr/lib/x86_64-linux-gnu/libamdhip64.so*
)

for f in "${choosen_files[@]}"; do
if [ -f "$f" ]; then
execstack -c "$f"
fi
done

0 comments on commit 376df31

Please sign in to comment.