public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* package errors
@ 2013-02-11 18:29 Khem Raj
  2013-02-11 19:29 ` Enrico Scholz
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2013-02-11 18:29 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer, Enrico Scholz

Hi Enrico

I am seeing below errors after this commit to OE-Core

commit f2e16c655286aab465054db6727fa3365bef3124
Author: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Date:   Sun Feb 10 13:41:47 2013 +0100

    package.bbclass: use oe.path.realpath()

    oe.path.realpath() provides are common and more correct implementation
    for resolving symlinks within sysroot. Use it.

    Old implementation suffered from lot of problems; e.g.

    * redundant code

    * calls 'os.stat()' which references files on host; this can give wrong
      results about existing/non-existing and can cause EPERM (instead of
      the catched ENONENT) exceptions

    * does not deal with special cases like '..' leaving the sysroot.

    (From OE-Core rev: ec2aab09769f4b6817d74d2175afa2b7c7598750)

    Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>


ERROR: The stack trace of python calls that resulted in this
exception/failure was:
ERROR:   File "package_fixsymlinks", line 50, in <module>
ERROR:
ERROR:   File "package_fixsymlinks", line 22, in package_fixsymlinks
ERROR:
ERROR: The code that was being executed was:
ERROR:      0046:                rdepends[p] = []
ERROR:      0047:        d.setVar('RDEPENDS_' + pkg,
bb.utils.join_deps(rdepends, commasep=False))
ERROR:      0048:
ERROR:      0049:
ERROR:  *** 0050:package_fixsymlinks(d)
ERROR:      0051:
ERROR: [From file: 'package_fixsymlinks', lineno: 50, function: <module>]
ERROR:      0018:                    os.lstat(rtarget)
ERROR:      0019:                except OSError, (err, strerror):
ERROR:      0020:                    if err != errno.ENOENT:
ERROR:      0021:                        raise
ERROR:  *** 0022:
dangling_links[pkg].append(os.path.normpath(rtarget[len(inst_root):]))
ERROR:      0023:
ERROR:      0024:    newrdepends = {}
ERROR:      0025:    for pkg in dangling_links:
ERROR:      0026:        for l in dangling_links[pkg]:
ERROR: [From file: 'package_fixsymlinks', lineno: 22, function:
package_fixsymlinks]
ERROR: Function failed: package_fixsymlinks
ERROR: Logfile of failure stored in:
/b/kraj/next/poky/build/tmp-eglibc/work/ppce500v2-poky-linux-gnuspe/lsof/4.87-r0/temp/log.do_package.26620
ERROR: Task 590
(/b/kraj/next/poky/meta/recipes-extended/lsof/lsof_4.87.bb,
do_package) failed with exit code '1'



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: package errors
  2013-02-11 18:29 package errors Khem Raj
@ 2013-02-11 19:29 ` Enrico Scholz
  0 siblings, 0 replies; 2+ messages in thread
From: Enrico Scholz @ 2013-02-11 19:29 UTC (permalink / raw)
  To: openembedded-core

Khem Raj <raj.khem-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I am seeing below errors after this commit to OE-Core
>
> commit f2e16c655286aab465054db6727fa3365bef3124

Sorry; before I committed them I did a small code cleanup and did not
wait for the results of image builds (changes in package.bbclass cause
rebuild of whole distribution).

I posted two patches

  lib/oe/path.py: support missing directory components in realpath()
  package.bbclass: support dangling path components

which should fix it.


Enrico



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-11 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11 18:29 package errors Khem Raj
2013-02-11 19:29 ` Enrico Scholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox