From 481288a9bfe1fe73b45b208d8e1273b9d838dd48 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Sun, 3 Dec 2023 17:55:32 -0500 Subject: [PATCH] snapcraft: look for broken symlinks during strip Signed-off-by: Simon Deziel --- snapcraft.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index 4b37fa7c7..dbfd9a109 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1553,6 +1553,14 @@ parts: [ -e "${SNAPCRAFT_PRIME}/criu/criu" ] && strip -s ${SNAPCRAFT_PRIME}/criu/criu + # XXX: look for broken symlinks indicating missing/invalid prime + broken_symlinks="$(find "${SNAPCRAFT_PRIME}/" -xtype l)" + if [ -n "${broken_symlinks}" ]; then + echo "Found broken symlinks:" + echo "${broken_symlinks}" + exit 1 + fi + exit 0 wrappers: