Bug 11420

Summary: archiver's do_unpack_and_patch task is failing for busybox target
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, mikko.ylinen, richard.purdie
Version: 2.3   
Target Milestone: 2.3.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Leonardo Sandoval Gonzalez 2017-04-26 18:48:35 UTC
If the archiver class is introduced (INHERIT += "archiver", no archiver mode, so the default ARCHIVER_MODE[srs]= "patched") then busybox is constructed (bitbake busybox), the following error is observed:


lsandov1@yctb05:~/poky/build> 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        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "master:7a0e795373653886452a7a2992ced10080711c26"

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: 'quilt --quiltrc /home/lsandov1/poky/build/tmp/work/i586-poky-linux/busybox/1.24.1-r0/archiver-work//recipe-sysroot-native/etc/quiltrc push' 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 '1'
Comment 1 Leonardo Sandoval Gonzalez 2017-04-26 19:34:01 UTC
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        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "master:7a0e795373653886452a7a2992ced10080711c26"

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: 'http://downloads.sourceforge.net/libpng/zlib/1.2.11/zlib-1.2.11.tar.xz'. Unpack command PATH="/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" 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 '1'
NOTE: Tasks Summary: Attempted 534 tasks of which 530 didn't need to be rerun and 1 failed.


So apparently, the default archiver mode (patched) is broken.
Comment 2 Mikko Ylinen 2017-06-07 12:09:37 UTC
(In reply to comment #1)
> So apparently, the default archiver mode (patched) is broken.

Duplicate of bug #11584
Comment 3 Ross Burton 2017-07-29 13:39:16 UTC
I've backported all the fixes in master to pyro and have sent them to the list.
Comment 4 Richard Purdie 2018-04-05 08:17:56 UTC
Fixes were backported: http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=pyro&id=2b3db17bd855eb10bbb25fed8697167494ff575a (and preceding patches)