[oe] native glibc-initial-2.9 unpack error

Jan Paesmans jan.paesmans at gmail.com
Wed Jul 7 09:20:09 UTC 2010


Just did a pull from org.openembedded.dev branch and I checked the
content of base.bbclass and the patch was not there.
I'm posting Khem's patch below. Added that to my openembedded and it worked.

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 2da0b7a..b30310d 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -219,14 +219,25 @@ def oe_unpack_file(file, data, url = None):
                       # The "destdir" handling was specifically done
for FILESPATH
                       # items.  So, only do so for file:// entries.
                       if type == "file":
-                               dest = os.path.dirname(path) or "."
+                               if not host:
+                                       dest = os.path.dirname(path) or "."
+                               else:
+                               # this case is for backward
compatiblity with older version
+                               # of bitbake which do not have the fix
+                               #
http://cgit.openembedded.org/cgit.cgi/bitbake/commit/?id=ca257adc587bb0937ea76d8b32b654fdbf4192b8
+                               # this should not be needed once all
releases of bitbake has this fix
+                               # applied/backported
+                                       dest = host +
os.path.dirname(path) or "."
                       else:
                               dest = "."
                       bb.mkdirhier("%s" % os.path.join(os.getcwd(),dest))
                       cmd = 'cp %s %s' % (file,
os.path.join(os.getcwd(), dest))
       if not cmd:
               return True
-       dest = os.path.join(os.getcwd(), path)
+       if not host:
+               dest = os.path.join(os.getcwd(), path)
+       else:
+               dest = os.path.join(os.getcwd(), os.path.join(host, path))
       if os.path.exists(dest):
               if os.path.samefile(file, dest):
                       return True

On Wed, Jul 7, 2010 at 11:03 AM, Frans Meulenbroeks
<fransmeulenbroeks at gmail.com> wrote:
> 2010/7/7 Jan Paesmans <jan.paesmans at gmail.com>:
>> Khem posted a patch for it earlier:
>> [oe] [PATCH][v2] base.bbclass: re-add backward compatibility with
>> bitbake w.r.t decodeurl fix in bitbake
>>
>> I applied that one and it fixed the issue. Also the issue turned up
>> with libpam-base-files.bb and that patch also fixes that one.
>
> Hm. This patch is also in oe. I am at oe head.
> Also verified that my base.bbclass is patched.
> Then removed my tmp dir and build from scratch
> still have the problem.
>
> Frans
>>
>> Regards,
>>
>> Jan
>>
>> On Wed, Jul 7, 2010 at 10:40 AM, Frans Meulenbroeks
>> <fransmeulenbroeks at gmail.com> wrote:
>>> 2010/7/6 Khem Raj <raj.khem at gmail.com>:
>>>> On Tue, Jul 6, 2010 at 11:10 AM, Richard Purdie <rpurdie at rpsys.net> wrote:
>>>>> On Tue, 2010-07-06 at 19:17 +0200, Enrico Scholz wrote:
>>>>>> Jan Paesmans <jan.paesmans at gmail.com> writes:
>>>>>>
>>>>>> > cp: cannot create regular file `/ld.so.conf': Permission denied
>>>>>>
>>>>>> bb.decodeurl (bitbake 1.10) seems to be buggy:
>>>>>>
>>>>>> | >>> import bb
>>>>>> | >>> bb.decodeurl("file://ld.so.conf")
>>>>>> | ('file', '', 'ld.so.conf', '', '', {})
>>>>>> | >>> bb.decodeurl("file://etc/ld.so.conf")
>>>>>> | ('file', 'etc', '/ld.so.conf', '', '', {})
>>>>>> | >>> bb.decodeurl("file://etc/test/ld.so.conf")
>>>>>> | ('file', 'etc', '/test/ld.so.conf', '', '', {})
>>>>>>
>>>>>
>>>>> There was a fix recently added to bitbake master for this:
>>>>>
>>>>> http://git.openembedded.net/cgit.cgi/bitbake/commit/?id=ca257adc587bb0937ea76d8b32b654fdbf4192b8
>>>>
>>>> right. OE needed a fix too
>>>> http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=5ac52371b09a25518b60e23e80c8c812cdea6e36
>>>>
>>>> which means that bitbake fix should also go
>>>> into 1.8 an 1.10 to keep building oe .dev with those versions of bitbake.
>>>
>>> I still have the problem:
>>> glibc 2.5 initial
>>> cp: cannot create regular file `/ld.so.conf': Permission denied
>>>
>>> bitbake 1.10 head, oe head.
>>> verified that the patch for oe is there
>>>
>>> Frans
>>>
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>




More information about the Openembedded-devel mailing list