[OE-core] [PATCH] package_rpm.bbclass: support packaging of symlinks to directories
Dan McGregor
danismostlikely at gmail.com
Wed Feb 18 03:40:45 UTC 2015
On 17 Feb 2015 11:09, "Mark Hatle" <mark.hatle at windriver.com> wrote:
>
> On 2/17/15 10:57 AM, Christopher Larson wrote:
> >
> > On Tue, Feb 17, 2015 at 9:54 AM, Mark Hatle <mark.hatle at windriver.com
> > <mailto:mark.hatle at windriver.com>> wrote:
> >
> > On 2/17/15 7:42 AM, Patrick Ohly wrote:
> > > os.walk() returns symlinks to directories in the "dirs" lists,
> > > but then never enters them by default. As a result, the old
> > > code applied neither the directory handling (because that
> > > is active once a directory gets entered) nor the file handling,
> > > and thus never packaged such symlinks.
> > >
> > > The fix is simple: find such special directory entries and move
> > > them to the "files" list.
> >
> > I'm curious, what is the problem that is being fixed with this.
> >
> > Normally you don't want to walk into symlinks to directories, as
either you want
> > to capture the symlink itself -- or the symlink is pointing to
something you
> > don't have access to when packaging (i.e. /proc).
> >
> >
> > This patch doesn't make it walk into the directory symlinks, it moves
them into
> > the files list rather than the dirs list so they'll be captured
themselves, as
> > far as I can tell from reading it.
>
> Ok.. I missed that bit.. I'm still curious what this fixes.
>
I haven't tried myself, but I expect it helps with the /usr merge.
> --Mark
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150217/9d8c5b35/attachment-0002.html>
More information about the Openembedded-core
mailing list