From: Mark Hatle <mark.hatle@windriver.com>
To: "Cui, Dexuan" <dexuan.cui@intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Master build error caused a small typo by commit today : fetch2: unpack revision
Date: Sat, 12 Feb 2011 12:09:17 -0600 [thread overview]
Message-ID: <4D56CCCD.6040106@windriver.com> (raw)
In-Reply-To: <1865303E0DED764181A9D882DEF65FB68629835F3E@shsmsx502.ccr.corp.intel.com>
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.
So if a directory being copied contain foo, foo1, foo2, and foo3 all hardlinks
of each other, they will end up still being hard links of each other on the
target side.
I previously went through the classes and updated almost all cases of CP to the
tar method. (Obviously without the %d typo...) This reduced over 200MB from
the eglibc build.. (mostly in locale info)
--Mark
> @@ -706,17 +720,17 @@ class FetchMethod(object):
> destdir = "."
> elif not os.access("%s/%s" % (rootdir, destdir), os.F_OK):
> os.makedirs("%s/%s" % (rootdir, destdir))
> - cmd = 'cp -pPR %s %s/%s/' % (file, rootdir, destdir)
> + #cmd = 'cp -pPR %s %s/%s/' % (file, rootdir, destdir)
> + cmd = 'tar -cf - -C "%d" -ps . | tar -xf - -C "%s/%s/"' % (file, rootdir, destdir)
>
>
> Thanks,
> -- Dexuan
>
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Ke, Liping
> Sent: 2011年2月12日 15:53
> To: Ke, Liping; richard.purdie@linuxfoundation.org; mark.hatle@windriver.com
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Master build error caused a small typo by commit today : fetch2: unpack revision
>
> Hi, Mark
>
> After fixing this typo, I found another error when bitbake xorg-minimal-fonts,
> It will report
> ERROR: Function 'org-minial-fonts: LIC_FILES_CHKSUM points to invalid file: ../misc/fonts/alias' failed
>
> I checked the folder of build/tmp/work/all-poky-linux/xorg-minimal-fonts-1_1.0-r0, fonts.alias fonts.dir
> Cursor.pcf.gz we not under misc subfolder as its expectation, but on the outer folder,
> seems the SRC_URI="file://misc" defined in the Xorg-minimal-fonts.bb does not work.
>
> Thanks a lot!
> criping
>
>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-
>> bounces@yoctoproject.org] On Behalf Of Ke, Liping
>> Sent: Saturday, February 12, 2011 1:06 PM
>> To: richard.purdie@linuxfoundation.org; mark.hatle@windriver.com
>> Cc: yocto@yoctoproject.org
>> Subject: [yocto] Master build error caused a small typo by commit
>> today : fetch2: unpack revision
>>
>> Hi, all
>>
>> Just found a small typo which caused built error today. The "%d" (file)
>> should be changed to "%s", otherwise, compile error.
>>
>> Anybody could help to modify the small bug if you're happening sending
>> patches.
>>
>> Thanks a lot for your help!
>> criping
>>
>>
>>
>>
>>
>> author Mark Hatle <mark.hatle@windriver.com> 2011-02-11
>> 17:43:54 (GMT)
>> committer Richard Purdie <richard.purdie@linuxfoundation.org> 2011-
>> 02-12 00:30:29 (GMT)
>> commit 3faa635fd408695dd5b754fda3f6060dd670b81d (patch) (side-by-
>> side diff)
>> tree d0ba5d2d4acca9f7748029116f3a74877ee899c9
>> parent e56f63a2843e5a7d70fd60e0aaed4d962a277da7 (diff)
>> download poky-3faa635fd408695dd5b754fda3f6060dd670b81d.zip
>> poky-3faa635fd408695dd5b754fda3f6060dd670b81d.tar.gz
>> poky-3faa635fd408695dd5b754fda3f6060dd670b81d.tar.bz2
>>
>>
>>
>> @@ -706,17 +720,17 @@ class FetchMethod(object):
>> destdir = "."
>> elif not os.access("%s/%s" % (rootdir,
>> destdir), os.F_OK):
>> os.makedirs("%s/%s" % (rootdir, destdir))
>> - cmd = 'cp -pPR %s %s/%s/' % (file, rootdir,
>> destdir)
>> + #cmd = 'cp -pPR %s %s/%s/' % (file, rootdir,
>> destdir)
>> + cmd = 'tar -cf - -C "%d" -ps . | tar -xf - -C
>> "%s/%s/"' % (file, rootdir, destdir)
>>
>>
>>
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
next prev parent reply other threads:[~2011-02-12 18:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-12 5:05 Master build error caused a small typo by commit today : fetch2: unpack revision Ke, Liping
2011-02-12 7:53 ` Ke, Liping
2011-02-12 9:30 ` Cui, Dexuan
2011-02-12 18:09 ` Mark Hatle [this message]
2011-02-12 19:08 ` Koen Kooi
2011-02-12 19:17 ` Gary Thomas
2011-02-12 22:38 ` Mark Hatle
2011-02-13 1:02 ` Scott Garman
2011-02-13 7:12 ` Ke, Liping
2011-02-13 19:27 ` Mark Hatle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D56CCCD.6040106@windriver.com \
--to=mark.hatle@windriver.com \
--cc=dexuan.cui@intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.