From 376df31fc9406f08918c06f26ac478da9caf1862 Mon Sep 17 00:00:00 2001 From: dominikn Date: Tue, 27 Aug 2024 23:09:46 +0200 Subject: [PATCH] fix execstack for jazzy --- snapcraft_template.yaml.jinja2 | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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