public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: <isar-users@googlegroups.com>
Subject: Re: [PATCH] Correctly use the bitbake variable S from now on
Date: Thu, 19 Apr 2018 18:56:21 +0200	[thread overview]
Message-ID: <20180419185621.27fc67ec@mmd1pvb1c.ad001.siemens.net> (raw)
In-Reply-To: <b97b7aee-d305-abbf-7f0c-7d8b4add0553@siemens.com>

Am Thu, 19 Apr 2018 13:42:22 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:

> On 2018-04-19 12:36, Henning Schild wrote:
> >>> diff --git a/meta/classes/patch.bbclass
> >>> b/meta/classes/patch.bbclass index 26a0c81..1559359 100644
> >>> --- a/meta/classes/patch.bbclass
> >>> +++ b/meta/classes/patch.bbclass
> >>> @@ -5,7 +5,7 @@ python do_patch() {
> >>>      import subprocess
> >>>  
> >>>      workdir = d.getVar("WORKDIR", True) + "/"
> >>> -    src_dir = workdir + (d.getVar("S", True) or "")
> >>> +    src_dir = (d.getVar("S", True) or "")    
> >>
> >> That's not equivalent, but I'm undecided if it matters. S should
> >> never be unset (bitbake.conf holds the default). So we could just
> >> pull S and let the build fail if that assumption should ever be
> >> wrong.  
> > 
> > I was wondering why the or "" was there in the first place, S was
> > always set even before recipes decided to overwrite it. Some python
> > sniplets seem to return Null on some intermediate steps when using
> > layers. Might that be why you introduced the 'or ""'?  
> 
> Problem is that I don't remember doing this intentionally. But if that
> were the case (intermediate Null state), it should not longer harm us
> now (no more "x + Null").

It was + ed later, but never seem to be Null. V2 on the way.

Henning

> Jan
> 


  reply	other threads:[~2018-04-19 16:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19  9:26 Henning Schild
2018-04-19  9:45 ` Jan Kiszka
2018-04-19 10:36   ` Henning Schild
2018-04-19 11:42     ` Jan Kiszka
2018-04-19 16:56       ` Henning Schild [this message]
2018-04-19 16:58 ` [PATCH v2] " Henning Schild
2018-04-20 11:06   ` Henning Schild
2018-04-20 12:36   ` [PATCH v3] " Henning Schild
2018-04-20 12:37     ` Henning Schild
2018-04-20 12:39       ` Jan Kiszka
2018-04-20 12:43         ` Henning Schild
2018-05-11 15:33     ` Alexander Smirnov

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=20180419185621.27fc67ec@mmd1pvb1c.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox