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 <isar-users@googlegroups.com>
Subject: Re: [PATCH] isar-bootstrap: Remove obsolete and incorrect skipping of rebuild
Date: Wed, 11 Aug 2021 19:13:44 +0200	[thread overview]
Message-ID: <20210811191344.14c9703b@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <e1bb1916-fc44-0cd7-f0fa-909a705e3731@siemens.com>

Am Wed, 11 Aug 2021 16:41:09 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:

> On 11.08.21 13:52, Henning Schild wrote:
> > Am Wed, 11 Aug 2021 13:34:44 +0200
> > schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> >   
> >> From: Jan Kiszka <jan.kiszka@siemens.com>
> >>
> >> This check dates back to the time isar-bootstrap could have run
> >> multiple times for the same distro-arch and was lock-protected to
> >> avoid this. Long history, locks were removed in 1cae951259b3.
> >>
> >> Now this check only prevented proper rebuilding when apt sources or
> >> preferences changed.
> >>
> >> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> >> ---
> >>  .../isar-bootstrap/isar-bootstrap.inc         | 202
> >> +++++++++--------- 1 file changed, 100 insertions(+), 102
> >> deletions(-)
> >>
> >> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> >> b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index
> >> 0edefc5..b858c8c 100644 ---
> >> a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++
> >> b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -256,125
> >> +256,123 @@ isar_bootstrap() { fi
> >>      E="${@ isar_export_proxies(d)}"
> >>      export IS_HOST debootstrap_args E
> >> -    if [ ! -e "${DEPLOY_ISAR_BOOTSTRAP}" ]; then  
> > 
> > Let me guess, you removed that line and the closing "fi", and the
> > rest is git showing a pretty messy diff on the indentation that
> > came with things?
> > 
> > I am almost tempted to ask for two patches ... one that does
> > "whitespace only" and the other one doing the real work. Because the
> > diff presented here can not be reviewed.  
> 
> Just apply and do a "git diff -b HEAD^":
> 
> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index
> 0edefc5..b858c8c 100644 ---
> a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++
> b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -256,7
> +256,7 @@ isar_bootstrap() { fi
>      E="${@ isar_export_proxies(d)}"
>      export IS_HOST debootstrap_args E
> -    if [ ! -e "${DEPLOY_ISAR_BOOTSTRAP}" ]; then
> +
>      sudo rm -rf --one-file-system "${ROOTFSDIR}"
>      if [ "${IS_HOST}" ];then
>          deb_dl_dir_import "${ROOTFSDIR}" "${HOST_DISTRO}"
> @@ -302,8 +302,7 @@ isar_bootstrap() {
>              install -v -m644 "${APTSRCS}" \
>                               "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list"
>          fi
> -            install -v -m644 "${APTSRCS_INIT}" \
> -                                 "${ROOTFSDIR}/etc/apt/sources-list"
> +        install -v -m644 "${APTSRCS_INIT}"
> "${ROOTFSDIR}/etc/apt/sources-list" rm -f

That might just be the culprit. You smuggle in an indent change that
has nothing to do with the commit message.

That alone calls for a second patch, even if the result will be "hard
to review" again.

Henning

> "${ROOTFSDIR}/etc/apt/sources.list" rm -rf
> "${ROOTFSDIR}/var/lib/apt/lists/"* mkdir -p
> "${ROOTFSDIR}/etc/apt/apt.conf.d" @@ -374,7 +373,6 @@
> isar_bootstrap() { # Finalize debootstrap by setting the link in
> deploy ln -Tfsr "${ROOTFSDIR}" "${DEPLOY_ISAR_BOOTSTRAP}"
>  EOSUDO
> -    fi
>      if [ "${IS_HOST}" ];then
>          deb_dl_dir_export "${ROOTFSDIR}" "${HOST_DISTRO}"
>      else
> 
> 
> Jan
> 


  reply	other threads:[~2021-08-11 17:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 11:34 Jan Kiszka
2021-08-11 11:52 ` Henning Schild
2021-08-11 14:41   ` Jan Kiszka
2021-08-11 17:13     ` Henning Schild [this message]
2021-08-11 17:56       ` Jan Kiszka

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=20210811191344.14c9703b@md1za8fc.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