rpm-software-management / mock

Mock is a tool for a reproducible build of RPM packages.
GNU General Public License v2.0
381 stars 226 forks source link

Building an el9 (rocky or alma at least) mock chroot fails #968

Closed CamJN closed 2 years ago

CamJN commented 2 years ago

Short description of the problem

Building an el9 (rocky or alma at least) mock chroot fails with:

Error: Package: glibc-2.34-28.el9_0.x86_64 (baseos)
           Requires: (glibc-gconv-extra(x86-64) = 2.34-28.el9_0 if redhat-rpm-config)

when it runs /usr/bin/yum --installroot /var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/ --releasever 9 install dnf dnf-plugins-core or /usr/bin/yum --installroot /var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/ --releasever 9 --setopt=install_weak_deps=1 --setopt=includepkgs=glibc-gconv-extra install dnf dnf-plugins-core

Because of https://fedoraproject.org/wiki/Changes/Gconv_package_split_in_glibc

mock chroots don't install recommended packages which is how glibc-gconv-extra is pulled in, and since this error is before chroot_setup_cmd is run, I don't know where in the config to fix this.

config_opts['yum_common_opts'] = ['--setopt=install_weak_deps=1', '--setopt=includepkgs=glibc-gconv-extra'] does not help, it seems the cli flags are overridden by the yum.conf file as I see the following messages:

Main config did not have a install_weak_deps attr. before setopt
Main config did not have a includepkgs attr. before setopt

despite /var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/etc/yum/yum.conf containing install_weak_deps=0, and it certainly still behaves as if install_weak_deps=0 is set.

Output of rpm -q mock

mock-2.17-1.el7.noarch

Steps to reproduce issue

1./usr/bin/mock --verbose --bootstrap-chroot -r rocky+epel-9-x86_64 --enable-plugin=ccache --init or 1./usr/bin/mock --verbose --bootstrap-chroot -r alma+epel-9-x86_64 --enable-plugin=ccache --init

Any additional notes

Output of `mock --debug-config`

