]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: drop SysV compat files from packages
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 21 Apr 2025 04:38:01 +0000 (13:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Jul 2025 20:49:09 +0000 (05:49 +0900)
These workarounds can be dropped when the downstream .spec or filelists
are updated.

mkosi/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot

index ac7202c1d0245dfc99b59830afd0626b776247f6..8ec7500d7b76d29a8c9f00e37e958456cf3ee52d 100755 (executable)
@@ -19,9 +19,10 @@ TS="${SOURCE_DATE_EPOCH:-$(date +%s)}"
 # disable manpage compression as the files cannot be found. Fix the issue by removing the compression
 # extension.
 #
-# TODO: remove manual cgroups-agent and pubring patches when the upstream spec is updated
+# TODO: remove patches for removal of cgroups-agent, renaming pubring file, and removal of sysv files
+# when the upstream spec is updated
 while read -r filelist; do
-    sed 's/\.gz$//; /systemd-cgroups-agent/d; s/import-pubring.gpg/import-pubring.pgp/' "$filelist" >"/tmp/$(basename "$filelist")"
+    sed -E 's/\.gz$//; /systemd-cgroups-agent/d; s/import-pubring.gpg/import-pubring.pgp/; /(initctl|runlevel|telinit)/ d' "$filelist" >"/tmp/$(basename "$filelist")"
     mount --bind "/tmp/$(basename "$filelist")" "$filelist"
 done < <(find "pkg/$PKG_SUBDIR${GIT_SUBDIR:+/$GIT_SUBDIR}" -name "files.*")