Skip to content

Commit

Permalink
Fedora 40+ to use DNF5 for building
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Dec 1, 2023
1 parent 65de13e commit fe083b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mock-core-configs/etc/mock/templates/fedora-rawhide.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ config_opts['chroot_setup_cmd'] = 'install @{% if mirrored %}buildsys-{% endif %
config_opts['dist'] = 'rawhide' # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['releasever'] = '40'
config_opts['package_manager'] = 'dnf'

# https://fedoraproject.org/wiki/Changes/BuildWithDNF5
config_opts['package_manager'] = 'dnf5'

config_opts['bootstrap_image'] = 'registry.fedoraproject.org/fedora:rawhide'

# For F41+ there's https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 so
# once done, re-revert https://pagure.io/fedora-kickstarts/c/f7bf98d3af6d655c6d64ba9c8d2f88cbffbbb06d?branch=main
#config_opts['bootstrap_image_ready'] = True

config_opts['description'] = 'Fedora Rawhide'

config_opts['dnf.conf'] = """
Expand Down
6 changes: 6 additions & 0 deletions releng/release-notes-next/dnf5-for-f40.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Per the approved [Fedora 40 change](https://fedoraproject.org/wiki/Changes/BuildWithDNF5),
[we switched][PR#1256] the default `package_manager` configuration for Fedora 40
(Rawhide at that point in time) to `dnf5`. DNF5 is [the future replacement for
DNF4](https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5), aiming to be
much faster than its predecessor. Hence, the effect of this change is a
significantly faster buildroot preparation.

0 comments on commit fe083b6

Please sign in to comment.