#1426 rpmbuild: define mock 'root' config for make srpm
Merged 3 years ago by praiskup. Opened 3 years ago by praiskup.

@@ -1,4 +1,6 @@

  include('/etc/mock/default.cfg')

+ 

+ config_opts['root'] = "make-srpm-method"

  config_opts['rpmbuild_networking'] = True

  config_opts['use_host_resolv'] = True

  config_opts['chroot_additional_packages'] = 'make dnf'

When 'root' is not redefined, the caches (and other directories) are
shared with the included default.cfg config file.

During the recent testing of Red Hat Internal Copr instance, it happened
several times in row that heavily re-used VM cached the root
(root-cache.tar.gz) of default.cfg (symlink fedora-32-x86_64.cfg), and
later re-used the cache for make_srpm method. This failed because when
restoring from the cache the chroot_additional_packages config option
wasn't processed and the reqested dnf package was missing to build the
sources.

rebased onto 46ea518

3 years ago

Pull-Request has been merged by praiskup

3 years ago