[OE-core] package.bbclass: polulate_packages error "file exists"

Samuel Stirtzel s.stirtzel at googlemail.com
Thu Jan 17 11:39:42 UTC 2013


Hi,

while working on a makeover of some kde recipes the following error occurred:

OSError: [Errno 17] File exists

ERROR: The stack trace of python calls that resulted in this
exception/failure was:
ERROR:   File "populate_packages", line 177, in <module>
ERROR:
ERROR:   File "populate_packages", line 97, in populate_packages
ERROR:
ERROR: The code that was being executed was:
ERROR:      0173:                bb.note("%s contains dangling symlink
to %s" % (pkg, l))
ERROR:      0174:        d.setVar('RDEPENDS_' + pkg,
bb.utils.join_deps(rdepends, commasep=False))
ERROR:      0175:
ERROR:      0176:
ERROR:  *** 0177:populate_packages(d)
ERROR:      0178:
ERROR: [From file: 'populate_packages', lineno: 177, function: <module>]
ERROR:      0093:
ERROR:      0094:            mkdir_recurse(dvar, root, os.path.dirname(file))
ERROR:      0095:            fpath = os.path.join(root,file)
ERROR:      0096:            if not os.path.islink(file):
ERROR:  *** 0097:                os.link(file, fpath)
ERROR:      0098:                fstat = os.stat(file)
ERROR:      0099:                os.chmod(fpath, fstat.st_mode)
ERROR:      0100:                os.chown(fpath, fstat.st_uid, fstat.st_gid)
ERROR:      0101:                continue
ERROR: [From file: 'populate_packages', lineno: 97, function: populate_packages]
ERROR: Function failed: populate_packages


Is there a more descriptive explanation of what went wrong?
You can see the packaging part of the recipe at: http://pastebin.com/us4LbuSt
"uniq -c" shows no duplicates.

Any idea how to resolve this issue?


--
Regards
Samuel




More information about the Openembedded-core mailing list