]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Ignore version from versioned dependencies in .SRCINFO
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 28 Apr 2024 13:21:15 +0000 (15:21 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 28 Apr 2024 14:20:58 +0000 (16:20 +0200)
Dependencies in .SRCINFO can be versioned. Let's make sure we ignore
any specified versions when grepping it for dependencies. Also update
the arch submodule to the latest to make sure the change works.

mkosi.images/system/mkosi.conf.d/10-arch/mkosi.prepare
pkg/arch

index 8ed5c7531cb2893f1567e5292e20ade32ffc8b60..58930c250a0dc6232368cdf918ab94e2c171f2d5 100755 (executable)
@@ -17,7 +17,7 @@ fi
 # We get depends and optdepends from .SRCINFO as getting them from the PKGBUILD is rather complex.
 sed --expression 's/^[ \t]*//' "pkg/$ID/.SRCINFO" |
     grep --regexp '^depends =' --regexp '^optdepends =' |
-    sed --expression 's/^depends = //' --expression 's/^optdepends = //' --expression 's/:.*//' |
+    sed --expression 's/^depends = //' --expression 's/^optdepends = //' --expression 's/:.*//' --expression 's/=.*//' |
     xargs --delimiter '\n' mkosi-install
 
 # We get makedepends from the PKGBUILD as .SRCINFO can't encode conditional dependencies depending on
index 124b1da79088d0f0ab33dc2d840d4733074dbf64..6a2bc5773a560688e6c12ab4bcfec87df6092ec1 160000 (submodule)
--- a/pkg/arch
+++ b/pkg/arch
@@ -1 +1 @@
-Subproject commit 124b1da79088d0f0ab33dc2d840d4733074dbf64
+Subproject commit 6a2bc5773a560688e6c12ab4bcfec87df6092ec1