Skip to content

Commit f0229c1

Browse files
committed
Fedora 40+ to use DNF5 for building
Per Fedora system wide change proposal: https://fedoraproject.org/wiki/Changes/BuildWithDNF5 https://pagure.io/fesco/issue/3096 Fixes: #1147
1 parent 65de13e commit f0229c1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

mock-core-configs/etc/mock/templates/fedora-rawhide.tpl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ config_opts['chroot_setup_cmd'] = 'install @{% if mirrored %}buildsys-{% endif %
88
config_opts['dist'] = 'rawhide' # only useful for --resultdir variable subst
99
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
1010
config_opts['releasever'] = '40'
11-
config_opts['package_manager'] = 'dnf'
11+
12+
# https://fedoraproject.org/wiki/Changes/BuildWithDNF5
13+
config_opts['package_manager'] = 'dnf5'
14+
1215
config_opts['bootstrap_image'] = 'registry.fedoraproject.org/fedora:rawhide'
16+
17+
# For F41+ there's https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 so
18+
# once done, re-revert https://pagure.io/fedora-kickstarts/c/f7bf98d3af6d655c6d64ba9c8d2f88cbffbbb06d?branch=main
19+
#config_opts['bootstrap_image_ready'] = True
20+
1321
config_opts['description'] = 'Fedora Rawhide'
1422

1523
config_opts['dnf.conf'] = """
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Per the approved [Fedora 40 change](https://fedoraproject.org/wiki/Changes/BuildWithDNF5),
2+
[we switched][PR#1256] the default `package_manager` configuration for Fedora 40
3+
(Rawhide at that point in time) to `dnf5`. DNF5 is [the future replacement for
4+
DNF4](https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5), aiming to be
5+
much faster than its predecessor. Hence, the effect of this change is a
6+
significantly faster buildroot preparation.

0 commit comments

Comments
 (0)