#1638 Building el8 packages with el7 builders (aka support use_bootstrap_container in kojid)
Opened by alphacc. Modified

Hi All,

For our private koji instance (and probably for cbs.centos.org too) we would like to be able to build el8 packages with standard builders (we may not upgrade builders right away to el8).

At CERN, Ben wrote a workaround patch for our need :

alphacc@kojitest34 ~]# diff /usr/sbin/kojid /usr/sbin/kojid.orig 
273,279c273,274
<         if 'mock.build.el8.on.el7' in self.config['extra']:
<           opts['package_manager'] = 'dnf'
<           opts['use_bootstrap_container'] = True
<           opts['dnf_warning'] = False
<           opts['releasever'] = '8'
<           opts['dnf_install_command'] = 'install dnf dnf-plugins-core'
<           opts['chroot_setup_cmd'] = 'install tar gcc-c++ redhat-rpm-config redhat-release which xz sed make bzip2 gzip gcc coreutils unzip shadow-utils diffutils cpio bash gawk rpm-build info patch util-linux findutils grep perl-podlators'
---
>         if 'mock.package_manager' in self.config['extra']:
>             opts['package_manager'] = self.config['extra']['mock.package_manager']

Would you accept something like that as a PR (reworked of course) upstream ? Is there a better way to support mock options ? Can we get guidance on what/how to solve this issue. I think it's a nice way to fix future rpm/yum incompabilities between major versions.

--
Thomas


The bootstrap option for mock is not currently supported in Koji and there aren't any plans currently to add that support (https://pagure.io/koji/issue/1017). While the bootstrap add a useful layer of abstraction between the host and the build environment, it breaks Koji's ability to track what is going into the buildroot.

That said, there is a way of setting mock configuration described in https://pagure.io/koji/issue/1517 that may work for you. Please check that out.

Metadata Update from @dgregor:
- Custom field Size adjusted to None

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1638

Please continue any further discussion there.

Metadata