public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Henning Schild <henning.schild@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] dpkg-raw: Allow patching and templating
Date: Wed, 10 Jun 2020 19:58:30 +0200	[thread overview]
Message-ID: <753fd517-3900-ad28-762b-a188d71a682e@siemens.com> (raw)
In-Reply-To: <20200610183529.2846b543@md1za8fc.ad001.siemens.net>

On 10.06.20 18:35, Henning Schild wrote:
> Just found this the hard way, LGTM
> 

Yeah, it's a nasty issue. We even released the first IOT2050 image with
this (I left this gremlin behind) - but the binary image itself is fine.
That is because you may see a race in favor of you, allowing the
parallel patch to actually run before the install.

Jan

> Am Tue, 9 Jun 2020 13:57:41 +0200
> schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:
> 
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> We already allow pulling the artifacts from git, so it is also
>> consequent to support patching as well as using templates before
>> installing things.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>  meta/classes/dpkg-raw.bbclass | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/dpkg-raw.bbclass
>> b/meta/classes/dpkg-raw.bbclass index 9d4e8c19..dd7b761f 100644
>> --- a/meta/classes/dpkg-raw.bbclass
>> +++ b/meta/classes/dpkg-raw.bbclass
>> @@ -13,7 +13,7 @@ do_install() {
>>  }
>>  
>>  do_install[cleandirs] = "${D}"
>> -addtask install after do_unpack before do_prepare_build
>> +addtask install after do_patch do_transform_template before
>> do_prepare_build 
>>  do_prepare_build[cleandirs] += "${S}/debian"
>>  do_prepare_build() {
> 

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

  reply	other threads:[~2020-06-10 17:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-09 11:57 Jan Kiszka
2020-06-10  8:06 ` Baurzhan Ismagulov
2020-06-10 16:35 ` Henning Schild
2020-06-10 17:58   ` Jan Kiszka [this message]
2020-06-21 19:04 ` Baurzhan Ismagulov

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=753fd517-3900-ad28-762b-a188d71a682e@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