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: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Dmitry V. Levin
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 > > The reason is that config.guess tests 'ldd --ver

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

Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Bruno Haible
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 heur

Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Bruno Haible
Ben Elliston wrote: > > You are assuming that system programs have a test suite that will > > protect them from introducing regressions? I don't think that's realistic. > > Even glibc has regressions occasionally. > > Not really. It is not difficult for programmers to be disciplined and > know the