<?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>15151</bug_id>
          
          <creation_ts>2023-06-21 02:40:25 +0000</creation_ts>
          <short_desc>Recipes using RPM fail to extract</short_desc>
          <delta_ts>2023-09-14 15:08:33 +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>4.0.10</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0.13</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Will Bodley">will</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>95765</commentid>
    <comment_count>0</comment_count>
      <attachid>4956</attachid>
    <who name="Will Bodley">will</who>
    <bug_when>2023-06-21 02:40:25 +0000</bug_when>
    <thetext>Created attachment 4956
Patch to resolve issue

Hi

We just upgraded from dunfell to kirkstone and noticed some differences in what seems to be the RPM compression, for our use case we have an internal source recipe pulling using git, and an external recipe prebuilt that uses the RPM generated by the internal source recipe. Moving to kirkstone seems to break the unpacking of the RPMs.

I&apos;ve attached the patch I&apos;ve used to work around the issue, let me know if there is a better way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95771</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-06-21 09:24:35 +0000</bug_when>
    <thetext>There is a patch on the mailing list for this which upgrades the rpm2cpio.sh script but there seems to be some execution permission issue which we need to fix before it can merge. Revising that patch is probably the next step.

Note that we added unzstd to HOSTTOOLS so the zstd dependency whilst correct, isn&apos;t needed with current master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95798</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-06-22 14:38:25 +0000</bug_when>
    <thetext>Fixed in master https://git.yoctoproject.org/poky/commit/?id=cc2c3b1b62070db2b84d967ce20a1651fd50b7fb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95800</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-06-22 14:41:57 +0000</bug_when>
    <thetext>Steve to review what&apos;s in master and consider back-porting after a bit of soak time in master. There may be problems with meta-oe or other layers.. -- YP bug reivew</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96413</commentid>
    <comment_count>4</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2023-09-14 15:08:33 +0000</bug_when>
    <thetext>Fixed:

https://git.yoctoproject.org/poky/commit/?h=kirkstone&amp;id=bbd85cd9f4d7bd336d1739d5b23bbcaab7b248ef</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4956</attachid>
            <date>2023-06-21 02:40:25 +0000</date>
            <delta_ts>2023-06-21 02:40:25 +0000</delta_ts>
            <desc>Patch to resolve issue</desc>
            <filename>0001-Add-support-for-unzstd-in-sysroot-for-unpacking-rpm-.patch</filename>
            <type>text/plain</type>
            <size>1974</size>
            <attacher name="Will Bodley">will</attacher>
            
              <data encoding="base64">RnJvbSA5MDE0OWRhYzUwZjc1MGFlYzE4NTg4MmVmYzYwY2I1NDdlMGM1NWIzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBXaWxsIEJvZGxleSA8d2lsbEB0ZWtuaXF1ZS5jb20+CkRhdGU6
IFdlZCwgMjEgSnVuIDIwMjMgMTQ6Mzk6MDkgKzEyMDAKU3ViamVjdDogW1BBVENIXSBBZGQgc3Vw
cG9ydCBmb3IgdW56c3RkIGluIHN5c3Jvb3QgZm9yIHVucGFja2luZyBycG0gcGFja2FnZXMKCi0t
LQogbWV0YS9jbGFzc2VzL2Jhc2UuYmJjbGFzcyB8IDEgKwogc2NyaXB0cy9ycG0yY3Bpby5zaCAg
ICAgICB8IDcgKysrLS0tLQogMiBmaWxlcyBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDQgZGVs
ZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbWV0YS9jbGFzc2VzL2Jhc2UuYmJjbGFzcyBiL21ldGEv
Y2xhc3Nlcy9iYXNlLmJiY2xhc3MKaW5kZXggYjE1YzU4MzliNi4uMTRhNzA2MDczZCAxMDA2NDQK
LS0tIGEvbWV0YS9jbGFzc2VzL2Jhc2UuYmJjbGFzcworKysgYi9tZXRhL2NsYXNzZXMvYmFzZS5i
YmNsYXNzCkBAIC02OTQsNiArNjk0LDcgQEAgcHl0aG9uICgpIHsKICAgICAgICAgIyBTb21lIHJw
bSBmaWxlcyBtYXkgYmUgY29tcHJlc3NlZCBpbnRlcm5hbGx5IHVzaW5nIHh6IChmb3IgZXhhbXBs
ZSwgcnBtcyBmcm9tIEZlZG9yYSkKICAgICAgICAgZWxpZiBwYXRoLmVuZHN3aXRoKCcucnBtJyk6
CiAgICAgICAgICAgICBkLmFwcGVuZFZhckZsYWcoJ2RvX3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