Description of problem: find-debuginfo.sh outputs a single line for each binary which results in a massive amount of output in the build logs. This can be up to 61% of the entire build log in the case of the kernel. https://kojipkgs.fedoraproject.org//packages/kernel/6.2.0/0.rc5.20230123git2475bf0250de.38.fc38/data/logs/x86_64/build.log commit b8ac71d9f882 adds a 'quiet' flag to suppress this output. This makes viewing and interpreting logs much easier. Version-Release number of selected component (if applicable):debugedit-5.0-3.el9 How reproducible: 100% Steps to Reproduce: 1. Look at a kernel log. 2. 3. Actual results: https://kojipkgs.fedoraproject.org//packages/kernel/6.2.0/0.rc5.20230123git2475bf0250de.38.fc38/data/logs/x86_64/build.log Expected results: Less noise in the log. This change has been made in Fedora (both in debugedit and the kernel). The kernel MR is https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2357
This should be a small easy backport which has seen testing in fedora. It does depend on rpmbuild actually using debugedit, which isn't the case yet. See https://bugzilla.redhat.com/show_bug.cgi?id=2166383 (Setting risk to medium because of that, otherwise it would be low)
Note that even though this fix is now in debugedit-5.0-4.el9 if you want to use it in combination with rpmbuild you also need a fix for bug #2166383 (rpm-build should use debugedit package)
Thanks Mark. Indeed, my rhel9 system has both: 9 x86_64 # rpm -qf /usr/lib/rpm/find-debuginfo.sh rpm-build-4.16.1.3-22.el9.x86_64 9 x86_64 # rpm -qf /usr/bin/find-debuginfo.sh debugedit-5.0-4.el9.x86_64 9 x86_64 # Ive identified make as a component requiring debugedit and tested with it (because kernel seems like a too big beast for the test). The amount of excessive log entries in case of build of make isn't really huge. In fact it is just one log entry. But that's good enough to test this. I've symlinked all the find-debuginfo{,.sh} files together and then did one make build with quiet=false and another one with quiet=true. Rebuild of make-4.3-7.el9.src.rpm shows a build log difference like this: --- > Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.qxIme6 1234a1235,1236 > extracting debug info from /root/rpmbuild/BUILDROOT/make-4.3-7.el9.x86_64/usr/bin/make > original debug info size: 844kB, size after compression: 764kB 1245c1247 < Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.qkbH87 --- So, LGTM. But care must be taken that rpm-build has its own version of the script and that's not patched yet as of now (bz2166383).
*** Bug 2221236 has been marked as a duplicate of this bug. ***