public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Claudius Heine <claudius.heine.ext@siemens.com>
To: Alexander Smirnov <asmirnov@ilbers.de>,
	isar-users@googlegroups.com, Baurzhan Ismagulov <ibr@radix50.net>
Subject: Re: [PATCH 2/2] centralize multistrap configuration generation
Date: Thu, 15 Feb 2018 14:20:30 +0100	[thread overview]
Message-ID: <b8836d58-c295-a218-9be2-64bdca5b24da@siemens.com> (raw)
In-Reply-To: <1619976eb38.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de>

On 02/15/2018 01:37 PM, Alexander Smirnov wrote:
> 
> Claudius Heine <claudius.heine.ext@siemens.com> 15 февраля 2018 г. 
> 15:08:50 написал:
> 
>> Hi Baurzhan,
>>
>> On 02/15/2018 12:42 PM, Baurzhan Ismagulov wrote:
>>> On Wed, Feb 14, 2018 at 02:15:09PM +0100, 
>>> claudius.heine.ext@siemens.com wrote:
>>>> From: Claudius Heine <ch@denx.de>
>>>>
>>>> Previous there was redundant code between the buildchroot and
>>>> isar-image-base recipe.
>>>>
>>>> This patch moves the generation of the multistrap configuration to a
>>>> central python script that can be parametrized by both recipes.
>>>>
>>>> Signed-off-by: Claudius Heine <ch@denx.de>
>>>> ---
>>>>   .../recipes-core/images/files/multistrap.conf.in   | 38 ----------
>>>>   meta/lib/isar/multistrap.py                        | 80 
>>>> ++++++++++++++++++++++
>>>>   .../buildchroot/files/multistrap.conf.in           | 37 ----------
>>>
>>> Could you please post two final multistrap.confs you'd like to get 
>>> with your
>>> changes?
>>
>> 'like to get'? I don't want to get any other multistrap.conf than
>> before. This is not a change of the multistrap.conf files, but just how
>> they are generated. The python configparser created ini-file format only
>> puts spaces around the '=' characters, but the resulting deserialized
>> objects is the same.
> 
> The difference that I see IMHO: now you need to feed multistrap by 
> community-standardized input, you propose to add custom tool that eats 
> proprietary input.

I don't get this point. What do you mean by that?

> 
>>
>> Ok, that is not 100% true, I changed the name of the isar repository
>> section. Now its called 'isar' in the image (previously 'Isar') and
>> buildchroot (previously 'isar-apt') multiconfig. But that is it. It has
>> no different effect outside of multistrap.
>>
>>> I'd like to understand the reasons for moving from templates to a magic
>>> generator.
>>>
>>> In my experience, magic is usually poorly documented (if at all) and 
>>> very
>>> ununderstandable for users. Simple change of a line requires locating 
>>> the
>>> generator, understanding what it does (they tend to be hairy with 
>>> tons of
>>> conditions) and patching the upstream [Isar] code. Templates have their
>>> disadvantages, but are straightforward for users. In general, I'd 
>>> like to keep
>>> the current UX and stick with templates, which is possible most of 
>>> the time.
>>
>> You prefer duplicated code? Two slightly different templates for two
>> buildchroot and image recipe?
>>
> 
> AFAIK the key idea is to have the only single multistrap that works with 
> upstream repos. Other multistraps fetch packages from local cache. So 
> after this is done, the problem with duplicacations in configs will go.
> 
>> Also this patch is only an intermediate step of the way for multi-repo
>> support. IMO it has value on its own, since it centralized the
>> generation of the multistrap configuration.
>> The current kind of 'template' does not support creating repository
>> entries on the fly.
> 
> What is the use case to have them "on the fly"?

See: Also this patch is only an intermediate step of the way for 
multi-repo support.

Use-case for multi-repo: docker-ce repository available.

> 
> Alex
> 
> It might be possible to extent the multiconfig with
>> shell scripting, but I prefer using python for such advanced logic.
> 
> I don't care about python or bash

At least Baurzhan seems to care, because he doesn't like debootstrap 
because of it being in shell.

Cheers,
Claudius

> 
>>
>> regards,
>> Claudius
>>
>> -- 
>> 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
>>
>> -- 
>> 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/d58343b9-c284-81e7-f743-2672c1f5f8ef%40siemens.com. 
>>
>> 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

  reply	other threads:[~2018-02-15 13:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-14 13:15 [PATCH 0/2] Consolidate " claudius.heine.ext
2018-02-14 13:15 ` [PATCH 1/2] meta/classes/base: extend sys.path with lib directory claudius.heine.ext
2018-02-15  7:28   ` Jan Kiszka
2018-02-14 13:15 ` [PATCH 2/2] centralize multistrap configuration generation claudius.heine.ext
2018-02-15  7:28   ` Jan Kiszka
2018-02-15  8:16     ` Claudius Heine
2018-02-15  8:50       ` Jan Kiszka
2018-02-15  9:34     ` Alexander Smirnov
2018-02-15 10:05       ` Claudius Heine
2018-02-15 10:15         ` Jan Kiszka
2018-02-15 10:29           ` Alexander Smirnov
2018-02-15 11:27           ` Baurzhan Ismagulov
2018-02-15 13:17             ` Claudius Heine
2018-02-15 13:18             ` Jan Kiszka
2018-02-15 11:42   ` Baurzhan Ismagulov
2018-02-15 12:08     ` Claudius Heine
2018-02-15 12:37       ` Alexander Smirnov
2018-02-15 13:20         ` Claudius Heine [this message]
2018-02-15 13:39           ` Alexander Smirnov
2018-02-16  9:31             ` Claudius Heine
2018-02-16 10:35               ` Alexander Smirnov
2018-02-16 11:35                 ` Jan Kiszka
2018-02-15 13:53           ` 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=b8836d58-c295-a218-9be2-64bdca5b24da@siemens.com \
    --to=claudius.heine.ext@siemens.com \
    --cc=asmirnov@ilbers.de \
    --cc=ibr@radix50.net \
    --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