[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OS detection wrong on Alpine Linux 3.10
From: |
Bruno Haible |
Subject: |
Re: OS detection wrong on Alpine Linux 3.10 |
Date: |
Sun, 20 Sep 2020 13:19:13 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) |
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.
Bruno
[1] https://wiki.musl-libc.org/faq.html
[2] https://lists.gnu.org/archive/html/bug-gnulib/2018-02/msg00079.html
[3] https://lists.gnu.org/archive/html/config-patches/2020-09/msg00002.html
0001-config.guess-Combine-two-heuristics-to-detect-musl-l.patch
Description: Text Data
- OS detection wrong on Alpine Linux 3.10, Bruno Haible, 2020/09/19
- Re: OS detection wrong on Alpine Linux 3.10, Dmitry V. Levin, 2020/09/20
- Re: OS detection wrong on Alpine Linux 3.10,
Bruno Haible <=
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Ariadne Conill, 2020/09/20
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Szabolcs Nagy, 2020/09/20
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Rich Felker, 2020/09/20
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Bruno Haible, 2020/09/20
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Rich Felker, 2020/09/22
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Jeffrey Walton, 2020/09/22
- Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Bruno Haible, 2020/09/22
Re: [musl] Re: OS detection wrong on Alpine Linux 3.10, Ariadne Conill, 2020/09/20