<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13807</bug_id>
          
          <creation_ts>2020-02-21 11:14:35 +0000</creation_ts>
          <short_desc>Add support for elfutils debuginfod</short_desc>
          <delta_ts>2021-03-25 13:23:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>newcomer</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>3.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</cc>
    
    <cc>twoerner</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86539</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-02-21 11:14:35 +0000</bug_when>
    <thetext>debuginfod from elfutils 0.178 onwards is a way to distribute debuginfo files.   Some background and context here:

https://fosdem.org/2020/schedule/event/debugging_debuginfod/attachments/slides/3887/export/events/attachments/debugging_debuginfod/slides/3887/debuginfod.pdf

Yocto should support this out of the box.  Initial work items:
1) Enable debuginfod in elfutils.  This should be a PACKAGECONFIG, and the build needs some extra dependencies (libmicrohttpd curl sqlite3 libarchive).  Initially disabled by default.

2) Add support for ipkg to the debuginfod scanner. 0.178 only supports RPM but the next release (and git master) can also scan .debs, and as ipkgs are binary-compatible with dpkg then this is a trivial addition to the filename matching.

3) Verify that running debuginfod manually over $DEPLOY_DIR and setting DEBUGINFOD_URLS correctly works. Test case: debuginfod-find source hexcode /bin/bash.

4) Determine final integration. Straw man proposal: a class that turns on debuginfod for elfutils and sets DEBUGINFOD_URLS in the image, and a script that runs the elfutils-native debuginfod on DEPLOY_DIR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86603</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-02-27 14:52:13 +0000</bug_when>
    <thetext>Further update: gdb now supports debuginfod.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=0d79cdc494d5eb9db26a602d62c92d49f83f407e

I left out step 3.5) enable debuginfod for gdb.  Now the patch is upstream we can backport that patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86606</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-02-27 15:43:07 +0000</bug_when>
    <thetext>As of Feb 27, this seems like a work in progress but one that is almost finish (see ClearLinux). We should just go ahead but keep the status of the project in mind.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86608</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-02-27 15:47:36 +0000</bug_when>
    <thetext>ClearLinux has recently disabled this in elfutils:
https://github.com/clearlinux-pkgs/elfutils/commit/59d1e17fa224934416bbd12130145055871472c8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86618</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Woerner">twoerner</who>
    <bug_when>2020-02-28 02:10:00 +0000</bug_when>
    <thetext>video of talk linked from:
https://fosdem.org/2020/schedule/event/debugging_debuginfod/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88293</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2020-10-03 04:06:13 +0000</bug_when>
    <thetext>Have submitted this as an Outreachy project for the upcoming internship round - co-mentors would be welcome :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88300</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-10-05 02:02:34 +0000</bug_when>
    <thetext>I&apos;ll happily join you in mentoring this Paul, thanks for taking the initiative on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89206</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-02-11 13:46:12 +0000</bug_when>
    <thetext>Dorinda is working on this with Outreachy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89745</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-03-25 13:23:19 +0000</bug_when>
    <thetext>All merged in oe-core with 410083f93e2c986247cf3a2ff5050847e10cf359.

Thanks to Dorinda for the work!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>