[Buildroot] [PATCH 1/1] Makefile: workaround make 4.3 issue for 'printvars and 'show-vars'

Yann E. MORIN yann.morin.1998 at free.fr
Mon Aug 1 15:28:37 UTC 2022


Quentin, All,

On 2022-08-01 15:36 +0200, Quentin Schulz spake thusly:
> On 7/30/22 14:19, Yann E. MORIN wrote:
> >On 2022-07-29 21:49 +0000, Roosen Henri spake thusly:
> >>Event though the bug with make 4.3 has been reported and fixed, there
> >>has not been a release of make with the fix for a long time, see [1].
> >>
> >>As the root cause seems the 'filter' command cannot handle large
> >>chunks of data, like .VARIABLES, we can workaround the problem by
> >>using a foreach command over .VARIABLES, then use the filter command.
> >>
> >>It might not be logical to program it that way, but at least the
> >>functionality is now usable.
> >Awesome! Just awesome! 👍
> Just a heads-up that `make printvars` is broken (I've sent a patch for it
> just now) and also that I get a segfault for `make show-vars` (`make
> show-vars VARS="BUSYBOX_%" works just fine).

Gah, I was pretty sure it worked for me, but indeed show-vars fails,
while printvars does work...

    $ ./utils/docker-run
    docker$ make defconfig; make allyespackageconfig

    docker$ make printvars >/dev/null 2>&1; echo $?
    0
    docker$ make printvars VARS=% >/dev/null 2>&1; echo $?
    0

    docker$ make show-vars >/dev/null 2>&1; echo $?
    Segmentation fault (core dumped)
    139

Grr... :-(

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list