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.
This commit is contained in:
Jon Seager 2025-01-10 15:38:37 +00:00
parent bc7d7bf851
commit 00804d1663
No known key found for this signature in database

View file

@ -34,6 +34,8 @@ parts:
override-build: | override-build: |
craftctl default craftctl default
craftctl set version=$(git describe --tags --abbrev=0) craftctl set version=$(git describe --tags --abbrev=0)
build-attributes:
- enable-patchelf
organize: organize:
# Ubuntu's `fd` package installs a binary named `fdfind`. Rename it in the snap. # Ubuntu's `fd` package installs a binary named `fdfind`. Rename it in the snap.
usr/bin/fdfind: usr/bin/fd usr/bin/fdfind: usr/bin/fd