Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] util-linux: disable fallocate for avr32
Date: Sun, 3 Nov 2013 12:17:11 +0100	[thread overview]
Message-ID: <20131103121711.4c67418f@skate> (raw)
In-Reply-To: <20131103110613.GB3615@free.fr>

Dear Yann E. MORIN,

On Sun, 3 Nov 2013 12:06:13 +0100, Yann E. MORIN wrote:

> > I'm Cc'ing Arnout, Peter, Yann and Thomas DS on this one, because we
> > really need to define a policy on this topic.
> 
> Our stance has always been 'no feature-patch in Buildroot'.
> OTOH, I can understand that fallocate is really required (being in
> POSIX).
> 
> But since uClibc is highly configurable, it could happen that an
> external toolchain would have fallocate disabled (being in Advanced
> RT in POSIX).

True, but our position on the matter has more or less always been: the
external uClibc toolchain should have a uClibc configuration similar to
the one we have in Buildroot. We cannot support any random uClibc
configuration.

But it's hard to require external toolchains to have uClibc features
that are not even part of a uClibc stable release.

> So, I'm a bit fuzzy as to what we should do here.
> 
> The best approach would be to push all of our changes upstream uClibc,
> and hope for a release soon, so we can bump. But it looks like upstream
> is not really alive those days.

All the feature patches we have for uClibc are already upstream: they
are precisely backported from upstream... waiting for an upstream
release to occur.

> Another approach would be to add yet one more toolchain knob that tells
> whether the toolchain has fallocate (defaults to 'y' for (e)glibc and
> internal, prompts for external uClibc).

True, but that doesn't scale really nicely to the crazy number of
features. For example, systemd needs execvpe(), which is not in uClibc
0.9.33, but is available in our uClibc thanks to a backported patch.
Should we also add another config know for execvpe() ?

> My preference would be to remove feature-patches, but that is really
> gonna hurt newcomers (and may bite long-timers as well).

I believe the only reasonable solutions are (alternatively, and the
choice can be made differently per-package) :

 (1) Add patches to the package to avoid usage of unimplemented uClibc
     features (when possible)

 (2) Mark the packages as depends on !UCLIBC

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2013-11-03 11:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-03  9:56 [Buildroot] [PATCH] util-linux: disable fallocate for avr32 spdawson at gmail.com
2013-11-03 10:34 ` Thomas Petazzoni
2013-11-03 11:06   ` Yann E. MORIN
2013-11-03 11:17     ` Thomas Petazzoni [this message]
2013-11-04  6:40       ` Arnout Vandecappelle
2013-11-10 23:41 ` Peter Korsgaard

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=20131103121711.4c67418f@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --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