From: Claudius Heine <claudius.heine.ext@siemens.com>
To: isar-users@googlegroups.com, Baurzhan Ismagulov <ibr@radix50.net>
Subject: Re: [PATCH 2/2] centralize multistrap configuration generation
Date: Thu, 15 Feb 2018 13:08:40 +0100 [thread overview]
Message-ID: <d58343b9-c284-81e7-f743-2672c1f5f8ef@siemens.com> (raw)
In-Reply-To: <20180215114214.GC5374@yssyq.radix50.net>
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.
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?
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. It might be possible to extent the multiconfig with
shell scripting, but I prefer using python for such advanced logic.
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
next prev parent reply other threads:[~2018-02-15 12:08 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 [this message]
2018-02-15 12:37 ` Alexander Smirnov
2018-02-15 13:20 ` Claudius Heine
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=d58343b9-c284-81e7-f743-2672c1f5f8ef@siemens.com \
--to=claudius.heine.ext@siemens.com \
--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