[neon/snap-packaging/kde-qt6-core-sdk/work.core24] /: override-prime to try and lessen the amount of missing solibs
Carlos De Maine
null at kde.org
Sat Jan 10 03:50:40 GMT 2026
Git commit b741bb009ce9376dc94aa18451210b0fe496efad by Carlos De Maine.
Committed on 10/01/2026 at 03:50.
Pushed by carlosdem into branch 'work.core24'.
override-prime to try and lessen the amount of missing solibs
M +18 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/b741bb009ce9376dc94aa18451210b0fe496efad
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 7503bdc..07d3688 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -616,3 +616,21 @@ parts:
for snap in "core24" "ffmpeg-2404-sdk"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$CRAFT_PRIME/{}" \;
done
+ # taken from https://github.com/ubuntu/gnome-recipes/blob/stable/snapcraft.yaml
+ override-prime: |
+ set -eux
+ for snap in "core24" "ffmpeg-2404-sdk"; do
+ cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
+ done
+ # remove cross-installed repeated libraries (in /usr/lib in the SDK's, but in /usr/lib/TRIPLET
+ # here, and the opposite)
+ for snap in "core24" "ffmpeg-2404-sdk"; do
+ cd "/snap/$snap/current/usr/lib"
+ for filename in [ *.so* ]; do
+ rm -f "$CRAFT_PRIME/usr/lib/$CRAFT_ARCH_TRIPLET/$filename"
+ done
+ cd "/snap/$snap/current/usr/lib/$CRAFT_ARCH_TRIPLET"
+ for filename in [ *.so* ]; do
+ rm -f "$CRAFT_PRIME/usr/lib/$filename"
+ done
+ done
More information about the Neon-commits
mailing list