public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Andreas Reichel <andreas.reichel.ext@siemens.com>
To: "Maxim Yu. Osipov" <mosipov@ilbers.de>
Cc: Claudius Heine <ch@denx.de>,
	claudius.heine.ext@siemens.com, isar-users@googlegroups.com,
	jan.kiszka@siemens.com
Subject: Re: [PATCH v4 1/9] isar-bootstrap-host: disable DISTRO_APT_KEYS usage
Date: Thu, 2 May 2019 14:14:18 +0200	[thread overview]
Message-ID: <20190502121418.GA13916@iiotirae> (raw)
In-Reply-To: <c110ac39-2e09-0714-e5ac-8a5f052c68cd@ilbers.de>

On Tue, Apr 30, 2019 at 06:46:33PM +0300, Maxim Yu. Osipov wrote:
> On 4/30/19 6:22 PM, Andreas Reichel wrote:
> > On Tue, Apr 30, 2019 at 04:30:46PM +0300, Maxim Yu. Osipov wrote:
> > > On 4/30/19 12:34 PM, Andreas Reichel wrote:
> > > > On Fri, Apr 26, 2019 at 11:41:16AM +0300, Maxim Yu. Osipov wrote:
> > > > > Hi Claudius, Andreas,
> > > > > 
> > > > > @Andreas
> > > > > Your input is very welcome at this topic as you were busy with all this APT
> > > > > keys stuff.
> > > > > 
> > > > 
> > > > Thank you. Well in my eyes, Claudius delivers important changes to Isar
> > > > which improve code quality and the build steps as a whole. Also as I
> > > > know him, he is never ever interested in any personal "affairs" whatsoever,
> > > > which I also learnt from his reviews on my code. He has a sharp mind and
> > > > always tries to get out the best of the code up to his knowledge and
> > > > techniques. Furthermore, if he may sometimes sound direct or even
> > > > annoying to some - this is merely a personal question of how one focuses
> > > > on mails. I also did not understand everything he criticized on my code
> > > > in the beginning - but after I understood him, it was always great
> > > > improvement. So, Maxim, I beg that you do not take anything personal on
> > > > any mail, regarding any words or writing style but just focus on the
> > > > code as I always try - which always helps to go on further with the
> > > > project and to improve it. That's my input.
> > > > 
> > > > Andreas
> > > 
> > > I would prefer to focus on technical aspects of the modification under
> > > review. Are you OK with this modification?
> > > 
> > I am OK with these.
> > 
> > However I want MY patch series (version 9) merged before this one,
> > because it is now very well reviewed and weeks old.
> > And please don't argue with failed CI now. Investigating, understanding
> > and fixing CI is a different topic and out of my scope.
> 
> I'll not merge your v9 series - more than one week ago I pointed you to the
> problematic test case  which is easily reproducible (see forwarded email
> below):
> 
> So I expect your feedback/next version of series fixing mentioned problem.
> 
Sorry I overlooked that problem. I just sent the fix with v10.

