From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (hermes.mlbassoc.com [64.234.241.98]) by mx1.pokylinux.org (Postfix) with ESMTP id 27E824C80053 for ; Sat, 12 Feb 2011 13:17:13 -0600 (CST) Received: by mail.chez-thomas.org (Postfix, from userid 999) id E0B601660308; Sat, 12 Feb 2011 12:17:11 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.1 Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id E8D9F16602FD; Sat, 12 Feb 2011 12:17:09 -0700 (MST) Message-ID: <4D56DCB5.2070205@mlbassoc.com> Date: Sat, 12 Feb 2011 12:17:09 -0700 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: Koen Kooi References: <789F9655DD1B8F43B48D77C5D30659733294D0BE@shsmsx501.ccr.corp.intel.com> <789F9655DD1B8F43B48D77C5D306597332C18774@shsmsx501.ccr.corp.intel.com> <1865303E0DED764181A9D882DEF65FB68629835F3E@shsmsx502.ccr.corp.intel.com> <4D56CCCD.6040106@windriver.com> In-Reply-To: Cc: "yocto@yoctoproject.org" Subject: Re: Master build error caused a small typo by commit today : fetch2: unpack revision X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2011 19:17:13 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 02/12/2011 12:08 PM, Koen Kooi wrote: > > Op 12 feb 2011, om 19:09 heeft Mark Hatle het volgende geschreven: > >> On 2/12/11 3:30 AM, Cui, Dexuan wrote: >>> Hi Mark, >>> As Liping said, the following change breaks building xorg-minimal-fonts as destdir is not correct. >>> Can you please explain the actual different between cp and tar here? I think "cp -p" is similar to "tar -x -p" here? >>> >> >> We can revert the change. But the reason for it is tar preserves hard links, >> while cp does not. > > The problem is that people can hit things like this: > > | NOTE: Unpacking /OE/tentacle/sources/angstrom-layers/BSP/TI/recipes-bsp/linux/linux-omap-psp-2.6.32/beagleboard/defconfig to /OE/tentacle/build/tmp-angstrom_2010_x/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r99+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/ > | ERROR: Error executing a python function in /OE/tentacle/sources/angstrom-layers/BSP/TI/recipes-bsp/linux/linux-omap-psp_2.6.32.bb: > | TypeError: %d format: a number is required, not str > | > | ERROR: The stack trace of python calls that resulted in this exception/failure was: > | ERROR: File "base_do_unpack", line 19, in > | ERROR: > | ERROR: File "base_do_unpack", line 14, in base_do_unpack > | ERROR: > | ERROR: File "/OE/tentacle/sources/bitbake/lib/bb/fetch2/__init__.py", line 1015, in unpack > | ERROR: ud.method.unpack(ud, root, self.d) > | ERROR: > | ERROR: File "/OE/tentacle/sources/bitbake/lib/bb/fetch2/__init__.py", line 724, in unpack > | ERROR: cmd = 'tar -cf - -C "%d" -ps . | tar -xf - -C "%s/%s/"' % (file, rootdir, destdir) Does not changing this "%d" to "%s" work? > | ERROR: > | ERROR: The code that was being executed was: > | ERROR: 0015: except bb.fetch2.BBFetchException, e: > | ERROR: 0016: raise bb.build.FuncFailed(e) > | ERROR: 0017: > | ERROR: 0018: > | ERROR: *** 0019:base_do_unpack(d) > | ERROR: 0020: > | ERROR: (file: 'base_do_unpack', lineno: 19, function:) > | ERROR: 0010: rootdir = bb.data.getVar('WORKDIR', localdata, True) > | ERROR: 0011: > | ERROR: 0012: try: > | ERROR: 0013: fetcher = bb.fetch2.Fetch(src_uri, localdata) > | ERROR: *** 0014: fetcher.unpack(rootdir) > | ERROR: 0015: except bb.fetch2.BBFetchException, e: > | ERROR: 0016: raise bb.build.FuncFailed(e) > | ERROR: 0017: > | ERROR: 0018: > | ERROR: (file: 'base_do_unpack', lineno: 14, function: base_do_unpack) > | ERROR: Function 'base_do_unpack' failed > > Not sure what triggers it, but it breaks my build. It could be entirely my own fault for having buggy recipes in a BSP :) > > regards, > > Koen > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------