Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-22 Thread Jeffrey Walton
On Tue, Sep 22, 2020 at 2:46 PM Rich Felker wrote: > ... > > > There is one kinda legitimate purpose for detecting specifically musl: > > > > It is not your role to tell us which code we write is "legitimate" and > > which code is not. I am a grown-up programmer. > > I'm not trying to tell you you

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-22 Thread Bruno Haible
[Dropping config-patches from CC.] Hi Rich, > I'm not trying to tell you you're not a grown-up programmer. I'm > trying to tell you that the answer to the question you're asking ("is > this musl?") is not meaningful Good. Then maybe the term "legitimate" was too strong... > It's true that imple

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-22 Thread Rich Felker
On Sun, Sep 20, 2020 at 09:21:48PM +0200, Bruno Haible wrote: > Rich, > > POSIX — like many other standard — allows different implementations to > behave differently. For example, iconv_open() and setlocale() behave > differently in different POSIX-compliant libc implementations. This is > OK. The

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Bruno Haible
Rich, POSIX — like many other standard — allows different implementations to behave differently. For example, iconv_open() and setlocale() behave differently in different POSIX-compliant libc implementations. This is OK. There is nothing wrong with it on either side. Unit tests [1] need to take i

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Rich Felker
On Sun, Sep 20, 2020 at 03:56:29PM +0200, Szabolcs Nagy wrote: > * Bruno Haible [2020-09-20 13:19:13 +0200]: > > 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 > >

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Szabolcs Nagy
* Bruno Haible [2020-09-20 13:19:13 +0200]: > 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 o

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Ariadne Conill
Hello, On 2020-09-20 05:19, Bruno Haible wrote: 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 de

Re: [musl] Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Ariadne Conill
Hello, On 2020-09-20 04:12, Dmitry V. Levin wrote: On Sat, Sep 19, 2020 at 03:30:54PM +0200, Bruno Haible wrote: The value of $host_os, determined by the current config.guess, is: - On Alpine Linux 3.9: linux-musl - On Alpine Linux 3.10: linux-gnu - On Alpine Linux 3.12: linux-musl Th