All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Christ <s.christ@phytec.de>
To: akuster <akuster@mvista.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH krogoth+] fetch2: fix unpack of symbolic links
Date: Thu, 23 Jun 2016 13:00:38 +0200	[thread overview]
Message-ID: <20160623110038.GD2346@lws-christ> (raw)
In-Reply-To: <576AB396.3020207@mvista.com>

Hi Armin,

On Wed, Jun 22, 2016 at 08:49:42AM -0700, akuster wrote:
> Does the "Krogoth+" mean "master" too?
> 
> - armin
> 

Yes. The patch applies on master and krogoth.

Mit freundlichen Grüßen / Kind regards,
	Stefan Christ

> On 06/22/2016 02:34 AM, Stefan Christ wrote:
> > Files in the download directory can be symbolic links to the real file.
> > The fetcher must copy the real file instead of copying the symbolic
> > link. Otherwise other tasks will fail, like patching, or the recipe will
> > modify files in the download directory.
> > 
> > This patch fixes commit 865d2fef ("bitbake: fetch2: fixes copying of
> > file://dir; subdir=foo, bug 6128 and bug 6129").
> > 
> > Signed-off-by: Stefan Christ <s.christ@phytec.de>
> > ---
> >  bitbake/lib/bb/fetch2/__init__.py | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
> > index e8fbe89..a1819e7 100644
> > --- a/bitbake/lib/bb/fetch2/__init__.py
> > +++ b/bitbake/lib/bb/fetch2/__init__.py
> > @@ -1423,7 +1423,9 @@ class FetchMethod(object):
> >                      if urlpath.find("/") != -1:
> >                          destdir = urlpath.rsplit("/", 1)[0] + '/'
> >                          bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir))
> > -                cmd = 'cp -fpPR %s %s' % (file, destdir)
> > +                # Use -L to always resolve symbolic links. Files in download
> > +                # directory can be links to the real file.
> > +                cmd = 'cp -fpLR %s %s' % (file, destdir)
> >  
> >          if not cmd:
> >              return
> > 


  reply	other threads:[~2016-06-23 11:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-22  9:34 [PATCH krogoth+] fetch2: fix unpack of symbolic links Stefan Christ
2016-06-22 15:49 ` akuster
2016-06-23 11:00   ` Stefan Christ [this message]
2016-06-23 20:50     ` Leonardo Sandoval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160623110038.GD2346@lws-christ \
    --to=s.christ@phytec.de \
    --cc=akuster@mvista.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.