[neon/snap-packaging/kf6-core-sdk/work.core24] /: Also fix up libdir and includedir in pkgconfig files

Kevin Ottens null at kde.org
Thu Nov 14 13:08:10 GMT 2024


Git commit 4eb1314a34bf14df3fc09b79c525ae518650bab4 by Kevin Ottens.
Committed on 14/11/2024 at 13:07.
Pushed by ervin into branch 'work.core24'.

Also fix up libdir and includedir in pkgconfig files

Some of them are not using variables properly so replace their /usr to
something which points inside of the snap.

M  +2    -0    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kf6-core-sdk/-/commit/4eb1314a34bf14df3fc09b79c525ae518650bab4

diff --git a/snapcraft.yaml b/snapcraft.yaml
index cb07a8c..d9fcc60 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -2338,3 +2338,5 @@ parts:
         override-stage: |
             craftctl default
             find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:/root/stage:/snap/$CRAFT_PROJECT_NAME/current:g' {}*" \;
+            find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:libdir=/usr:libdir=/snap/$CRAFT_PROJECT_NAME/current/usr:g' {}*" \;
+            find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:includedir=/usr:includedir=/snap/$CRAFT_PROJECT_NAME/current/usr:g' {}*" \;


More information about the Neon-commits mailing list