All of lore.kernel.org
 help / color / mirror / Atom feed
From: "rpjday@crashcourse.ca" <rpjday@crashcourse.ca>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] bin_package.bbclass: emphasize setting of S with "subdir"
Date: Sat, 4 Apr 2020 09:01:35 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.21.2004040856460.14065@localhost.localdomain> (raw)
In-Reply-To: <e67a1e376aacd73587ebc4f6c938b732e87a3fd8.camel@linuxfoundation.org>

On Sat, 4 Apr 2020, Richard Purdie wrote:

> On Sat, 2020-04-04 at 08:00 -0400, rpjday@crashcourse.ca wrote:
> > Clarify the setting of "S" so there is absolutely no confusion.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/meta/classes/bin_package.bbclass b/meta/classes/bin_package.bbclass
> > index cbc9b1fa13..4e74557967 100644
> > --- a/meta/classes/bin_package.bbclass
> > +++ b/meta/classes/bin_package.bbclass
> > @@ -14,8 +14,8 @@
> >  #
> >  # SRC_URI = "http://foo.com/foo-1.0-r1.i586.rpm;subdir=foo-1.0"
> >  #
> > -# Then the files would be unpacked to ${WORKDIR}/foo-1.0, otherwise
> > -# they would be in ${WORKDIR}.
> > +# Then the files would be unpacked to S=${WORKDIR}/foo-1.0, otherwise
> > +# they would be in S=${WORKDIR}.
> >  #
>
> I strongly disagree actually. Setting subdir in SRC_URI does not change
> the value of S. What happens is what the comment says, its unpacked to
> ${WORKDIR}/foo-1.0, or ${WORKDIR}. The value of S remains at whatever
> its set to.

  so if one inherits bin_package and uses a "subdir" option, what is
installed (via tar) is the entire subdir directory structure, as in

  foo-1.0/*

unless the recipe explicitly sets S to match it, is that it? that
might be worth noting in the comments, then.

rday

  parent reply	other threads:[~2020-04-04 13:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-04 12:00 [PATCH] bin_package.bbclass: emphasize setting of S with "subdir" rpjday
2020-04-04 12:49 ` [OE-core] " Richard Purdie
2020-04-04 12:52   ` rpjday
2020-04-04 13:01   ` rpjday [this message]
2020-04-04 13:18     ` Richard Purdie
2020-04-04 13:29       ` rpjday

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=alpine.LFD.2.21.2004040856460.14065@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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.