> 
> -------- Forwarded Message --------
> Subject: Re: [PATCH v9 0/5] Fix usage of additional apt keys and repos
> Date: Mon, 22 Apr 2019 14:22:24 +0200
> From: Maxim Yu. Osipov <mosipov@ilbers.de>
> Organization: ilbers GmbH
> To: Andreas J. Reichel <andreas.reichel.ext@siemens.com>,
> isar-users@googlegroups.com
> 
> Hi Andreas,
> 
> I've tested your series (with the docker use-case example you described in
> last patch in series). It works as described in the default case - without
> local apt caching enabled.
> 
> I've tested it with with signed local apt caching feature enabled.
> 
> The first stage - creation of local repo passed OK -
> 
> bitbake -c cache_base_repo multiconfig:qemuarm64-stretch:isar-image-base
> 
> But on the second stage the build failed (see log below).
> 
> I've double checked 'signed local apt caching feature' works fine in the
> current 'next'.
> 
> My local.conf is attached for convenience.
> 
> Regards,
> Maxim.
> 
> 
> > 
> > Regards,
> > Andreas
> > 
> > > Regards,
> > > Maxim.
> > > 
> > > > > On 4/26/19 9:36 AM, Claudius Heine wrote:
> > > > > > Hi Maxim,
> > > > > > 
> > > > > > Quoting Maxim Yu. Osipov (2019-04-25 20:20:59)
> > > > > > > On 4/25/19 3:44 PM, claudius.heine.ext@siemens.com wrote:
> > > > > > > > From: Claudius Heine <ch@denx.de>
> > > > > > > > 
> > > > > > > > isar-bootstrap-host only supports bootstrapping Debian root file
> > > > > > > > systems. Therefore deactivate any DISTRO_APT_KEYS from other
> > > > > > > > distributions.
> > > > > > > > 
> > > > > > > > Signed-off-by: Claudius Heine <ch@denx.de>
> > > > > > > > ---
> > > > > > > >      meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb | 2 ++
> > > > > > > >      1 file changed, 2 insertions(+)
> > > > > > > > 
> > > > > > > > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
> > > > > > > > index 08b068f..3e96281 100644
> > > > > > > > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
> > > > > > > > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
> > > > > > > > @@ -12,6 +12,8 @@ DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}"
> > > > > > > >      ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}.lock"
> > > > > > > >      require isar-bootstrap.inc
> > > > > > > > +# We only build debian host buildchroot environments
> > > > > > > > +DISTRO_APT_KEYS = ""
> > > > > > > 
> > > > > > >     From the first glance this modification limits functionality.
> > > > > > > It looks like a hack and I would suggest to avoid this modification.
> > > > > > 
> > > > > > Well it is a fix and that limited functionality was already present but
> > > > > > just implicit, hidden behind some bug and the cleanup just made it
> > > > > > appear.
> > > > > 
> > > > > 
> > > > > Could you please point to this hidden, implicit place where mentioned bug
> > > > > persists?
> > > > > 
> > > > > I've looked under meta/recipes-core/isar-bootstrap/
> > > > > 
> > > > > It seems that keyring stuff is quite symmetrical (in terms of host/target):
> > > > > 
> > > > > isar/meta/recipes-core/isar-bootstrap$ grep -ri keyring *
> > > > > isar-bootstrap-host.bb:do_generate_keyring[stamp-extra-info] =
> > > > > "${DISTRO}-${DISTRO_ARCH}"
> > > > > isar-bootstrap-host.bb:addtask bootstrap before do_build after
> > > > > do_generate_keyring
> > > > > isar-bootstrap.inc:APTKEYRING = "${WORKDIR}/apt-keyring.gpg"
> > > > > isar-bootstrap.inc:DEBOOTSTRAP_KEYRING = ""
> > > > > isar-bootstrap.inc:        d.setVar("DEBOOTSTRAP_KEYRING", "--keyring
> > > > > ${APTKEYRING}")
> > > > > isar-bootstrap.inc:            d.setVar("DEBOOTSTRAP_KEYRING", "--keyring
> > > > > ${APTKEYRING}")
> > > > > isar-bootstrap.inc:do_generate_keyring[dirs] = "${DL_DIR}"
> > > > > isar-bootstrap.inc:do_generate_keyring[vardeps] += "DISTRO_APT_KEYS"
> > > > > isar-bootstrap.inc:do_generate_keyring() {
> > > > > isar-bootstrap.inc:           gpg --no-default-keyring --keyring
> > > > > "${APTKEYRING}" \
> > > > > isar-bootstrap.inc:addtask generate_keyring before do_build after do_unpack
> > > > > isar-bootstrap.inc:                               ${DEBOOTSTRAP_KEYRING} \
> > > > > isar-bootstrap.inc: ${DEBOOTSTRAP_KEYRING} \
> > > > > isar-bootstrap-target.bb:do_generate_keyring[stamp-extra-info] =
> > > > > "${DISTRO}-${DISTRO_ARCH}"
> > > > > isar-bootstrap-target.bb:addtask bootstrap before do_build after
> > > > > do_generate_keyring
> > > > > isar/meta/recipes-core/isar-bootstrap$
> > > > > 
> > > > > 
> > > > > And bootstrapping itself (function isar_bootsrap in isar-bootstrap.inc)
> > > > > differs only by passing extra '--arch' to target DISTRO_ARCH. Nothing
> > > > > regarding
> > > > > 
> > > > >               if [ ${IS_HOST} ]; then
> > > > >                   ${DEBOOTSTRAP} $debootstrap_args \
> > > > >                                  ${@get_distro_components_argument(d, True)} \
> > > > >                                  ${DEBOOTSTRAP_KEYRING} \
> > > > >                                  "${@get_distro_suite(d, True)}" \
> > > > >                                  "${ROOTFSDIR}" \
> > > > >                                  "${@get_distro_source(d, True)}"
> > > > > 
> > > > >               else
> > > > >                    "${DEBOOTSTRAP}" $debootstrap_args \
> > > > >                                     --arch="${DISTRO_ARCH}" \
> > > > >                                     ${@get_distro_components_argument(d,
> > > > > False)} \
> > > > >                                     ${DEBOOTSTRAP_KEYRING} \
> > > > >                                     "${@get_distro_suite(d, False)}" \
> > > > >                                     "${ROOTFSDIR}" \
> > > > >                                     "${@get_distro_source(d, False)}"
> > > > >               fi
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > > 
> > > > > > > Some time ago I thought about introduction of HOST_DISTRO_APT_KEYS to
> > > > > > > avoid confusion between target and host apt keys.
> > > > > > 
> > > > > > Good idea. But that would be a new feature/improvement.
> > > > > 
> > > > > Yes. But your series is also improvement, isn't?
> > > > > 
> > > > > I need more arguments for introduction of this limitation.
> > > > > 
> > > > > Maxim.
> > > > > 
> > > > > > Also thanks for looking at the code!
> > > > > > 
> > > > > > Claudius
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > Maxim.
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > >      inherit isar-bootstrap-helper
> > > > > > > >      do_generate_keyring[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
> > > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > -- 
> > > > > > > Maxim Osipov
> > > > > > > ilbers GmbH
> > > > > > > Maria-Merian-Str. 8
> > > > > > > 85521 Ottobrunn
> > > > > > > Germany
> > > > > > > +49 (151) 6517 6917
> > > > > > > mosipov@ilbers.de
> > > > > > > http://ilbers.de/
> > > > > > > Commercial register Munich, HRB 214197
> > > > > > > General Manager: Baurzhan Ismagulov
> > > > > > > 
> > > > > > > -- 
> > > > > > > You received this message because you are subscribed to the Google Groups "isar-users" group.
> > > > > > > To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
> > > > > > > To post to this group, send email to isar-users@googlegroups.com.
> > > > > > > To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/ccc13295-982c-7b25-cfc2-e079033689c0%40ilbers.de.
> > > > > > > For more options, visit https://groups.google.com/d/optout.
> > > > > > 
> > > > > > --
> > > > > > DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> > > > > > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> > > > > > Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de
> > > > > > 
> > > > > >               PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
> > > > > >                                 Keyserver: hkp://pool.sks-keyservers.net
> > > > > > 
> > > > > 
> > > > > 
> > > > > -- 
> > > > > Maxim Osipov
> > > > > ilbers GmbH
> > > > > Maria-Merian-Str. 8
> > > > > 85521 Ottobrunn
> > > > > Germany
> > > > > +49 (151) 6517 6917
> > > > > mosipov@ilbers.de
> > > > > http://ilbers.de/
> > > > > Commercial register Munich, HRB 214197
> > > > > General Manager: Baurzhan Ismagulov
> > > > 
> > > 
> > > 
> > > -- 
> > > Maxim Osipov
> > > ilbers GmbH
> > > Maria-Merian-Str. 8
> > > 85521 Ottobrunn
> > > Germany
> > > +49 (151) 6517 6917
> > > mosipov@ilbers.de
> > > http://ilbers.de/
> > > Commercial register Munich, HRB 214197
> > > General Manager: Baurzhan Ismagulov
> > 
> 
> 
> -- 
> Maxim Osipov
> ilbers GmbH
> Maria-Merian-Str. 8
> 85521 Ottobrunn
> Germany
> +49 (151) 6517 6917
> mosipov@ilbers.de
> http://ilbers.de/
> Commercial register Munich, HRB 214197
> General Manager: Baurzhan Ismagulov

-- 
Andreas Reichel
Dipl.-Phys. (Univ.)
Software Consultant

Andreas.Reichel@tngtech.com, +49-174-3180074
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterfoehring
Geschaeftsfuehrer: Henrik Klagges, Dr. Robert Dahlke, Gerhard Mueller
Sitz: Unterfoehring * Amtsgericht Muenchen * HRB 135082


  reply	other threads:[~2019-05-02 12:14 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 13:44 [PATCH v4 0/9] Cleanup rootfs creation claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 1/9] isar-bootstrap-host: disable DISTRO_APT_KEYS usage claudius.heine.ext
2019-04-25 18:20   ` Maxim Yu. Osipov
2019-04-26  7:36     ` Claudius Heine
2019-04-26  8:41       ` Maxim Yu. Osipov
2019-04-26 10:39         ` Claudius Heine
2019-04-26 10:45           ` Claudius Heine
2019-04-26 11:22             ` Maxim Yu. Osipov
2019-04-26 11:47               ` Jan Kiszka
2019-04-30  9:34         ` Andreas Reichel
2019-04-30 13:30           ` Maxim Yu. Osipov
2019-04-30 15:22             ` Andreas Reichel
2019-04-30 15:30               ` Jan Kiszka
2019-04-30 15:46               ` Maxim Yu. Osipov
2019-05-02 12:14                 ` Andreas Reichel [this message]
2019-04-26 11:31       ` Jan Kiszka
2019-04-26 11:50         ` Jan Kiszka
2019-05-14  9:22           ` Fwd: " Maxim Yu. Osipov
2019-05-14 11:32           ` Claudius Heine
2019-05-14 11:35             ` Claudius Heine
2019-04-25 13:44 ` [PATCH v4 2/9] isar-bootstrap-helper: move 'HOST_ARCH' and 'HOST_DISTRO' to base.bbclass claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 3/9] move 'HOST_DISTRO_APT_SOURCES' from bootstrap-helper to isar-bootstrap claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 4/9] buildchroot.bbclass: only cross build if HOST_ARCH != DISTRO_ARCH claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 5/9] isar-bootstrap/buildchroot/sdkchroot: refactor PF and WORKDIR claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 6/9] bitbake.conf: remove unneeded and differently used variables claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 7/9] image.bbclass: make IMAGE_ROOTFS overwritable claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 8/9] bitbake.conf: set default QEMU_ARCH variables claudius.heine.ext
2019-04-25 13:44 ` [PATCH v4 9/9] buildchroot/configscript: make creation of builder uid/gid idempotent claudius.heine.ext

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=20190502121418.GA13916@iiotirae \
    --to=andreas.reichel.ext@siemens.com \
    --cc=ch@denx.de \
    --cc=claudius.heine.ext@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=mosipov@ilbers.de \
    /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