Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 20 Sep 2020 13:19:13 +0200
From: Bruno Haible <>
To: "Dmitry V. Levin" <>
Subject: Re: OS detection wrong on Alpine Linux 3.10

Dmitry V. Levin wrote:
> Is this __DEFINED_va_list macro the official way of detecting musl?

No, but in a world where the musl people don't want to provide an official
way [1][2] and the Alpine Linux people break their previously working way of
detecting musl [3], we (GNU) need to use our own heuristics to fulfil the
practical need of programs (especially test suites) to distinguish musl
systems from glibc systems.

> It looks very fragile to me.

Indeed, config.guess would be less fragile if we combined both heuristics.
Patch attached. It's a trade-off between code size and robustness.



View attachment "0001-config.guess-Combine-two-heuristics-to-detect-musl-l.patch" of type "text/x-patch" (1639 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.