[Bug 4963] New: package.bbclass - uncaught exception from os.stat() on symbolic link

bugzilla-daemon at amethyst.openembedded.net bugzilla-daemon at amethyst.openembedded.net
Tue Jan 6 17:23:03 UTC 2009


http://bugs.openembedded.net/show_bug.cgi?id=4963

           Summary: package.bbclass - uncaught exception from os.stat() on
                    symbolic link
    Classification: Unclassified
           Product: Openembedded
           Version: unspecified
          Platform: Other
               URL: https://docs.openmoko.org/trac/ticket/2199
        OS/Version: other
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: org.openembedded.stable
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: chrisfriedt at gmail.com


Created an attachment (id=13743)
 --> (http://bugs.openembedded.net/attachment.cgi?id=13743)
openembedded-package-bbclass-ignore-errno-EACCES.patch

Hi - I'm actually using the openembedded version for OpenMoko that is fetched
with MokoMakefile, and I'm not sure how closely that tracks the official
openembedded repo, but I thought I would chance it and submit the bug anyway.

A short description of the problem:

* openembedded/classes/package.bbclass has an uncaught exception (OSError) that
it should catch and ignore. Namely, errno.EACCES on symbolic links.

The problem probably stems from Python's os.stat(). If there is a symbolic link
'x', that points to location 'y', os.stat() actually follows the link and tries
to stat the target of the link instead of the link itself.

I don't claim to be a python expert, and I have no intention of becoming one,
but I've included a patch that fixes my problem which should at least
illustrate the solution. Perhaps another, more python proficient, developer can
offer a better solution that uses os.lstat() instead.

Please also check the OpenMoko URL given above to see the original bug and
build log.

-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-issues mailing list