Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] autotools, autorefconf, libtoolize and non-existing m4 directory
Date: Tue, 10 Dec 2019 14:30:24 +0100	[thread overview]
Message-ID: <20191210143024.7b3a8bb6@windsurf> (raw)
In-Reply-To: <f4bfdbacb2180b054d3e290355dc1ed8@walle.cc>

On Tue, 10 Dec 2019 14:21:06 +0100
Michael Walle <michael@walle.cc> wrote:

> > This is simple, and works just fine.  
> 
> Correct, that would work, actually, we already had that construct in the
> recipe. But as I've already said, this behaviour is very different than
> on the host. Esp. if you'd use "aclocal -i"; which I don't know if it is
> used at all. Currently there are many workarounds, all are fine. My
> intention was to make you aware of this bug; or if you already knew it,
> your opinion on it. Eg. aclocal is handling the first include path in a
> special way, but buildroot already occupies that slot.

No, I was not aware that the first include path is handled in a special
way, and that because Buildroot uses that slot, the m4/ directory no
longer gets created automatically.

In fact, aclocal's man page says:

       --install
              copy third-party files to the first -I directory

So indeed that's I guess how the m4/ directory gets created.

Perhaps we should use:

       --system-acdir=DIR
              directory holding third-party system-wide files

instead? Could you try that in the definition of $(AUTORECONF), instead
of the -I options?

In fact, it is quite worrying that aclocal -i -I/foo/bar copies stuff
to /foo/bar. Indeed, we clearly don't want aclocal to clutter
$(ACLOCAL_DIR) or $(ACLOCAL_HOST_DIR) with additional files by effect
of running autoreconf.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

      reply	other threads:[~2019-12-10 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-10 10:34 [Buildroot] autotools, autorefconf, libtoolize and non-existing m4 directory Michael Walle
2019-12-10 13:04 ` Thomas Petazzoni
2019-12-10 13:21   ` Michael Walle
2019-12-10 13:30     ` Thomas Petazzoni [this message]

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=20191210143024.7b3a8bb6@windsurf \
    --to=thomas.petazzoni@bootlin.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