77576b7207
This update will retain support for CentOS-7/yum/mock-1.4 based builds. The build environment will be queried to discover which environment it is building in, and modify the commands we issue accordingly. In CentOS 8, DNF replaces both YUM and REPOQUERY. While DNF tries to be a transparent replacement of the old tools, there are also subtle changes to the supported arguments. I will provide independent mock.cfg.prototypes for centos7 vs centos8. Changes in generate-centos-repo.sh under stx-tools will be required to select the correct prototype. Add support for mock 2.6. Mock 2.6 is python 3, and it processes the 'root' and 'rootdir' arguments slightly differently. Also change the order of arguments to tar within default_build_srpm. The latest tar only honors '--exclude' if it precedes other arguments. Story: 2006729 Depends-On: https://review.opendev.org/762700 Signed-off-by: Scott Little <scott.little@windriver.com> Change-Id: I826be2051e535e6a4c08ad17124f453b04210668
64 lines
1.6 KiB
Protocol Buffer
64 lines
1.6 KiB
Protocol Buffer
config_opts['root'] = 'BUILD_ENV/mock'
|
|
config_opts['target_arch'] = 'x86_64'
|
|
config_opts['legal_host_arches'] = ('x86_64',)
|
|
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils epel-release epel-rpm-macros fedpkg-minimal findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config redhat-release rpm-build sed shadow-utils tar unzip util-linux which xz'
|
|
config_opts['dist'] = 'el8' # only useful for --resultdir variable subst
|
|
config_opts['releasever'] = '8'
|
|
config_opts['package_manager'] = 'dnf'
|
|
config_opts['use_bootstrap'] = False
|
|
config_opts['use_bootstrap_image'] = False
|
|
config_opts['rpmbuild_networking'] = False
|
|
|
|
|
|
config_opts['yum.conf'] = """
|
|
[main]
|
|
keepcache=1
|
|
debuglevel=2
|
|
reposdir=/dev/null
|
|
logfile=/var/log/yum.log
|
|
retries=20
|
|
obsoletes=1
|
|
gpgcheck=0
|
|
assumeyes=1
|
|
syslog_ident=mock
|
|
syslog_device=
|
|
|
|
# repos
|
|
[local-std]
|
|
name=local-std
|
|
baseurl=LOCAL_BASE/MY_BUILD_DIR/std/rpmbuild/RPMS
|
|
enabled=1
|
|
skip_if_unavailable=1
|
|
metadata_expire=0
|
|
|
|
[local-rt]
|
|
name=local-rt
|
|
baseurl=LOCAL_BASE/MY_BUILD_DIR/rt/rpmbuild/RPMS
|
|
enabled=1
|
|
skip_if_unavailable=1
|
|
metadata_expire=0
|
|
|
|
[local-installer]
|
|
name=local-installer
|
|
baseurl=LOCAL_BASE/MY_BUILD_DIR/installer/rpmbuild/RPMS
|
|
enabled=1
|
|
skip_if_unavailable=1
|
|
metadata_expire=0
|
|
|
|
[StxCentos8Distro]
|
|
name=Stx-Centos-8-Distro
|
|
enabled=1
|
|
baseurl=LOCAL_BASE/MY_REPO_DIR/centos-repo/Binary
|
|
failovermethod=priority
|
|
exclude=kernel-devel libvirt-devel
|
|
module_hotfixes=1
|
|
|
|
[StxCentos8Distro-rt]
|
|
name=Stx-Centos-8-Distro-rt
|
|
enabled=1
|
|
baseurl=LOCAL_BASE/MY_REPO_DIR/centos-repo/rt/Binary
|
|
failovermethod=priority
|
|
module_hotfixes=1
|
|
|
|
"""
|