From: Jan Kiszka <jan.kiszka@siemens.com>
To: Henning Schild <henning.schild@siemens.com>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH] Correctly use the bitbake variable S from now on
Date: Thu, 19 Apr 2018 13:42:22 +0200 [thread overview]
Message-ID: <b97b7aee-d305-abbf-7f0c-7d8b4add0553@siemens.com> (raw)
In-Reply-To: <20180419123605.622b6b1c@mmd1pvb1c.ad001.siemens.net>
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").
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2018-04-19 11:42 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 [this message]
2018-04-19 16:56 ` Henning Schild
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=b97b7aee-d305-abbf-7f0c-7d8b4add0553@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.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