<?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>12092</bug_id>
          
          <creation_ts>2017-09-15 18:28:33 +0000</creation_ts>
          <short_desc>Sources (/usr/src/debug) missing in -dbg packages when MACHINE=&quot;qemumips&quot;</short_desc>
          <delta_ts>2018-05-10 08:10:11 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.3.2</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>Backport 2.3.n and 2.4.n</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthias Schöpfer">matthias.schoepfer</reporter>
          <assigned_to name="Amanda Brindle">amanda.r.brindle</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>stephano</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>76902</commentid>
    <comment_count>0</comment_count>
      <attachid>4010</attachid>
    <who name="Matthias Schöpfer">matthias.schoepfer</who>
    <bug_when>2017-09-15 18:28:33 +0000</bug_when>
    <thetext>Created attachment 4010
Patches classes/package.bbclass to show warning instead of silently ignoring return of command

Preconditions/Environment
-------------------------
Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;mips-poky-linux&quot;
MACHINE           = &quot;qemumips&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3.2&quot;
TUNE_FEATURES     = &quot;o32 bigendian fpu-hard mips32r2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;pyro:072430b9b3a78b318b66371c36e2986d2ed5cba4&quot;



Triggering Action/Cause
-----------------------
Set MACHINE to qemumips, build any package (say &quot;bitbake bash&quot;)
run
&quot;oe-pkgdata-util list-pkg-files bash-dbg&quot;
List is missing /usr/src/debug

Expectation
-----------
bash-dbg shall have /usr/src/debug sources in it

Actual Result
-------------
bash-dbg is missing /usr/src/debug

Reproducibility
---------------
allways

Hints
---------------
When MACHINE=&quot;qemux86-64&quot; all is fine. When applying attached patch, on qemux86-64 command will fail, but on qemumips not!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77021</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-09-21 14:47:12 +0000</bug_when>
    <thetext>We need to check first if this occurs with master. If so we need to figure out the fix, if not, we need to figure out if there is a fix to backport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77176</commentid>
    <comment_count>2</comment_count>
    <who name="Amanda Brindle">amanda.r.brindle</who>
    <bug_when>2017-09-27 20:44:55 +0000</bug_when>
    <thetext>This does occur on master. I will look more into this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77791</commentid>
    <comment_count>3</comment_count>
    <who name="Amanda Brindle">amanda.r.brindle</who>
    <bug_when>2017-10-24 19:42:50 +0000</bug_when>
    <thetext>&quot;oe-pkgdata-util list-pkg-files bash-dbg&quot; prints out the FILES_INFO variable from the  file tmp/pkgdata/qemu(mips)(x86-64)/runtime/bash-dbg

FILES_INFO is set to whatever is inside of tmp/work/(core2-64-poky-linux)(mips32r2-poky-linux)/bash/4.4-r0/packages-split

packages-split is created based on the contents of tmp/work/(core2-64-poky-linux)(mips32r2-poky-linux)/bash/4.4-r0/package

package is created with the cpio command, which copies the files written inside of tmp/work/(core2-64-poky-linux)(mips32r2-poky-linux)/bash/4.4-r0/debugsources.list into package

debugsources.list is created with the command tmp/work/(core2-64-poky-linux)(mips32r2-poky-linux)/bash/4.4-r0/recipe-sysroot-native/usr/lib/rpm/debugedit

debugsources.list is empty for mips32r2-poky-linux

I believe that this is the root of the problem; debugedit is creating debusources.list, and is creating an empty file for mips32r2-poky-linux. I haven&apos;t used debugedit before, and I&apos;m not sure which steps I should take in debugging it, or if someone more familiar with debugedit can take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78236</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-11-16 10:00:22 +0000</bug_when>
    <thetext>Debugedit is somthing that we didn&apos;t write (rpm folks did), and it does intricate binary file walkover that is not easy to debug.

As we&apos;re transitioning away from debugedit, can you try to see if using the replacement dwarfsrcfiles utility fixes the issue?

Patch was posted here:
http://lists.openembedded.org/pipermail/openembedded-core/2017-November/144369.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78268</commentid>
    <comment_count>5</comment_count>
    <who name="Amanda Brindle">amanda.r.brindle</who>
    <bug_when>2017-11-16 23:28:00 +0000</bug_when>
    <thetext>Alex&apos;s patch fixes this issue. Alex, can you please let us know when this patch is merged? Also, is this something we should backport to pyro?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78273</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-11-17 12:14:13 +0000</bug_when>
    <thetext>If pyro has the same issue, and it is fixed by the patch, then yes, you should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79517</commentid>
    <comment_count>7</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2018-02-20 22:49:08 +0000</bug_when>
    <thetext>Backport for M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80547</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-05-10 08:10:11 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0d5475a3b28d9e2c9273967a03726bb6c427bd11

[if anyone wants this backported I&apos;d suggest mailing list discussion as its an invasive change]</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4010</attachid>
            <date>2017-09-15 18:28:33 +0000</date>
            <delta_ts>2017-09-21 14:43:45 +0000</delta_ts>
            <desc>Patches classes/package.bbclass to show warning instead of silently ignoring return of command</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>925</size>
            <attacher name="Matthias Schöpfer">matthias.schoepfer</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvY2xhc3Nlcy9wYWNrYWdlLmJiY2xhc3MgYi9tZXRhL2NsYXNzZXMv
cGFja2FnZS5iYmNsYXNzCmluZGV4IGEwM2MwNWI5ZjcuLmRmZGQ4ZGUwNTEgMTAwNjQ0Ci0tLSBh
L21ldGEvY2xhc3Nlcy9wYWNrYWdlLmJiY2xhc3MKKysrIGIvbWV0YS9jbGFzc2VzL3BhY2thZ2Uu
YmJjbGFzcwpAQCAtNDI2LDggKzQyNiw4IEBAIGRlZiBjb3B5ZGVidWdzb3VyY2VzKGRlYnVnc3Jj
ZGlyLCBkKToKICAgICAgICAgY21kID0gcHJvY2Vzc2RlYnVnc3JjICUgKHNvdXJjZWZpbGUsIHdv
cmtiYXNlZGlyLCBsb2NhbHNyY19wcmVmaXgsIHdvcmtwYXJlbnRkaXIsI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