[root@339bddbaef2f mock]# /usr/bin/mock --verbose --bootstrap-chroot -r rocky+epel-9-x86_64 --enable-plugin=ccache --debug-config
INFO: mock.py version 2.17 starting (python version = 3.6.8, NVR = mock-2.17-1.el7)...
DEBUG: search for 'dnf' package manager
INFO: Using 'yum' instead of 'dnf' for bootstrap chroot
Start(bootstrap): init plugins
DEBUG: ensuring that dir exists: /var/cache/mock/rocky+epel-9-x86_64-bootstrap/yum_cache
DEBUG: ensuring that dir exists: /var/cache/mock/rocky+epel-9-x86_64-bootstrap/dnf_cache
INFO: selinux disabled
Finish(bootstrap): init plugins
Start: init plugins
DEBUG: ensuring that dir exists: /var/cache/mock/rocky+epel-9-x86_64/yum_cache
DEBUG: ensuring that dir exists: /var/cache/mock/rocky+epel-9-x86_64/dnf_cache
INFO: selinux disabled
Finish: init plugins
INFO: Signal handler active
Start: run
DEBUG: mock final configuration:
DEBUG:     _aliases:  {'yum.conf': 'dnf.conf'}
DEBUG:     config_paths:  ['/etc/mock/site-defaults.cfg', '/etc/mock/chroot-aliases.cfg', '/etc/mock/rocky+epel-9-x86_64.cfg', '/etc/mock/rocky-9-x86_64.cfg', '/etc/mock/templates/rocky-9.tpl', '/etc/mock/templates/epel-9.tpl']
DEBUG:     version:  2.17
DEBUG:     basedir:  /var/lib/mock
DEBUG:     resultdir:  /var/lib/mock/rocky+epel-9-x86_64/result
DEBUG:     rootdir:  /var/lib/mock/rocky+epel-9-x86_64/root
DEBUG:     cache_topdir:  /var/cache/mock
DEBUG:     clean:  True
DEBUG:     check:  True
DEBUG:     post_install:  False
DEBUG:     chroothome:  /builddir
DEBUG:     log_config_file:  logging.ini
DEBUG:     rpmbuild_timeout:  0
DEBUG:     chrootuid:  0
DEBUG:     chrootgid:  135
DEBUG:     chrootgroup:  mock
DEBUG:     chrootuser:  mockbuild
DEBUG:     build_log_fmt_name:  unadorned
DEBUG:     root_log_fmt_name:  detailed
DEBUG:     state_log_fmt_name:  state
DEBUG:     online:  True
DEBUG:     isolation:  None
DEBUG:     use_nspawn:  False
DEBUG:     rpmbuild_networking:  False
DEBUG:     nspawn_args:  ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.7o555arx:/etc/resolv.conf']
DEBUG:     use_container_host_hostname:  True
DEBUG:     use_bootstrap:  True
DEBUG:     use_bootstrap_image:  False
DEBUG:     bootstrap_image:  quay.io/rockylinux/rockylinux:9
DEBUG:     internal_dev_setup:  True
DEBUG:     cleanup_on_success:  False
DEBUG:     cleanup_on_failure:  False
DEBUG:     exclude_from_homedir_cleanup:  ['build/SOURCES', '.bash_history', '.bashrc']
DEBUG:     createrepo_on_rpms:  False
DEBUG:     createrepo_command:  /usr/bin/createrepo_c -d -q -x *.src.rpm
DEBUG:     tar:  gnutar
DEBUG:     backup_on_clean:  False
DEBUG:     backup_base_dir:  /var/lib/mock/backup
DEBUG:     redhat_subscription_required:  False
DEBUG:     ssl_ca_bundle_path:  None
DEBUG:     ssl_extra_certs:  None
DEBUG:     plugins:  ['tmpfs', 'root_cache', 'yum_cache', 'mount', 'bind_mount', 'ccache', 'selinux', 'package_state', 'chroot_scan', 'lvm_root', 'compress_logs', 'sign', 'pm_request', 'hw_info', 'procenv', 'showrc', 'rpkg_preprocessor', 'overlayfs']
DEBUG:     plugin_dir:  /usr/lib/python3.6/site-packages/mockbuild/plugins
DEBUG:     plugin_conf:  {'ccache_enable': True, 'ccache_opts': {'max_cache_size': '4G', 'compress': None, 'dir': '/var/cache/mock/rocky+epel-9-x86_64/ccache/u0/', 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'yum_cache_enable': True, 'yum_cache_opts': {'max_age_days': 30, 'max_metadata_age_days': 30, 'online': True, 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'root_cache_enable': True, 'root_cache_opts': {'age_check': True, 'max_age_days': 15, 'dir': '/var/cache/mock/rocky+epel-9-x86_64/root_cache/', 'tar': 'gnutar', 'compress_program': 'pigz', 'decompress_program': None, 'exclude_dirs': ['./proc', './sys', './dev', './tmp/ccache', './var/cache/yum', './var/cache/dnf', './var/log'], 'extension': '.gz', 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'bind_mount_enable': True, 'bind_mount_opts': {'dirs': [], 'create_dirs': False, 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'mount_enable': True, 'mount_opts': {'dirs': [], 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'tmpfs_enable': False, 'tmpfs_opts': {'required_ram_mb': 900, 'max_fs_size': None, 'mode': '0755', 'keep_mounted': False, 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'selinux_enable': True, 'selinux_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'package_state_enable': True, 'package_state_opts': {'available_pkgs': False, 'installed_pkgs': True, 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'pm_request_enable': False, 'pm_request_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'lvm_root_enable': False, 'lvm_root_opts': {'pool_name': 'mockbuild', 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'chroot_scan_enable': False, 'chroot_scan_opts': {'regexes': ['^[^k]?core(\\.\\d+)?$', '\\.log$'], 'only_failed': True, 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'sign_enable': False, 'sign_opts': {'cmd': 'rpmsign', 'opts': '--addsign %(rpms)s', 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'hw_info_enable': True, 'hw_info_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'procenv_enable': False, 'procenv_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'showrc_enable': False, 'showrc_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'compress_logs_enable': False, 'compress_logs_opts': {'command': 'gzip', 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'rpkg_preprocessor_enable': False, 'rpkg_preprocessor_opts': {'requires': ['preproc-rpmspec'], 'cmd': '/usr/bin/preproc-rpmspec %(source_spec)s --output %(target_spec)s', 'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}, 'overlayfs_enable': False, 'overlayfs_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64', 'root': 'rocky+epel-9-x86_64', 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result'}}
DEBUG:     environment:  {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}
DEBUG:     scm:  False
DEBUG:     scm_opts:  {'method': 'git', 'cvs_get': 'cvs -d /srv/cvs co SCM_BRN SCM_PKG', 'git_get': 'git clone SCM_BRN git://localhost/SCM_PKG.git SCM_PKG', 'svn_get': 'svn co file:///srv/svn/SCM_PKG/SCM_BRN SCM_PKG', 'distgit_get': 'rpkg clone -a --branch SCM_BRN SCM_PKG SCM_PKG', 'distgit_src_get': 'rpkg sources', 'spec': 'SCM_PKG.spec', 'ext_src_dir': '/dev/null', 'write_tar': False, 'git_timestamps': False, 'exclude_vcs': True}
DEBUG:     useradd:  /usr/sbin/useradd -o -m -u 0 -g 135 -d /builddir -n mockbuild
DEBUG:     use_host_resolv:  False
DEBUG:     chroot_setup_cmd:  install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz epel-rpm-macros selinux-policy glibc-gconv-extra
DEBUG:     target_arch:  x86_64
DEBUG:     releasever:  9
DEBUG:     rpmbuild_arch:  x86_64
DEBUG:     dnf_vars:  {}
DEBUG:     yum_builddep_opts:  []
DEBUG:     yum_common_opts:  []
DEBUG:     update_before_build:  True
DEBUG:     priorities.conf:  
[main]
enabled=0
DEBUG:     rhnplugin.conf:  
[main]
enabled=0
DEBUG:     subscription-manager.conf:  
DEBUG:     more_buildreqs:  {}
DEBUG:     nosync:  False
DEBUG:     nosync_force:  False
DEBUG:     files:  {'etc/hosts': '127.0.0.1 localhost localhost.localdomain\n::1       localhost localhost.localdomain localhost6 localhost6.localdomain6\n'}
DEBUG:     macros:  {'%_topdir': '/builddir/build', '%_rpmfilename': '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm', '%_buildhost': '339bddbaef2f', '%_platform_multiplier': 1}
DEBUG:     hostname:  None
DEBUG:     module_enable:  []
DEBUG:     module_install:  []
DEBUG:     module_setup_commands:  []
DEBUG:     forcearch:  None
DEBUG:     bootstrap_chroot_additional_packages:  []
DEBUG:     bootstrap_module_enable:  []
DEBUG:     bootstrap_module_install:  []
DEBUG:     bootstrap_module_setup_commands:  []
DEBUG:     no_root_shells:  False
DEBUG:     extra_chroot_dirs:  ['/run/lock']
DEBUG:     package_manager:  dnf
DEBUG:     package_manager_max_attempts:  1
DEBUG:     package_manager_attempt_delay:  10
DEBUG:     dynamic_buildrequires:  True
DEBUG:     dynamic_buildrequires_max_loops:  10
DEBUG:     external_buildrequires:  False
DEBUG:     dev_loop_count:  12
DEBUG:     yum_command:  /usr/bin/yum
DEBUG:     system_yum_command:  /usr/bin/yum
DEBUG:     yum_install_command:  install yum yum-utils
DEBUG:     yum_builddep_command:  /usr/bin/yum-builddep
DEBUG:     dnf_command:  /usr/bin/dnf
DEBUG:     system_dnf_command:  /usr/bin/dnf
DEBUG:     dnf_install_command:  install dnf dnf-plugins-core
DEBUG:     microdnf_command:  /usr/bin/microdnf
DEBUG:     microdnf_install_command:  dnf-install microdnf dnf dnf-plugins-core
DEBUG:     microdnf_builddep_command:  /usr/bin/dnf
DEBUG:     microdnf_builddep_opts:  []
DEBUG:     microdnf_common_opts:  []
DEBUG:     rpm_command:  /bin/rpm
DEBUG:     rpmbuild_command:  /usr/bin/rpmbuild
DEBUG:     dnf_disable_plugins:  ['local', 'spacewalk', 'versionlock']
DEBUG:     user_agent:  Mock (rocky+epel-9-x86_64; x86_64)
DEBUG:     opstimeout:  0
DEBUG:     stderr_line_prefix:  
DEBUG:     additional_packages:  []
DEBUG:     no-config:  {'epel-8': {'alternatives': {'alma+epel-8': {'description': ['Builds against AlmaLinux 8 repositories, together with the official EPEL repositories.', 'Project page: https://almalinux.org/']}, 'centos-stream+epel-8': {'description': ['Builds against CentOS Stream 8 repositories (some packages may be a bit ahead the Red Hat Enterprise Linux 8) together with the official EPEL 8 repositories.', 'Project page: https://www.centos.org/centos-stream/']}, 'circlelinux+epel-8': {'description': ['Builds against Circle Linux 8 repositories, together with the official EPEL repositories.', 'Project page: https://cclinux.org/']}, 'rhel+epel-8': {'description': ['Builds against Red Hat Enterprise Linux 8 repositories, together with the official EPEL repositories.', 'This mimics what is done in the official EPEL build system, but you need a Red Hat subscription:', 'https://rpm-software-management.github.io/mock/Feature-rhelchroots']}, 'rocky+epel-8': {'description': ['Builds against Rocky Linux 8 repositories, together with the official EPEL repositories.', 'Project page: https://rockylinux.org/']}}}, 'epel-9': {'alternatives': {'alma+epel-9': {'description': ['Builds against AlmaLinux 9 repositories, together with the official EPEL repositories.', 'Project page: https://almalinux.org/']}, 'centos-stream+epel-9': {'description': ['Builds against CentOS Stream 9 repositories (some packages may be a bit ahead the Red Hat Enterprise Linux 9) together with the official EPEL repositories.', 'Project page: https://www.centos.org/centos-stream/']}, 'rhel+epel-9': {'description': ['Builds against Red Hat Enterprise Linux 9 repositories, together with the official EPEL repositories.', 'This mimics what is done in the official EPEL build system, but you need a Red Hat subscription:', 'https://rpm-software-management.github.io/mock/Feature-rhelchroots']}, 'rocky+epel-9': {'description': ['Builds against Rocky Linux 9 repositories, together with the official EPEL repositories.', 'Project page: https://rockylinux.org/']}}}}
DEBUG:     seccomp:  False
DEBUG:     config_path:  /etc/mock
DEBUG:     chroot_name:  rocky+epel-9-x86_64
DEBUG:     config_file:  /etc/mock/rocky+epel-9-x86_64.cfg
DEBUG:     dist:  el9
DEBUG:     dnf.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=
metadata_expire=0
mdpolicy=group:primary
best=1
install_weak_deps=0
protected_packages=
module_platform_id=platform:el9
user_agent=Mock (rocky+epel-9-x86_64; x86_64)

[baseos]
name=Rocky Linux $releasever - BaseOS
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[appstream]
name=Rocky Linux $releasever - AppStream
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[crb]
name=Rocky Linux $releasever - CRB
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/
gpgcheck=1
enabled=1
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[extras]
name=Rocky Linux $releasever - Extras
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/os/
gpgcheck=1
enabled=1
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[devel]
name=Rocky Linux $releasever - Devel WARNING! FOR BUILDROOT ONLY DO NOT LEAVE ENABLED
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=devel-$releasever
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/devel/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[highavailability]
name=Rocky Linux $releasever - High Availability
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=HighAvailability-$releasever
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/HighAvailability/$basearch/os/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[resilientstorage]
name=Rocky Linux $releasever - Resilient Storage
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=ResilientStorage-$releasever
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/ResilientStorage/$basearch/os/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[nfv]
name=Rocky Linux $releasever - NFV
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=NFV-$releasever
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/NFV/$basearch/os/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[rt]
name=Rocky Linux $releasever - Realtime
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/RT/$basearch/os/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[baseos-debug]
name=Rocky Linux $releasever - BaseOS - Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever-debug
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[baseos-source]
name=Rocky Linux $releasever - BaseOS - Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=BaseOS-$releasever-source
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[appstream-debug]
name=Rocky Linux $releasever - AppStream - Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever-debug
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[appstream-source]
name=Rocky Linux $releasever - AppStream - Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=AppStream-$releasever-source
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[crb-debug]
name=Rocky Linux $releasever - CRB - Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever-debug
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[crb-source]
name=Rocky Linux $releasever - CRB - Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=CRB-$releasever-source
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[extras-debug]
name=Rocky Linux $releasever - Extras Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever-debug
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[extras-source]
name=Rocky Linux $releasever - Extras Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever-source
#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[highavailability-debug]
name=Rocky Linux $releasever - High Availability - Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=HighAvailability-$releasever-debug$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/HighAvailability/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[highavailability-source]
name=Rocky Linux $releasever - High Availability - Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=HighAvailability-$releasever-source$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/HighAvailability/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[resilientstorage-debug]
name=Rocky Linux $releasever - Resilient Storage - Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=ResilientStorage-$releasever-debug$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/ResilientStorage/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[resilientstorage-source]
name=Rocky Linux $releasever - Resilient Storage - Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=ResilientStorage-$releasever-source$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/ResilientStorage/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[nfv-debug]
name=Rocky Linux $releasever - NFV Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-debug$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/NFV/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[nfv-source]
name=Rocky Linux $releasever - NFV Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-source$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/NFV/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[rt-debug]
name=Rocky Linux $releasever - Realtime Debug
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-debug$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/RT/$basearch/debug/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[rt-source]
name=Rocky Linux $releasever - Realtime Source
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-source$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/RT/source/tree/
gpgcheck=1
enabled=0
metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever
skip_if_unavailable=False

[epel-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever
skip_if_unavailable=False

[epel-source]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever
skip_if_unavailable=False

[epel-testing]
name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever
skip_if_unavailable=False

[epel-testing-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever
skip_if_unavailable=False

[epel-testing-source]
name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Source
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever
skip_if_unavailable=False

[local-epel]

name=Extra Packages for Enterprise Linux $releasever - Koji Local - BUILDROOT ONLY!
baseurl=https://kojipkgs.fedoraproject.org/repos/epel$releasever-build/latest/$basearch/
cost=2000
enabled=0
skip_if_unavailable=False

DEBUG:     root:  rocky+epel-9-x86_64
DEBUG:     description:  Rocky Linux 9 + EPEL
DEBUG:     legal_host_arches:  ('x86_64',)
DEBUG:     __jinja_expand:  True
DEBUG:     verbose:  2
DEBUG:     print_main_output:  True
DEBUG:     cache_alterations:  False
DEBUG:     enable_disable_repos:  []
DEBUG:     build_log_fmt_str:  %(message)s
DEBUG:     root_log_fmt_str:  %(levelname)s %(filename)s:%(lineno)d:  %(message)s
DEBUG:     state_log_fmt_str:  %(asctime)s - %(message)s
config_opts['additional_packages'] = []
config_opts['bootstrap_image'] = 'quay.io/rockylinux/rockylinux:9'
config_opts['build_log_fmt_str'] = '%(message)s'
config_opts['cache_alterations'] = False
config_opts['chroot_name'] = 'rocky+epel-9-x86_64'
config_opts['chroot_setup_cmd'] = ('install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk '
 'glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed '
 'shadow-utils tar unzip util-linux which xz epel-rpm-macros selinux-policy '
 'glibc-gconv-extra')
config_opts['cleanup_on_failure'] = False
config_opts['cleanup_on_success'] = False
config_opts['config_file'] = '/etc/mock/rocky+epel-9-x86_64.cfg'
config_opts['config_path'] = '/etc/mock'
config_opts['config_paths'] = ['/etc/mock/site-defaults.cfg',
 '/etc/mock/chroot-aliases.cfg',
 '/etc/mock/rocky+epel-9-x86_64.cfg',
 '/etc/mock/rocky-9-x86_64.cfg',
 '/etc/mock/templates/rocky-9.tpl',
 '/etc/mock/templates/epel-9.tpl']
config_opts['description'] = 'Rocky Linux 9 + EPEL'
config_opts['dist'] = 'el9'
config_opts['dnf.conf'] = ('\n'
 '[main]\n'
 'keepcache=1\n'
 'debuglevel=2\n'
 'reposdir=/dev/null\n'
 'logfile=/var/log/yum.log\n'
 'retries=20\n'
 'obsoletes=1\n'
 'gpgcheck=0\n'
 'assumeyes=1\n'
 'syslog_ident=mock\n'
 'syslog_device=\n'
 'metadata_expire=0\n'
 'mdpolicy=group:primary\n'
 'best=1\n'
 'install_weak_deps=0\n'
 'protected_packages=\n'
 'module_platform_id=platform:el9\n'
 'user_agent={{ user_agent }}\n'
 '\n'
 '\n'
 '[baseos]\n'
 'name=Rocky Linux $releasever - BaseOS\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=1\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[appstream]\n'
 'name=Rocky Linux $releasever - AppStream\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=1\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[crb]\n'
 'name=Rocky Linux $releasever - CRB\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=1\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[extras]\n'
 'name=Rocky Linux $releasever - Extras\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=1\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[devel]\n'
 'name=Rocky Linux $releasever - Devel WARNING! FOR BUILDROOT ONLY DO NOT '
 'LEAVE ENABLED\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=devel-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/devel/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[highavailability]\n'
 'name=Rocky Linux $releasever - High Availability\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=HighAvailability-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/HighAvailability/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[resilientstorage]\n'
 'name=Rocky Linux $releasever - Resilient Storage\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=ResilientStorage-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/ResilientStorage/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[nfv]\n'
 'name=Rocky Linux $releasever - NFV\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=NFV-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/NFV/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[rt]\n'
 'name=Rocky Linux $releasever - Realtime\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/RT/$basearch/os/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[baseos-debug]\n'
 'name=Rocky Linux $releasever - BaseOS - Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever-debug\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[baseos-source]\n'
 'name=Rocky Linux $releasever - BaseOS - Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=BaseOS-$releasever-source\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[appstream-debug]\n'
 'name=Rocky Linux $releasever - AppStream - Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever-debug\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[appstream-source]\n'
 'name=Rocky Linux $releasever - AppStream - Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=AppStream-$releasever-source\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[crb-debug]\n'
 'name=Rocky Linux $releasever - CRB - Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever-debug\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[crb-source]\n'
 'name=Rocky Linux $releasever - CRB - Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=CRB-$releasever-source\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[extras-debug]\n'
 'name=Rocky Linux $releasever - Extras Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever-debug\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[extras-source]\n'
 'name=Rocky Linux $releasever - Extras Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever-source\n'
 '#baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[highavailability-debug]\n'
 'name=Rocky Linux $releasever - High Availability - Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=HighAvailability-$releasever-debug$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/HighAvailability/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[highavailability-source]\n'
 'name=Rocky Linux $releasever - High Availability - Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=HighAvailability-$releasever-source$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/HighAvailability/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[resilientstorage-debug]\n'
 'name=Rocky Linux $releasever - Resilient Storage - Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=ResilientStorage-$releasever-debug$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/ResilientStorage/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[resilientstorage-source]\n'
 'name=Rocky Linux $releasever - Resilient Storage - Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=ResilientStorage-$releasever-source$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/ResilientStorage/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[nfv-debug]\n'
 'name=Rocky Linux $releasever - NFV Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-debug$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/NFV/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[nfv-source]\n'
 'name=Rocky Linux $releasever - NFV Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-source$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/NFV/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[rt-debug]\n'
 'name=Rocky Linux $releasever - Realtime Debug\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-debug$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/RT/$basearch/debug/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '[rt-source]\n'
 'name=Rocky Linux $releasever - Realtime Source\n'
 'mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-source$rltype\n'
 '#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/RT/source/tree/\n'
 'gpgcheck=1\n'
 'enabled=0\n'
 'metadata_expire=6h\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9\n'
 '\n'
 '\n'
 '\n'
 '\n'
 '[epel]\n'
 'name=Extra Packages for Enterprise Linux $releasever - $basearch\n'
 'metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch\n'
 'gpgcheck=1\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever\n'
 'skip_if_unavailable=False\n'
 '\n'
 '[epel-debuginfo]\n'
 'name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug\n'
 'metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch\n'
 'enabled=0\n'
 'gpgcheck=1\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever\n'
 'skip_if_unavailable=False\n'
 '\n'
 '[epel-source]\n'
 'name=Extra Packages for Enterprise Linux $releasever - $basearch - Source\n'
 'metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch\n'
 'enabled=0\n'
 'gpgcheck=1\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever\n'
 'skip_if_unavailable=False\n'
 '\n'
 '[epel-testing]\n'
 'name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch\n'
 'metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel$releasever&arch=$basearch\n'
 'enabled=0\n'
 'gpgcheck=1\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever\n'
 'skip_if_unavailable=False\n'
 '\n'
 '[epel-testing-debuginfo]\n'
 'name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - '
 'Debug\n'
 'metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel$releasever&arch=$basearch\n'
 'enabled=0\n'
 'gpgcheck=1\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever\n'
 'skip_if_unavailable=False\n'
 '\n'
 '[epel-testing-source]\n'
 'name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - '
 'Source\n'
 'metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel$releasever&arch=$basearch\n'
 'enabled=0\n'
 'gpgcheck=1\n'
 'gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-$releasever\n'
 'skip_if_unavailable=False\n'
 '\n'
 '{% if koji_primary_repo != None and koji_primary_repo != "epel" %}\n'
 '[local-epel]\n'
 '{% else %}\n'
 '[local]\n'
 '{% endif %}\n'
 'name=Extra Packages for Enterprise Linux $releasever - Koji Local - '
 'BUILDROOT ONLY!\n'
 'baseurl=https://kojipkgs.fedoraproject.org/repos/epel$releasever-build/latest/$basearch/\n'
 'cost=2000\n'
 'enabled=0\n'
 'skip_if_unavailable=False\n')
config_opts['enable_disable_repos'] = []
config_opts['extra_chroot_dirs'] = ['/run/lock']
config_opts['files'] = {'etc/hosts': '127.0.0.1 localhost localhost.localdomain\n'
              '::1       localhost localhost.localdomain localhost6 '
              'localhost6.localdomain6\n'}
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['macros'] = {'%_buildhost': '339bddbaef2f',
 '%_platform_multiplier': 1,
 '%_rpmfilename': '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm',
 '%_topdir': '/builddir/build'}
config_opts['no-config'] = {'epel-8': {'alternatives': {'alma+epel-8': {'description': ['Builds against '
                                                             'AlmaLinux 8 '
                                                             'repositories, '
                                                             'together with '
                                                             'the official '
                                                             'EPEL '
                                                             'repositories.',
                                                             'Project page: '
                                                             'https://almalinux.org/']},
                             'centos-stream+epel-8': {'description': ['Builds '
                                                                      'against '
                                                                      'CentOS '
                                                                      'Stream '
                                                                      '8 '
                                                                      'repositories '
                                                                      '(some '
                                                                      'packages '
                                                                      'may be '
                                                                      'a bit '
                                                                      'ahead '
                                                                      'the Red '
                                                                      'Hat '
                                                                      'Enterprise '
                                                                      'Linux '
                                                                      '8) '
                                                                      'together '
                                                                      'with '
                                                                      'the '
                                                                      'official '
                                                                      'EPEL 8 '
                                                                      'repositories.',
                                                                      'Project '
                                                                      'page: '
                                                                      'https://www.centos.org/centos-stream/']},
                             'circlelinux+epel-8': {'description': ['Builds '
                                                                    'against '
                                                                    'Circle '
                                                                    'Linux 8 '
                                                                    'repositories, '
                                                                    'together '
                                                                    'with the '
                                                                    'official '
                                                                    'EPEL '
                                                                    'repositories.',
                                                                    'Project '
                                                                    'page: '
                                                                    'https://cclinux.org/']},
                             'rhel+epel-8': {'description': ['Builds against '
                                                             'Red Hat '
                                                             'Enterprise Linux '
                                                             '8 repositories, '
                                                             'together with '
                                                             'the official '
                                                             'EPEL '
                                                             'repositories.',
                                                             'This mimics what '
                                                             'is done in the '
                                                             'official EPEL '
                                                             'build system, '
                                                             'but you need a '
                                                             'Red Hat '
                                                             'subscription:',
                                                             'https://rpm-software-management.github.io/mock/Feature-rhelchroots']},
                             'rocky+epel-8': {'description': ['Builds against '
                                                              'Rocky Linux 8 '
                                                              'repositories, '
                                                              'together with '
                                                              'the official '
                                                              'EPEL '
                                                              'repositories.',
                                                              'Project page: '
                                                              'https://rockylinux.org/']}}},
 'epel-9': {'alternatives': {'alma+epel-9': {'description': ['Builds against '
                                                             'AlmaLinux 9 '
                                                             'repositories, '
                                                             'together with '
                                                             'the official '
                                                             'EPEL '
                                                             'repositories.',
                                                             'Project page: '
                                                             'https://almalinux.org/']},
                             'centos-stream+epel-9': {'description': ['Builds '
                                                                      'against '
                                                                      'CentOS '
                                                                      'Stream '
                                                                      '9 '
                                                                      'repositories '
                                                                      '(some '
                                                                      'packages '
                                                                      'may be '
                                                                      'a bit '
                                                                      'ahead '
                                                                      'the Red '
                                                                      'Hat '
                                                                      'Enterprise '
                                                                      'Linux '
                                                                      '9) '
                                                                      'together '
                                                                      'with '
                                                                      'the '
                                                                      'official '
                                                                      'EPEL '
                                                                      'repositories.',
                                                                      'Project '
                                                                      'page: '
                                                                      'https://www.centos.org/centos-stream/']},
                             'rhel+epel-9': {'description': ['Builds against '
                                                             'Red Hat '
                                                             'Enterprise Linux '
                                                             '9 repositories, '
                                                             'together with '
                                                             'the official '
                                                             'EPEL '
                                                             'repositories.',
                                                             'This mimics what '
                                                             'is done in the '
                                                             'official EPEL '
                                                             'build system, '
                                                             'but you need a '
                                                             'Red Hat '
                                                             'subscription:',
                                                             'https://rpm-software-management.github.io/mock/Feature-rhelchroots']},
                             'rocky+epel-9': {'description': ['Builds against '
                                                              'Rocky Linux 9 '
                                                              'repositories, '
                                                              'together with '
                                                              'the official '
                                                              'EPEL '
                                                              'repositories.',
                                                              'Project page: '
                                                              'https://rockylinux.org/']}}}}
config_opts['nspawn_args'] = ['--capability=cap_ipc_lock',
 '--bind=/tmp/mock-resolv.7o555arx:/etc/resolv.conf']
config_opts['plugin_conf'] = {'bind_mount_enable': True,
 'bind_mount_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                     'cache_topdir': '/var/cache/mock',
                     'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                     'create_dirs': False,
                     'dirs': [],
                     'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                     'root': 'rocky+epel-9-x86_64'},
 'ccache_enable': True,
 'ccache_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                 'cache_topdir': '/var/cache/mock',
                 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                 'compress': None,
                 'dir': '/var/cache/mock/rocky+epel-9-x86_64/ccache/u0/',
                 'max_cache_size': '4G',
                 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                 'root': 'rocky+epel-9-x86_64'},
 'chroot_scan_enable': False,
 'chroot_scan_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                      'cache_topdir': '/var/cache/mock',
                      'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                      'only_failed': True,
                      'regexes': ['^[^k]?core(\\.\\d+)?$', '\\.log$'],
                      'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                      'root': 'rocky+epel-9-x86_64'},
 'compress_logs_enable': False,
 'compress_logs_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                        'cache_topdir': '/var/cache/mock',
                        'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                        'command': 'gzip',
                        'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                        'root': 'rocky+epel-9-x86_64'},
 'hw_info_enable': True,
 'hw_info_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                  'cache_topdir': '/var/cache/mock',
                  'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                  'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                  'root': 'rocky+epel-9-x86_64'},
 'lvm_root_enable': False,
 'lvm_root_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                   'cache_topdir': '/var/cache/mock',
                   'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                   'pool_name': 'mockbuild',
                   'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                   'root': 'rocky+epel-9-x86_64'},
 'mount_enable': True,
 'mount_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                'cache_topdir': '/var/cache/mock',
                'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                'dirs': [],
                'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                'root': 'rocky+epel-9-x86_64'},
 'overlayfs_enable': False,
 'overlayfs_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                    'cache_topdir': '/var/cache/mock',
                    'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                    'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                    'root': 'rocky+epel-9-x86_64'},
 'package_state_enable': True,
 'package_state_opts': {'available_pkgs': False,
                        'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                        'cache_topdir': '/var/cache/mock',
                        'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                        'installed_pkgs': True,
                        'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                        'root': 'rocky+epel-9-x86_64'},
 'pm_request_enable': False,
 'pm_request_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                     'cache_topdir': '/var/cache/mock',
                     'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                     'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                     'root': 'rocky+epel-9-x86_64'},
 'procenv_enable': False,
 'procenv_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                  'cache_topdir': '/var/cache/mock',
                  'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                  'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                  'root': 'rocky+epel-9-x86_64'},
 'root_cache_enable': True,
 'root_cache_opts': {'age_check': True,
                     'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                     'cache_topdir': '/var/cache/mock',
                     'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                     'compress_program': 'pigz',
                     'decompress_program': None,
                     'dir': '/var/cache/mock/rocky+epel-9-x86_64/root_cache/',
                     'exclude_dirs': ['./proc',
                                      './sys',
                                      './dev',
                                      './tmp/ccache',
                                      './var/cache/yum',
                                      './var/cache/dnf',
                                      './var/log'],
                     'extension': '.gz',
                     'max_age_days': 15,
                     'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                     'root': 'rocky+epel-9-x86_64',
                     'tar': 'gnutar'},
 'rpkg_preprocessor_enable': False,
 'rpkg_preprocessor_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                            'cache_topdir': '/var/cache/mock',
                            'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                            'cmd': '/usr/bin/preproc-rpmspec %(source_spec)s '
                                   '--output %(target_spec)s',
                            'requires': ['preproc-rpmspec'],
                            'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                            'root': 'rocky+epel-9-x86_64'},
 'selinux_enable': True,
 'selinux_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                  'cache_topdir': '/var/cache/mock',
                  'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                  'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                  'root': 'rocky+epel-9-x86_64'},
 'showrc_enable': False,
 'showrc_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                 'cache_topdir': '/var/cache/mock',
                 'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                 'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                 'root': 'rocky+epel-9-x86_64'},
 'sign_enable': False,
 'sign_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
               'cache_topdir': '/var/cache/mock',
               'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
               'cmd': 'rpmsign',
               'opts': '--addsign %(rpms)s',
               'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
               'root': 'rocky+epel-9-x86_64'},
 'tmpfs_enable': False,
 'tmpfs_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                'cache_topdir': '/var/cache/mock',
                'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                'keep_mounted': False,
                'max_fs_size': None,
                'mode': '0755',
                'required_ram_mb': 900,
                'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                'root': 'rocky+epel-9-x86_64'},
 'yum_cache_enable': True,
 'yum_cache_opts': {'basedir': '/var/lib/mock/rocky+epel-9-x86_64',
                    'cache_topdir': '/var/cache/mock',
                    'cachedir': '/var/cache/mock/rocky+epel-9-x86_64',
                    'max_age_days': 30,
                    'max_metadata_age_days': 30,
                    'online': True,
                    'resultdir': '/var/lib/mock/rocky+epel-9-x86_64/result',
                    'root': 'rocky+epel-9-x86_64'}}
config_opts['print_main_output'] = True
config_opts['releasever'] = '9'
config_opts['root'] = 'rocky+epel-9-{{ target_arch }}'
config_opts['root_log_fmt_str'] = '%(levelname)s %(filename)s:%(lineno)d:  %(message)s'
config_opts['rpmbuild_arch'] = 'x86_64'
config_opts['state_log_fmt_str'] = '%(asctime)s - %(message)s'
config_opts['target_arch'] = 'x86_64'
config_opts['use_nspawn'] = False
config_opts['verbose'] = 2
Finish: run
DEBUG: ensuring that dir exists: /var/lib/mock/rocky+epel-9-x86_64
DEBUG: kill orphans
DEBUG: ensuring that dir exists: /var/lib/mock/rocky+epel-9-x86_64-bootstrap
DEBUG: kill orphans
[root@339bddbaef2f mock]# 
praiskup commented 2 years ago

Recently reported here https://bugzilla.redhat.com/show_bug.cgi?id=2122171

The YUM on EL7 systems doesn't provide the needed feature set to install the Mock's bootstrap chroot. What you need here is the --use-bootstrap-image option (with Podman installed). See #967.