Bug 2221236

Summary: RHEL9: kernel-ark fails rpm build due to missing rpm-build functionality
Product: Red Hat Enterprise Linux 9 Reporter: Prarit Bhargava <prarit>
Component: debugeditAssignee: Mark Wielaard <mjw>
Status: CLOSED DUPLICATE QA Contact: Martin Cermak <mcermak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.3CC: fche, fdinitto, jstancek, pmatilai, ptalbert
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-14 18:08:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Prarit Bhargava 2023-07-07 15:23:35 UTC
Description of problem: Building kernel-ark rpms on RHEL9 fails.

Version-Release number of selected component (if applicable): rpm-build-4.16.1.3-22.el9.x86_64


How reproducible: 100%


Steps to Reproduce:
1. git clone kernel-ark
2. make -j5 dist-configs
3. cp redhat/configs/kernel-*-x86_64.config .config
4. make -j

Actual results:

19:58:58  + /usr/lib/rpm/find-debuginfo.sh -j80 --strict-build-id -n -i -r -q -p '.*/usr/bin/perf(.debug)?|.*/usr/libexec/perf-core/.*|.*/usr/lib64/libperf-jvmti.so(.debug)?|XXX' -o perf-debuginfo.list -p '.*/usr/lib64/python3.9/site-packages/perf.*so(.debug)?|XXX' -o python3-perf-debuginfo.list -p '.*/usr/bin/centrino-decode(.debug)?|.*/usr/bin/powernow-k8-decode(.debug)?|.*/usr/bin/cpupower(.debug)?|.*/usr/lib64/libcpupower.*|.*/usr/bin/turbostat(.debug)?|.*/usr/bin/x86_energy_perf_policy(.debug)?|.*/usr/bin/tmon(.debug)?|.*/usr/bin/lsgpio(.debug)?|.*/usr/bin/gpio-hammer(.debug)?|.*/usr/bin/gpio-event-mon(.debug)?|.*/usr/bin/gpio-watch(.debug)?|.*/usr/bin/iio_event_monitor(.debug)?|.*/usr/bin/iio_generic_buffer(.debug)?|.*/usr/bin/lsiio(.debug)?|.*/usr/bin/intel-speed-select(.debug)?|.*/usr/bin/page_owner_sort(.debug)?|.*/usr/bin/slabinfo(.debug)?|.*/usr/sbin/intel_sdsi(.debug)?|XXX' -o kernel-tools-debuginfo.list -p '.*/usr/sbin/bpftool(.debug)?|XXX' -o bpftool-debuginfo.list -p '.*/usr/libexec/(ksamples|kselftests)/.*|XXX' -o selftests-debuginfo.list --keep-section .BTF -p '.*/usr/src/kernels/.*|XXX' -o ignored-debuginfo.list -p '/.*/6.5.0-0.rc0.a901a3568fd2.8.test.el9.x86_64[+]debug/.*|/.*6.5.0-0.rc0.a901a3568fd2.8.test.el9.x86_64+debug(.debug)?' -o debuginfodebug.list --keep-section .BTF -p '.*/usr/src/kernels/.*|XXX' -o ignored-debuginfo.list -p '/.*/6.5.0-0.rc0.a901a3568fd2.8.test.el9.x86_64/.*|/.*6.5.0-0.rc0.a901a3568fd2.8.test.el9.x86_64(.debug)?' -o debuginfo.list --remove-section .gnu.build.attributes /srv/workspace/ark_kernel-ark-pipeline_os-build/kernel-ark/ci-test-rpms/BUILD/kernel-6.5.0-0.rc0.a901a3568fd2.8.test.el9
19:58:58  /usr/lib/rpm/find-debuginfo.sh: line 237: -q/debugsources.list: No such file or directory
19:58:58  /usr/lib/rpm/find-debuginfo.sh: line 238: -q/debugfiles.list: No such file or directory
19:58:58  /usr/lib/rpm/find-debuginfo.sh: line 239: -q/debuglinks.list: No such file or directory
19:58:58  /usr/lib/rpm/find-debuginfo.sh: line 240: -q/elfbins.list: No such file or directory

Expected results:  Build should succeed.


Additional info:  This is caused by the inclusion of the -q flag for 'find-debuginfo.sh'.  -q functionality has not been backported to RHEL9 and causes the above error.

Comment 1 Panu Matilainen 2023-08-08 06:44:40 UTC
rpmbuild does not invoke find-debuginfo with an unsupported flag. That would be something in either the kernel-ark spec or maybe something in the build environment specifying extra flags. I don't know where kernel-ark lives so can't check it up, but this seems to be a case of "if it hurts, don't do that".

I'll reassign to debugedit for consideration of -q backport. I have no opinion on that matter.

Comment 2 Mark Wielaard 2023-08-08 10:42:42 UTC
Sorry, on vacation, so no time to investigate. Back August 14.
I have added Frank to CC in case this is urgent.
But I suspect this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2177302 which backported support for -q

Comment 3 Mark Wielaard 2023-08-14 18:00:29 UTC
Back from vacation. I see no updates. So can we close this as a duplicate of bug #2177302 ?

Comment 4 Prarit Bhargava 2023-08-14 18:08:37 UTC
Yep, this can be marked as a dup.  I'll do it now :)

P.

*** This bug has been marked as a duplicate of bug 2177302 ***