Bug 2053226

Summary: activate default debuginfod url for centos
Product: Red Hat Enterprise Linux 9 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, mcermak, 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.el9 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 2052574 Environment:
Last Closed: 2022-02-21 12:08:54 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: 2052574    
Bug Blocks:    

Description Frank Ch. Eigler 2022-02-10 17:56:55 UTC
+++ This bug was initially created as a clone of Bug #2052574 +++

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].)

--- Additional comment from Mark Wielaard on 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.

--- Additional comment from Frank Ch. Eigler on 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.)

Comment 1 Frank Ch. Eigler 2022-02-10 18:46:19 UTC
A 0.186-2 update of elfutils with this configuration is now awaiting export to the centos.org build system.  (No RHEL9 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 build by mistake.)