From 00804d16630f2bf26a051ff5bb2fc3b5edfacf71 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Fri, 10 Jan 2025 15:38:37 +0000 Subject: [PATCH] fix(snap): use `enable-patchelf` build attribute Addresses linter warnings from snapcraft and uses the `enable-patchelf` build attribute to ensure the RPATH is set correctly on binaries in the snap. --- snap/snapcraft.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6be19d0e..50d7d63c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -34,6 +34,8 @@ parts: override-build: | craftctl default craftctl set version=$(git describe --tags --abbrev=0) + build-attributes: + - enable-patchelf organize: # Ubuntu's `fd` package installs a binary named `fdfind`. Rename it in the snap. usr/bin/fdfind: usr/bin/fd