]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Simply remove all the debian patches instead of mounting over them
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 28 Apr 2024 17:11:50 +0000 (19:11 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 15:01:41 +0000 (17:01 +0200)
The build sources are ephemeral anyways, so we can just remove the patches
instead of hiding them.

mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.build.chroot

index e4f589d6b6eb8b5ffe7f5bcfc24b3775e13b4068..e8921c2efed568aebb11da21f3e90c0a628d361d 100755 (executable)
@@ -13,9 +13,8 @@ fi
 # We transplant the debian/ folder from the deb package sources into the upstream sources.
 mount --mkdir --bind "$SRCDIR/pkg/$ID/debian" "$SRCDIR"/debian
 
-# We hide the patches/ directory by mounting an empty directory on top so they don't get applied.
-TMP=$(mktemp -d)
-mount --bind "$TMP" "$SRCDIR"/debian/patches
+# We remove the patches so they don't get applied.
+rm -rf "$SRCDIR"/debian/patches/*
 
 # While the build directory can be specified through DH_OPTIONS, the default one is hardcoded everywhere so
 # we have to use that. Because it is architecture dependent, we query it using dpkg-architecture first.