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: 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

Re: OS detection wrong on Alpine Linux 3.10

2020-09-19 Thread Ben Elliston
On Sun, Sep 20, 2020 at 04:10:24AM +0200, Bruno Haible wrote: > > The command line interface of system programs should remain stable. > > 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

Re: OS detection wrong on Alpine Linux 3.10

2020-09-19 Thread Bruno Haible
Ben Elliston wrote: > and 3.10 becomes unsupported after May 1 > next year. By the time this fix is propagated into packages that > include config.guess, I imagine most users will have upgraded to > >3.10. I had hoped that the fix would be contained in the GNU grep release that Jim Meyering is pre

Re: OS detection wrong on Alpine Linux 3.10

2020-09-19 Thread Ben Elliston
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 --ve