diff --git a/snapcraft_template.yaml.jinja2 b/snapcraft_template.yaml.jinja2 index 06f6dcd..c85cbf3 100644 --- a/snapcraft_template.yaml.jinja2 +++ b/snapcraft_template.yaml.jinja2 @@ -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 \ No newline at end of file + 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 \ No newline at end of file