<?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>15379</bug_id>
          
          <creation_ts>2024-01-31 22:03:24 +0000</creation_ts>
          <short_desc>systemd invokes dlopen on libelf/libdw but does not RDEPENDS on it</short_desc>
          <delta_ts>2024-02-05 17:59:51 +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>core</component>
          <version>4.0.15</version>
          <rep_platform>All</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Owens">nick.owens</reporter>
          <assigned_to name="Nick Owens">nick.owens</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>simone.p.weiss</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98075</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Owens">nick.owens</who>
    <bug_when>2024-01-31 22:03:24 +0000</bug_when>
    <thetext>when built with elfutils, systemd (specifically systemd-coredump) will try to dlopen libelf/libdw for symbolization of information from the core.

https://github.com/systemd/systemd/blob/main/src/shared/elf-util.c#L90

the systemd recipe does not pull in libelf/libdw via RDEPENDS or RRECOMMENDS, so these do not end up in the final image for systemd-coredump&apos;s use.

i was carrying this around in a bbappend, but i don&apos;t know if that&apos;s correct.

PACKAGECONFIG[elfutils] = &quot;-Delfutils=true,-Delfutils=false,elfutils,libelf libdw&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98076</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2024-01-31 22:12:25 +0000</bug_when>
    <thetext>I think adding it via reccommends might be appropriate here.

PACKAGECONFIG[elfutils] = &quot;-Delfutils=true,-Delfutils=false,,,libelf libdw&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98077</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2024-01-31 22:23:10 +0000</bug_when>
    <thetext>Here is PACKAGECONFIG syntax for completeness - https://docs.yoctoproject.org/ref-manual/variables.html?highlight=build+deps+f1#term-PACKAGECONFIG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98092</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-01 15:48:22 +0000</bug_when>
    <thetext>Nick, can you please send a patch to the oe-core list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98114</commentid>
    <comment_count>4</comment_count>
    <who name="Nick Owens">nick.owens</who>
    <bug_when>2024-02-01 21:18:15 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #3)
&gt; Nick, can you please send a patch to the oe-core list?

done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98133</commentid>
    <comment_count>5</comment_count>
    <who name="Nick Owens">nick.owens</who>
    <bug_when>2024-02-05 17:59:51 +0000</bug_when>
    <thetext>it appears this was merged. thanks!

https://git.openembedded.org/openembedded-core/commit/?id=f7366f44fd7d0bc5a5b073cec9c68ffd8258903c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>