[oe-commits] [Bug 5426] New: SRC_URI file:// symlink looses link name
bugzilla-daemon at git.openembedded.org
bugzilla-daemon at git.openembedded.org
Tue Mar 30 23:07:17 UTC 2010
http://bugs.openembedded.org/show_bug.cgi?id=5426
Summary: SRC_URI file:// symlink looses link name
Product: Openembedded
Version: org.openembedded.dev
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: unspecified
AssignedTo: openembedded-commits at lists.openembedded.org
ReportedBy: jfaith7 at gmail.com
A recipe with a file:// SRC_URI which is a symbolic link to a directory is
copied in the temp dir during do_unpack as the link target, not the name of the
link itself.
For example:
Create a link with: ln -s a_dir link_to_a_dir
And put in the package recipe:
SRC_URI="file://link_to_a_dir"
The directory gets copied as "a_dir" and not "link_to_a_dir".
This seems to be caused by the line "local = os.path.realpath(local)" in
base_do_unpack() in classes/base.bbclass which will convert local to "a_dir".
If the local var were passed unconverted into oe_unpack_file(), then it could
trim the path of the link before calling os.path.realpath() to preserve the
link name.
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-commits
mailing list