Skip to content

c9s mock build failed with the config based on the "centpkg mock-config --target c9s-candidate". #1561

Open
@junaruga

Description

@junaruga

When running the mock build for CentOS 9 Stream c9s branch of the rpms/ruby, the mock build failed below. The full log is here. Is this expected? I am actually not sure where I should report this issue. CentOS Koji issue?

You may reproduce the issue with the following steps.

$ centpkg co ruby

$ cd ruby

$ git checkout c9s

The command log is below.

$ centpkg srpm

$ ls *.rpm
ruby-3.0.7-163.el9.src.rpm

$ mock -r c9s *.rpm
...
No matches found for the following disable plugin patterns: local,
spacewalk, versionlock
Last metadata expiration check: 0:00:58 ago on Fri Mar 14 15:15:53 2025.
Package make-1:4.3-8.el9.x86_64 is already installed.
...

The used c9s.cfg is below. Today I created the following mock config file by the centpkg mock-config --target c9s-candidate, then adjusted it.

$ cat ~/.config/mock/c9s.cfg
config_opts['basedir'] = '/var/lib/mock'
config_opts['chroot_setup_cmd'] = 'install @build'
config_opts['chroothome'] = '/builddir'
config_opts['dnf_warning'] = False
config_opts['package_manager'] = 'dnf'
config_opts['root'] = 'c9s-candidate-x86_64'
config_opts['rpmbuild_networking'] = False
config_opts['rpmbuild_timeout'] = 86400
config_opts['target_arch'] = 'x86_64'
config_opts['use_bootstrap_image'] = False
config_opts['use_host_resolv'] = False
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
keepcache=1
install_weak_deps=0
strict=1
# repos
[build]
name=build
baseurl=http://kojihub.stream.rdu2.redhat.com/kojifiles/repos/c9s-build/latest/x86_64
"""

config_opts['plugin_conf']['ccache_enable'] = False
config_opts['plugin_conf']['root_cache_enable'] = False
config_opts['plugin_conf']['yum_cache_enable'] = False

config_opts['macros']['%_host'] = 'x86_64-koji-linux-gnu'
config_opts['macros']['%_host_cpu'] = 'x86_64'
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%_topdir'] = '/builddir/build'
config_opts['macros']['%distribution'] = 'el9'
config_opts['macros']['%packager'] = 'Koji'
config_opts['macros']['%vendor'] = 'Koji'

As a note, the centpkg mockbuild also failed. The log is here. But the mock -r centos-stream-9-x86_64 *.rpm moved to the %prep part without the error. It works!

I am trying to compare the config items of the mock -r centos-stream-9-x86_64 (succeeded) from ones of the mock -r c9s (failed). The logs are below. Could you tell me what config items are missing to pass the mock build in the case of the c9s.cfg?

$ mock -r centos-stream-9-x86_64 --debug-config *.rpm > centos-stream-9-x86_64_config.txt
$ mock -r c9s --debug-config *.rpm > c9s-x86_64_config.txt

centos-stream-9-x86_64_config.txt
https://gist.github.com/junaruga/452a2ee9f8fd7ee7b866d5a95f25bf54

c9s-x86_64_config.txt
https://gist.github.com/junaruga/09838e4e297faaea0f2dc2fca4a992cf

My environment is below.

$ rpm -q centpkg mock dnf5
centpkg-0.9.1-1.fc41.noarch
mock-6.1-1.fc41.noarch
dnf5-5.2.10.0-2.fc41.x86_64

$ rpm -qf /etc/mock/centos-stream-9-x86_64.cfg
mock-core-configs-42.2-1.fc41.noarch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions