#4548 Diagnostics from `dnf builddep` not shown
Opened by yannd. Modified

We have builds, on a being-configured alma10 environment, where installation of a package's builddeps actually triggers removal of rpm-build... which does not end well.

Example: https://koji.xcp-ng.org/kojifiles/work/tasks/490/100490/root.log
I actually attempted to add more verbosity flags in there but that did not help:

DEBUG util.py:556:  Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '4ede7cc52f92479d8a49cf132b6bf5aa', '-D', '/var/lib/mock/v9.0-u-ydi1-10981-29425-bootstrap/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.blq2dbmq:/etc/resolv.conf', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/var/lib/mock/v9.0-u-ydi1-10981-29425/root/installation-homedir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--setenv=LC_MESSAGES=C.UTF-8', '--resolv-conf=off', '/usr/bin/dnf-3', 'builddep', '-vv', '--setopt=tsflags=deploops', '--installroot', '/var/lib/mock/v9.0-u-ydi1-10981-29425/root/', '--releasever', '9.0', '--setopt=deltarpm=False', '--setopt=allow_vendor_change=yes', '--allowerasing', '--disableplugin=local', '--disableplugin=spacewalk', '--disableplugin=versionlock', '/var/lib/mock/v9.0-u-ydi1-10981-29425/root//builddir/build/SRPMS/libempserver-1.1.0-2.0.1~ydi1.1.xcpng8.99.src.rpm', '--setopt=tsflags=nocontexts'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/var/lib/mock/v9.0-u-ydi1-10981-29425/root/installation-homedir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'LC_MESSAGES': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False
DEBUG util.py:459:  No matches found for the following disable plugin patterns: local, spacewalk, versionlock
DEBUG util.py:461:  Loaded plugins: builddep, changelog, config-manager, copr, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DEBUG util.py:461:  DNF version: 4.20.0
DEBUG util.py:461:  cachedir: /var/lib/mock/v9.0-u-ydi1-10981-29425/root/var/cache/yum
DEBUG util.py:461:  User-Agent: constructed: 'libdnf (XCP-ng 8.99.0; generic; Linux.x86_64)'
DEBUG util.py:461:  build                                           161 kB/s | 4.2 kB     00:00    
DEBUG util.py:461:  reviving: 'build' can be revived - repomd matches.
DEBUG util.py:461:  build: using metadata from Thu Mar 12 13:09:27 2026.
DEBUG util.py:461:  --> Starting dependency resolution
DEBUG util.py:461:  ---> Package cmake-filesystem.x86_64_v2 3.30.5-3.el10_0 will be installed
DEBUG util.py:461:  ---> Package cpp.x86_64_v2 14.2.1-7.el10.alma.1 will be installed
DEBUG util.py:461:  ---> Package gcc.x86_64_v2 14.2.1-7.el10.alma.1 will be installed
DEBUG util.py:461:  ---> Package glibc-devel.x86_64_v2 2.39-46.el10_0.4.alma.1 will be installed
DEBUG util.py:461:  ---> Package json-c-devel.x86_64_v2 0.18-3.el10 will be installed
DEBUG util.py:461:  ---> Package kernel-headers.x86_64_v2 6.12.0-55.43.1.el10_0 will be installed
DEBUG util.py:461:  ---> Package libmpc.x86_64_v2 1.3.1-7.el10 will be installed
DEBUG util.py:461:  ---> Package libxcrypt-devel.x86_64_v2 4.4.36-10.el10 will be installed
DEBUG util.py:461:  ---> Package fonts-srpm-macros.noarch 1:2.0.5-18.el10 will be erased
DEBUG util.py:461:  ---> Package forge-srpm-macros.noarch 0.4.0-6.el10 will be erased
DEBUG util.py:461:  ---> Package go-srpm-macros.noarch 3.6.0-4.el10 will be erased
DEBUG util.py:461:  ---> Package python-srpm-macros.noarch 3.12-9.1.el10 will be erased
DEBUG util.py:461:  ---> Package redhat-rpm-config.noarch 289-1.el10_0.1.alma.1 will be erased
DEBUG util.py:461:  ---> Package rpm-build.x86_64_v2 4.19.1.1-12.el10.alma.1 will be erased
DEBUG util.py:461:  --> Finished dependency resolution
DEBUG util.py:461:  Dependencies resolved.
DEBUG util.py:461:  ================================================================================
DEBUG util.py:461:   Package               Architecture Version                     Repo       Size
DEBUG util.py:461:  ================================================================================
DEBUG util.py:461:  Installing:
DEBUG util.py:461:   gcc                   x86_64_v2    14.2.1-7.el10.alma.1        build      37 M
DEBUG util.py:461:   json-c-devel          x86_64_v2    0.18-3.el10                 build      57 k
DEBUG util.py:461:  Installing dependencies:
DEBUG util.py:461:   cmake-filesystem      x86_64_v2    3.30.5-3.el10_0             build      15 k
DEBUG util.py:461:   cpp                   x86_64_v2    14.2.1-7.el10.alma.1        build      12 M
DEBUG util.py:461:   glibc-devel           x86_64_v2    2.39-46.el10_0.4.alma.1     build     484 k
DEBUG util.py:461:   kernel-headers        x86_64_v2    6.12.0-55.43.1.el10_0       build     2.1 M
DEBUG util.py:461:   libmpc                x86_64_v2    1.3.1-7.el10                build      71 k
DEBUG util.py:461:   libxcrypt-devel       x86_64_v2    4.4.36-10.el10              build      33 k
DEBUG util.py:461:  Removing dependent packages:
DEBUG util.py:461:   fonts-srpm-macros     noarch       1:2.0.5-18.el10             @build     56 k
DEBUG util.py:461:   forge-srpm-macros     noarch       0.4.0-6.el10                @build     39 k
DEBUG util.py:461:   go-srpm-macros        noarch       3.6.0-4.el10                @build     60 k
DEBUG util.py:461:   python-srpm-macros    noarch       3.12-9.1.el10               @build     51 k
DEBUG util.py:461:   redhat-rpm-config     noarch       289-1.el10_0.1.alma.1       @build    184 k
DEBUG util.py:461:   rpm-build             x86_64_v2    4.19.1.1-12.el10.alma.1     @build    173 k
DEBUG util.py:461:  Transaction Summary
DEBUG util.py:461:  ================================================================================

If we try to run dnf builddeps in an Alma10 container using thednf.conf used by mock, however we can see:

[root@82f9bc5d1676 libempserver]# dnf builddep SPECS/libempserver.spec 
Last metadata expiration check: 0:01:22 ago on Fri Mar 13 09:50:59 2026.
Error: 
 Problem: problem with installed package redhat-rpm-config-289-1.el10_0.1.alma.1.noarch
  - package redhat-rpm-config-289-1.el10_0.1.alma.1.noarch from @System requires (annobin-plugin-gcc if gcc), but none of the providers can be installed
  - package redhat-rpm-config-289-1.el10_0.1.alma.1.noarch from @System requires (gcc-plugin-annobin if gcc), but none of the providers can be installed
  - package redhat-rpm-config-289-1.el10_0.1.alma.1.noarch from build requires (annobin-plugin-gcc if gcc), but none of the providers can be installed
  - package redhat-rpm-config-289-1.el10_0.1.alma.1.noarch from build requires (gcc-plugin-annobin if gcc), but none of the providers can be installed
  - conflicting requests
(try to add '--skip-broken' to skip uninstallable packages)

This error is crucial to solving the problem, yet we cannot seem to get it from koji's logs: stderr data would be lost in this case?


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

Please continue any further discussion there.

Metadata