All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] build/advanced: add option to check for use of cdefs.h
Date: Sun, 4 Dec 2016 13:52:02 +0100	[thread overview]
Message-ID: <20161204135202.109c6480@free-electrons.com> (raw)
In-Reply-To: <1480849177-16847-1-git-send-email-yann.morin.1998@free.fr>

Hello,

On Sun,  4 Dec 2016 11:59:37 +0100, Yann E. MORIN wrote:
> We want to catch programs that directly include sys/cdefs.h so that
> we can fix them not to. So, we want to instrument sys/cdefs.h to emit
> a warning when it is included.

Thanks for working on this. However, I am still not convinced that we
want to merge such an additional complexity (one new Config.in choice
with three sub-options, two additional Config.in options), a cdefs.h
wrapper for glibc/uclibc, etc.

Do we really care about upstream packages using sys/cdefs.h? Is it
really the most important battle to fight against upstream projects
using sys/cdefs.h?

If we start having instrumentation in Buildroot to detect such very
specific "standard violation", then where do we stop? There's plenty of
upstream projects doing bogus things all over the place.

I believe the paranoid checks for bogus -I/-L flags are fine because
they really potentially break cross-compilation. But this cdefs.h
mis-use doesn't break anything, now that we have the cdefs.h
replacement for musl.

Peter, Arnout, what do you think?

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

  reply	other threads:[~2016-12-04 12:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-04 10:59 [Buildroot] [PATCH] build/advanced: add option to check for use of cdefs.h Yann E. MORIN
2016-12-04 12:52 ` Thomas Petazzoni [this message]
2016-12-04 13:05   ` Yann E. MORIN
2016-12-04 20:33   ` 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=20161204135202.109c6480@free-electrons.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.