Skip to contentSkip to conversation

How to force AUTORECONF for everything

Buildroot Sidney Manning 3 participants 3 messages Feb 16, 2017

lore
Share & tools
lore
#0 lore raw

I've made a change to libtool which requires that I set PACKAGE_AUTORECONF = YES to many of the library packages. Rather than changing each package, I'd like to force this globally. Is there a way to do that?

Thanks

Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

#1 lore raw

Sydney, All,

On 2017-02-16 11:11 -0600, Sidney Manning spake thusly:

Quoted 3 lines

I've made a change to libtool which requires that I set PACKAGE_AUTORECONF = YES to many of the library packages. Rather than changing each package, I'd like to force this globally. Is there a way to do that?

No, there is no global setting that forces that behaviour.

You'll have to hack the autotools infra. See in package/pkg-autotools.mk at 143:

  139 ifndef $(2)_AUTORECONF
  140  ifdef $(3)_AUTORECONF
  141   $(2)_AUTORECONF = $$($(3)_AUTORECONF)
  142  else
  143   $(2)_AUTORECONF ?= NO
  144  endif
  145 endif

You may want to change that "NO" to a "YES"

But beware, here be dragins...

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

Hello,

Quoted 12 lines · Yann E. MORIN

No, there is no global setting that forces that behaviour.

You'll have to hack the autotools infra. See in package/pkg-autotools.mk at 143:

  139 ifndef $(2)_AUTORECONF
  140  ifdef $(3)_AUTORECONF
  141   $(2)_AUTORECONF = $$($(3)_AUTORECONF)
  142  else
  143   $(2)_AUTORECONF ?= NO
  144  endif
  145 endif
Quoted 3 lines

You may want to change that "NO" to a "YES"

But beware, here be dragins...

In theory, there should be no dragons.

In practice, lots and lots of package to not autoreconf properly, so you're going to face a *lot* of build failures by forcing autoreconf on all packages.

Best regards,

Thomas

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