]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
gentoo: drop .cache_isclean
authorPaymon MARANDI <Paymon MARANDI darwinskernel@gmail.com>
Thu, 22 Jun 2023 12:10:57 +0000 (08:10 -0400)
committerPaymon MARANDI <darwinskernel@gmail.com>
Mon, 26 Jun 2023 15:28:41 +0000 (11:28 -0400)
Signed-off-by: Paymon MARANDI <darwinskernel@gmail.com>
.github/mkosi.conf.d/20-gentoo.conf
mkosi/distributions/gentoo.py

index e204ac2ed54365740c9f9ec0296364ee285974e3..aface14f382111b87f0904faab85af94a9f18e2b 100644 (file)
@@ -6,5 +6,6 @@ Repositories=https://raw.githubusercontent.com/257/binpkgs/master
 
 [Content]
 Packages=sys-kernel/gentoo-kernel-bin
-         systemd
+         sys-apps/systemd
+         sys-apps/gentoo-systemd-integration
 
index ec2df6bd1ed4434af16a57e4218432666a4dc8b7..9133b8fb7b0ae1ecdd16ab9eb87ce8aa8cadef8e 100644 (file)
@@ -88,11 +88,6 @@ class GentooInstaller(DistributionInstaller):
             f"releases/{arch}/autobuilds/latest-stage3.txt",
         )
 
-        ###########################################################
-        # GENTOO_UPSTREAM: wait for fix upstream:
-        # https://bugs.gentoo.org/690294
-        # and more... so we can gladly escape all this hideousness!
-        ###########################################################
         with urllib.request.urlopen(stage3tsf_path_url) as r:
             # e.g.: 20230108T161708Z/stage3-amd64-nomultilib-systemd-mergedusr-20230108T161708Z.tar.xz
             regexp = rf"^[0-9]+T[0-9]+Z/stage3-{arch}-nomultilib-systemd-mergedusr-[0-9]+T[0-9]+Z\.tar\.xz"
@@ -121,7 +116,7 @@ class GentooInstaller(DistributionInstaller):
                 urllib.request.urlretrieve(stage3_url_path, stage3_tar_path)
         stage3_cache.mkdir(parents=True, exist_ok=True)
 
-        if not stage3_cache.joinpath(".cache_isclean").exists():
+        if next(stage3_cache.iterdir(), None) is None:
             with complete_step(f"Extracting {stage3_tar.name} to {stage3_cache}"):
                 run([
                     "tar",
@@ -133,8 +128,6 @@ class GentooInstaller(DistributionInstaller):
                     "--exclude", "./proc",
                 ])
 
-            stage3_cache.joinpath(".cache_isclean").touch()
-
         for d in ("binpkgs", "distfiles", "repos"):
             state.cache_dir.joinpath(d).mkdir(exist_ok=True)