[gnome-build-meta/valentindavid/remove-fdsdk-glib: 5/5] Remove glib from freedesktop-sdk



commit a498184cb0afac67e2c08eb52825ddad2142fd13
Author: Valentin David <valentin david codethink co uk>
Date:   Sat May 9 14:12:44 2020 +0200

    Remove glib from freedesktop-sdk

 elements/sdk/glib.bst | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/elements/sdk/glib.bst b/elements/sdk/glib.bst
index 8c05525c..73d73615 100644
--- a/elements/sdk/glib.bst
+++ b/elements/sdk/glib.bst
@@ -30,6 +30,16 @@ public:
   bst:
     integration-commands:
     - glib-compile-schemas %{prefix}/share/glib-2.0/schemas
+    - |
+      for lib in gio glib gmodule gobject gthread; do
+        fulllib="%{libdir}/lib${lib}-2.0.so.0"
+        keep="$(readlink "${fulllib}")"
+        for i in "${fulllib}".*; do
+          if [ "$(basename "${i}")" != "${keep}" ]; then
+            rm "${i}"
+          fi
+        done
+      done
     overlap-whitelist:
     - '**'
     split-rules:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]