<?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>11420</bug_id>
          
          <creation_ts>2017-04-26 18:48:35 +0000</creation_ts>
          <short_desc>archiver&apos;s do_unpack_and_patch task is failing for busybox target</short_desc>
          <delta_ts>2018-04-05 08:17:56 +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>2.3</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>2.3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mikko.ylinen</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>72871</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-26 18:48:35 +0000</bug_when>
    <thetext>If the archiver class is introduced (INHERIT += &quot;archiver&quot;, no archiver mode, so the default ARCHIVER_MODE[srs]= &quot;patched&quot;) then busybox is constructed (bitbake busybox), the following error is observed:


lsandov1@yctb05:~/poky/build&gt; bitbake busybox
Parsing recipes: 100% |#########################################################################################################################################################################################################| Time: 0:00:03
Parsing of 830 .bb files complete (0 cached, 830 parsed). 1299 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal-4.8&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;master:7a0e795373653886452a7a2992ced10080711c26&quot;

Initialising tasks: 100% |######################################################################################################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |##############################################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: busybox-1.24.1-r0 do_unpack_and_patch: patched
ERROR: busybox-1.24.1-r0 do_unpack_and_patch: Command Error: &apos;quilt --quiltrc /home/lsandov1/poky/build/tmp/work/i586-poky-linux/busybox/1.24.1-r0/archiver-work//recipe-sysroot-native/etc/quiltrc push&apos; exited with 0  Output:
/bin/sh: quilt: command not found
ERROR: busybox-1.24.1-r0 do_unpack_and_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/lsandov1/poky/build/tmp/work/i586-poky-linux/busybox/1.24.1-r0/temp/log.do_unpack_and_patch.21223
ERROR: Task (/home/lsandov1/poky/meta/recipes-core/busybox/busybox_1.24.1.bb:do_unpack_and_patch) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72872</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-26 19:34:01 +0000</bug_when>
    <thetext>The problem  is also present on zlib

 bitbake zlib
Loading cache: 100% |###########################################################################################################################################################################################################| Time: 0:00:00
Loaded 1299 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal-4.8&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;master:7a0e795373653886452a7a2992ced10080711c26&quot;

Initialising tasks: 100% |######################################################################################################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |##############################################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: zlib-1.2.11-r0 do_unpack_and_patch: Unpack failure for URL: &apos;http://downloads.sourceforge.net/libpng/zlib/1.2.11/zlib-1.2.11.tar.xz&apos;. Unpack command PATH=&quot;/home/lsandov1/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/lsandov1/poky/scripts:/home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/archiver-work//recipe-sysroot-native/usr/bin/i586-poky-linux:/home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/archiver-work//recipe-sysroot/usr/bin/crossscripts:/home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/archiver-work//recipe-sysroot-native/usr/sbin:/home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/archiver-work//recipe-sysroot-native/usr/bin:/home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/archiver-work//recipe-sysroot-native/sbin:/home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/archiver-work//recipe-sysroot-native/bin:/home/lsandov1/poky/bitbake/bin:/home/lsandov1/poky/build/tmp/hosttools&quot; xz -dc /home/lsandov1/downloads/zlib-1.2.11.tar.xz | tar x --no-same-owner -f - failed with return value 2
ERROR: zlib-1.2.11-r0 do_unpack_and_patch: Function failed: base_do_unpack
ERROR: Logfile of failure stored in: /home/lsandov1/poky/build/tmp/work/i586-poky-linux/zlib/1.2.11-r0/temp/log.do_unpack_and_patch.11346
ERROR: Task (/home/lsandov1/poky/meta/recipes-core/zlib/zlib_1.2.11.bb:do_unpack_and_patch) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 534 tasks of which 530 didn&apos;t need to be rerun and 1 failed.


So apparently, the default archiver mode (patched) is broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73795</commentid>
    <comment_count>2</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-06-07 12:09:37 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; So apparently, the default archiver mode (patched) is broken.

Duplicate of bug #11584</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75428</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-07-29 13:39:16 +0000</bug_when>
    <thetext>I&apos;ve backported all the fixes in master to pyro and have sent them to the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80122</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-04-05 08:17:56 +0000</bug_when>
    <thetext>Fixes were backported: http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=pyro&amp;id=2b3db17bd855eb10bbb25fed8697167494ff575a (and preceding patches)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>