[packaging/craft-blueprints-kde] libs: Add libmount to craft and rebuild glib

Hannah von Reth <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 65563d5313fecce704793631a413e15f6be77f3a by Hannah von Reth.
Committed on 20/07/2026 at 10:10.
Pushed by vonreth into branch 'master'.

Add libmount to craft and rebuild glib

Fixes: #28

A  +33   -0    libs/_linux/libmount/libmount.py
M  +3    -0    libs/glib/glib.py

https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/65563d5313fecce704793631a413e15f6be77f3a

diff --git a/libs/_linux/libmount/libmount.py b/libs/_linux/libmount/libmount.py
new file mode 100644
index 000000000..12176ad1f
--- /dev/null
+++ b/libs/_linux/libmount/libmount.py
@@ -0,0 +1,33 @@
+import info
+from Package.AutoToolsPackageBase import AutoToolsPackageBase
+from Utils import CraftHash
+
+
+class subinfo(info.infoclass):
+    def setTargets(self):
+        for ver in ["2.37.4"]:
+            # same as provided by alma9
+            self.targets[ver] = f"https://www.kernel.org/pub/linux/utils/util-linux/v{ver[:4]}/util-linux-{ver}.tar.xz"
+            self.targetInstSrc[ver] = f"util-linux-{ver}"
+        self.targetDigests["2.37.4"] = (["634e6916ad913366c3536b6468e7844769549b99a7b2bf80314de78ab5655b83"], CraftHash.HashAlgorithm.SHA256)
+        self.defaultTarget = "2.37.4"
+
+    def setDependencies(self):
+        self.buildDependencies["virtual/base"] = None
+
+
+class Package(AutoToolsPackageBase):
+    def __init__(self, **kwargs):
+        super().__init__(**kwargs)
+        self.subinfo.options.configure.autoreconf = False
+        self.subinfo.options.configure.args += [
+            "--disable-all-programs",
+            "--disable-bash-completion",
+            "--disable-asciidoc",
+            "--disable-poman",
+            "--without-systemd",
+            "--without-python",
+            "--enable-libblkid",
+            "--enable-libmount",
+            "--disable-pylibmount",
+        ]
diff --git a/libs/glib/glib.py b/libs/glib/glib.py
index 8def08d1e..231d12360 100644
--- a/libs/glib/glib.py
+++ b/libs/glib/glib.py
@@ -18,6 +18,8 @@ class subinfo(info.infoclass):
         self.targetDigests["2.79.0"] = (["d7ebde5505f5c4741a04ffe32f6927bd165b13caaabe18e962ddc58c811f84c9"], CraftHash.HashAlgorithm.SHA256)
         self.targetDigests["2.81.0"] = (["1665188ed9cc941c0a189dc6295e6859872523d1bfc84a5a84732a7ae87b02e4"], CraftHash.HashAlgorithm.SHA256)
         self.targetDigests["2.86.0"] = (["b5739972d737cfb0d6fd1e7f163dfe650e2e03740bb3b8d408e4d1faea580d6d"], CraftHash.HashAlgorithm.SHA256)
+
+        self.patchLevel["2.86.0"] = 1
         self.defaultTarget = "2.86.0"
 
     def setDependencies(self):
@@ -33,6 +35,7 @@ class subinfo(info.infoclass):
         self.runtimeDependencies["libs/dbus"] = None
         self.runtimeDependencies["libs/gettext"] = None
         self.runtimeDependencies["libs/pcre2"] = None
+        self.runtimeDependencies["libs/libmount"] = None
 
 
 class Package(MesonPackageBase):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.