[neon/snap-packaging/kde-qt6-core-sdk] /: sdk: fix prefix and add more logging

Soumyadeep Ghosh null at kde.org
Thu May 30 12:04:25 BST 2024


Git commit eb8c1d77d55eefa36cc6222ec057b441ab623bc9 by Soumyadeep Ghosh.
Committed on 29/05/2024 at 14:43.
Pushed by scarlettmoore into branch 'master'.

sdk: fix prefix and add more logging

M  +3    -1    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/eb8c1d77d55eefa36cc6222ec057b441ab623bc9

diff --git a/snapcraft.yaml b/snapcraft.yaml
index de169d4..9eebe95 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -382,7 +382,9 @@ parts:
       set -eux
       for PC in $(find . -path "*/pkgconfig/*.pc")
       do
-        sed -i 's#prefix=/build/kde-qt6-core22-sdk/stage/usr#prefix=/snap/$CRAFT_PROJECT_NAME/current/usr#g' $PC
+        echo -n "Current Prefix " && grep -o '^prefix=.*$' $PC | cut -d'=' -f2
+        sed -i 's|^prefix=.*$|prefix=/snap/$CRAFT_PROJECT_NAME/current/usr|g' $PC
+        echo -n "New Prefix " && grep -o '^prefix=.*$' $PC | cut -d'=' -f2
       done
       for snap in "core22" "ffmpeg-2204-sdk"; do
         cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$CRAFT_PRIME/{}" \;



More information about the Neon-commits mailing list