From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (dan.rpsys.net [93.97.175.187]) by mail.openembedded.org (Postfix) with ESMTP id EEE4061631 for ; Fri, 11 Oct 2013 21:49:40 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r9BLmdo6001657; Fri, 11 Oct 2013 22:48:39 +0100 X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id X7vhn3w2Hp8L; Fri, 11 Oct 2013 22:48:39 +0100 (BST) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r9BLlDs1001608 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Fri, 11 Oct 2013 22:47:54 +0100 Message-ID: <1381528029.29912.187.camel@ted> From: Richard Purdie To: ml@communistcode.co.uk Date: Fri, 11 Oct 2013 22:47:09 +0100 In-Reply-To: <52582427.5000108@communistcode.co.uk> References: <5258178A.9060606@communistcode.co.uk> <1381507693.29912.185.camel@ted> <52582427.5000108@communistcode.co.uk> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: Nasty tar breakage X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2013 21:49:41 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2013-10-11 at 17:15 +0100, Jack Mitchell wrote: > On 11/10/13 17:08, Richard Purdie wrote: > > On Fri, 2013-10-11 at 16:21 +0100, Jack Mitchell wrote: > >> I upgraded my host distribution today which pulled in tar 1.27 [1] and > >> caused a nasty breakage. Downgrading to tar 1.26 fixed the problem, I > >> would expect this is something we want to fix before 1.5 goes out the door? > >> > >> DEBUG: Executing python function sstate_task_prefunc > >> DEBUG: Python function sstate_task_prefunc finished > >> DEBUG: Executing python function do_populate_sysroot > >> DEBUG: Executing shell function sysroot_stage_all > >> tar: --same-order option cannot be used with -c > >> Try 'tar --help' or 'tar --usage' for more information. > >> tar: This does not look like a tar archive > >> tar: Exiting with failure status due to previous errors > >> WARNING: > >> /home/jack/Work/oe-core.git/test-build/tmp-eglibc/work/x86_64-linux/quilt-native/0.60-r0/temp/run.sysroot_stage_all.21827:1 > >> exit 2 from > >> tar -xf - -C "$dest" > >> DEBUG: Python function do_populate_sysroot finished > >> ERROR: Function failed: sysroot_stage_all (log file is located at > >> /home/jack/Work/oe-core.git/test-build/tmp-eglibc/work/x86_64-linux/quilt-native/0.60-r0/temp/log.do_populate_sysroot.21827) > >> > >> [1] https://lists.gnu.org/archive/html/info-gnu/2013-10/msg00004.html > > Just to be clear, the command is: > > > > tar -cf - -C "$src" -ps . | tar -xf - -C "$dest" > > > > from staging.bbclass. The fix is probably just to drop the s from the > > -ps. > > > > Cheers, > > > > Richard > > > > I'm afraid that doesn't work: > > Exception: CalledProcessError: Command 'cd > /home/jack/Work/oe-core.git/test-build/tmp-eglibc/work/x86_64-linux/quilt-native/0.60-r0/sysroot-destdir/home/jack/Work/oe-core.git/test-build/tmp-eglibc/sysroots/x86_64-linux; > find . -type d -print | tar -cf - -C > /home/jack/Work/oe-core.git/test-build/tmp-eglibc/work/x86_64-linux/quilt-native/0.60-r0/sysroot-destdir/home/jack/Work/oe-core.git/test-build/tmp-eglibc/sysroots/x86_64-linux > -ps --files-from - | tar -xf - -C > /home/jack/Work/oe-core.git/test-build/tmp-eglibc/sysroots/x86_64-linux' > returned non-zero exit status 2 with output tar: --same-order option > cannot be used with -c > Try 'tar --help' or 'tar --usage' for more information. > tar: This does not look like a tar archive > tar: Exiting with failure status due to previous errors > find: `standard output': Broken pipe > find: write error > > Tar command in staging.bbclass > > tar -cf - -C "$src" -p . | tar -xf - -C "$dest" I think this command got copy and pasted into a few parts of the system so we'll need to hunt them all down and fix them. In classes alone: $ grep \\-ps * -R libc-package.bbclass: tar -cf - -C ${LOCALETREESRC}${datadir} -ps i18n | tar -xf - -C $treedir/${datadir} libc-package.bbclass: tar -cf - -C ${LOCALETREESRC}${base_libdir} -ps . | tar -xf - -C $treedir/${base_libdir} libc-package.bbclass: tar -cf - -C ${STAGING_DIR_NATIVE}/${prefix_native}/${base_libdir} -ps libgcc_s.* | tar -xf - -C $treedir/${base_libdir} libc-package.bbclass: tar -cf - -C $treedir/$parent -ps $(basename ${localedir}) | tar -xf - -C ${PKGD}$parent package.bbclass: cmd = 'tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar) populate_sdk_deb.bbclass: tar -cf - -C ${STAGING_ETCDIR_NATIVE} -ps apt | tar -xf - -C ${target_rootfs}/etc staging.bbclass: tar -cf - -C "$src" -ps . | tar -xf - -C "$dest" Cheers, Richard