Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/3] Make exim more configurable
Date: Wed, 16 Jul 2014 11:03:29 +0200	[thread overview]
Message-ID: <53C63FE1.1010308@lucaceresoli.net> (raw)
In-Reply-To: <20140716102957.76a63a7a@free-electrons.com>

Dear Thomas,

Thomas Petazzoni wrote:
> Dear Luca Ceresoli,
>
> On Wed, 16 Jul 2014 10:18:14 +0200, Luca Ceresoli wrote:
>
>>> However, I've for now rejected those two patches. The reason is that I
>>> don't think we should add an option to customize the user with which
>>> each and every daemon is started. Buildroot should use a sane default
>>> option, and for additional configuration, leave it to the Buildroot
>>> user to use BR2_ROOTFS_USERS_TABLES to create any additional/custom
>>> user that may be needed.
>>
>> I generally agree with you.
>>
>> The problem with exim is that it does not allow to configure its user
>> from a runtime configuration file, because it's hard-coded in the
>> binary. The only way to select a user is to change the build-time
>> configuration.
>>
>> So, it's true that one can easily create a new user for exim using
>> BR2_ROOTFS_USERS_TABLES. But currently the only way to tell exim to use
>> that user is to supply an entire config file (which is possible thanks
>> to patch 1 that you've just applied). This would bring out of sync from
>> changes in the config file coming from upstream (exim as well as
>> Buildroot).
>>
>> Patch 2 allows one to keep the Buildroot-provided configuration file,
>> and Buildroot would take care of tweaking the one line needed to
>> actually use the new username.
>
> Well, I think we generally support two cases in Buildroot:
>
>   1) A basic, default, sane configuration. This is what already existed
>      prior to your patch series, where exim uses a dedicated user
>      created by the exim package.
>
>   2) A way of providing a custom configuration, which is possible thanks
>      to the BR2_ROOTFS_USERS_TABLES plus the possibility of providing a
>      custom Exim configuration file.
>
> Of course, it means than if all you want is to change the user with
> which Exim is running, you have to go with option (2), even if for all
> other options you need to keep the exact same options as the ones
> normally used with option (1).
>
> But it's exactly the same as with the kernel: if you can use a
> defconfig, it's easy and simple. If you need to use a defconfig + one
> more option, then you have no other choice than switching to using your
> own kernel configuration file. We won't add Config.in options for each
> and every kernel options.
>
> And therefore I don't think we should add Config.in options for each
> and every exim configuration option. You might be interested by
> changing the user, but the next user will be interested in changing
> this other knob, and so on and so on. We clearly don't want to go down
> that road, and instead we want to go for option (2) by providing a
> general customization solution, which allows to solve the problem, even
> if it requires a little bit of effort if your customization is only
> related to one or two differences compared to the basic Buildroot
> configuration.

Well, yes, that's true... I'm probably biased by the fact that
configuring exim is so uncomfortable, but that's no excuse I guess. :)

-- 
Luca

  reply	other threads:[~2014-07-16  9:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-04 15:56 [Buildroot] [PATCH 0/3] Make exim more configurable Luca Ceresoli
2014-07-04 15:56 ` [Buildroot] [PATCH 1/3] exim: allow using a custom configuration file Luca Ceresoli
2014-07-04 15:56 ` [Buildroot] [PATCH 2/3] exim: make EXIM_USER configurable Luca Ceresoli
2014-07-04 15:56 ` [Buildroot] [PATCH 3/3] exim: generate the user with automatic uid Luca Ceresoli
2014-07-15 19:31 ` [Buildroot] [PATCH 0/3] Make exim more configurable Thomas Petazzoni
2014-07-16  8:18   ` Luca Ceresoli
2014-07-16  8:29     ` Thomas Petazzoni
2014-07-16  9:03       ` Luca Ceresoli [this message]
2014-07-16 17:14         ` Yann E. MORIN
2014-07-16  8:24   ` Thomas Petazzoni
2014-07-16  8:50     ` Luca Ceresoli
2014-07-16  9:03       ` Thomas Petazzoni
2014-07-16 16:15         ` Luca Ceresoli
2014-07-16 22:47       ` Arnout Vandecappelle

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=53C63FE1.1010308@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=buildroot@busybox.net \
    /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