The Mock utility uses the bootstrap_image feature to significantly speed up RPM package builds (instead of re-installing the bootstrap chroot from scratch using dnf). The tooling that's needed in Mock's bootstrap chroot is basically dnf5 builddep command (implies dnf5-plugins).
dnf5 builddep
Currently, there are two variants: the Base (the default) container where we do not have dnf5-plugins, and the Toolbox variant (that contains dnf5-plugins, but contains just too many other packages).
dnf5-plugins
Option1: Could we add dnf5-plugins into the Base container?
Option2: Could we have a new Variant called, e.g. MockBootstrap, pushed to the registry as fedora-mock-bootstrap:<version>? No problem to make it a separate layer on top of the Base image.
fedora-mock-bootstrap:<version>
When? It would be nice to have a solution soon; dnf5 is the default in F41+, and the default Mock builds can be made significantly faster with this proposal.
Possible Kiwi config patch:
Commit: Pavel Raiskup <praiskup@redhat.com> CommitDate: Wed May 15 08:32:33 2024 +0200 Add dnf5-plugins into the generic container [root@ba1ab1388008 /]# dnf5 install dnf5-plugins --setopt=install_weak_deps=False ... Total size of inbound packages is 2 MiB. Need to download 2 MiB. After this operation 13 MiB will be used (install 13 MiB, remove 0 B). ... diff --git a/teams/cloud/container.xml b/teams/cloud/container.xml index 130b1b2..7118848 100644 --- a/teams/cloud/container.xml +++ b/teams/cloud/container.xml @@ -143,6 +143,7 @@ <package name="tar"/> <!-- https://bugzilla.redhat.com/show_bug.cgi?id=1409920 --> <package name="vim-minimal"/> <package name="dnf5"/> + <package name="dnf5-plugins"/> <package name="glibc-minimal-langpack"/> <package name="tzdata"/> <package name="xz"/>
Metadata Update from @jnsamyak: - Issue tagged with: f41, medium-gain, medium-trouble
Let's go with option 1. :)
I'm fine with option1 too.
Do you only need it in f41+
It's pretty small, so I suppose we could do f40 too, but would be nicer to just keep it to rawhide...
Sure, F41+ is OK, I'll try to create a PR.
https://pagure.io/fedora-kiwi-descriptions/pull-request/63
Metadata Update from @praiskup: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.