Bug 2052574

Summary: activate default debuginfod url for centos
Product: Red Hat Enterprise Linux 8 Reporter: Frank Ch. Eigler <fche>
Component: elfutilsAssignee: Mark Wielaard <mjw>
elfutils sub component: system-version QA Contact: Martin Cermak <mcermak>
Status: CLOSED UPSTREAM Docs Contact:
Severity: unspecified    
Priority: unspecified CC: bstinson, davdunc, davide, davidmccheyne, daxelrod, drwilliams, fedora, jwboyer, matt, michel, mjw, ngompa13, raineforest, riehecky
Version: CentOS StreamKeywords: FutureFeature, OtherQA, Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: elfutils-0.186-2.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2053226 (view as bug list) Environment:
Last Closed: 2022-02-21 12:08:59 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:
Bug Depends On:    
Bug Blocks: 2053226    

Description Frank Ch. Eigler 2022-02-09 15:28:17 UTC
In the case of 0%{?centos} >= 8, the elfutils configure can activate
 
   --enable-debuginfod-urls=https://debuginfod.centos.org/

(I'm still just chewing through HOW to contribute this to centos-stream [8].)

Comment 1 Mark Wielaard 2022-02-10 15:21:28 UTC
Note that you also need a conditional around the following elfutils.spec hunk:

# We don't have standard DEBUGINFOD_URLS yet.
rm ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d/debuginfod.sh
rm ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d/debuginfod.csh

As long as it is conditionalized with 0%{?centos} >= 8 this should be fine for centos without it appearing in rhel.

But I do think we have to double check at least gdb works correct, there have been some usability nits (and patches that fix them) in the gdb fedora package that I am not sure are in the centos packages yet.

Comment 2 Frank Ch. Eigler 2022-02-10 16:54:15 UTC
A 0.186-2 update of elfutils with this configuration is now awaiting export to the git.centos.org build system.  (No RHEL8 build is being created, and thus this BZ should probably be closed as CLOSED/CURRENTRELEASE or something to avoid it being included in a RHEL errata by mistake.)