From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13358 invoked from network); 19 Sep 2020 14:12:57 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Sep 2020 14:12:57 -0000 Received: (qmail 16211 invoked by uid 550); 19 Sep 2020 14:12:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 16181 invoked from network); 19 Sep 2020 14:12:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=p5ANdoU7TqbLqCatvBIIKH1rLV3LSrpiUiPtKUb4VaE=; b=bFzsUWswbd3TFcUqKihoqeffXdey/s8o56xLn15xBUmSSiSSgeecgoIc/4ZE6Z278K lOpg6ZJjD9EjrdS6PDSAmT0ncZVKvpuIwh6K19QN0Z41T5b0LMhSMgEBYsD6wMxV8hvI KR1yunaFEZio/0Tzr1C6Re7Tc15ZdhXuQyfO5QWCp8ByVUHqVMcHNqpSrcziNEe8TMqG FaqZkQR7/UrEswuaim6Q06Mg9EruGkAKdl9E7OVSa90bZFixTffvTQGY+QFgTEdrgIpZ 6KyQoX0FdJxmoEvKTFkadRuRgWSjN/IWwY3sTk1PalhCnnZWCXi5P8RfsX5/2+0bE+v+ obRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=p5ANdoU7TqbLqCatvBIIKH1rLV3LSrpiUiPtKUb4VaE=; b=DCLCnOJtqJCL5KDT0sgkxAGeNWQTZqMo1Re1nwmovmJiomq7vU3kWxqpvXzVoXKUdj rfybNMX3W8cZOZXRAGo9lo1niE9oX54CLaUbpog7+eVPY1UlKEbZ9N6f3mSJBXY2vftA Miq42IQ6xmbjoGgMft+R/cdaq4Vzlwey1CDwQ/CbIFKPHs7ripvY4WASu/xBZLM/z/im 5htYYbTwIV2TRBKSXhUCCLX8b1+YzisFz4JP52fKVWQ5co7SV8MRgNk09oE17deGP6CT er7xz+m1RMTNorynztK4EOVlGBWfsYRTT6AnzMnezdEzrnIK5YM/c+Od+sGxzk7RA/P5 XUxA== X-Gm-Message-State: AOAM532f2c2ODY8ETPyEjHU3W1rI8o5GVGO5jED/djNkjZCD6RpqTKGl Sc27+Q1RkJB4rZFGfrsFA+/qE7Iaunudg+uZedCTFa0wbuzR9g== X-Google-Smtp-Source: ABdhPJxpTttsr8fTZY/TccmzQKI0sYMs5uhkKp8Ny8M3JgNTDRMu3Z5yyzdCksKPOy3YP0J85stEItBjA/RbFFVErnY= X-Received: by 2002:a05:6e02:f87:: with SMTP id v7mr364847ilo.212.1600524761123; Sat, 19 Sep 2020 07:12:41 -0700 (PDT) MIME-Version: 1.0 References: <4884197.be5NI9L3Sv@omega> In-Reply-To: <4884197.be5NI9L3Sv@omega> From: Jeffrey Walton Date: Sat, 19 Sep 2020 10:12:17 -0400 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: [musl] Re: [platform-testers] new snapshot available: grep-3.4-almost.19-ff30 Hi Everyone, An FYI from testing a grep release candidate. The RC experienced 3 failures on Alpine Linux. Bruno Haible tracked down the cause. I usually update a package's config.guess and config.sub according to https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html. I may have contributed to the problem by using the latest config.guess and config.sub. I'm not sure if there is anything actionable for Musl or Alpine. Jeff On Sat, Sep 19, 2020 at 9:12 AM Bruno Haible wrote: > > Jeffrey Walton wrote in > : > > > Hi Everyone, > > > > grep-3.4-almost.19-ff30 fails self test on Alpine Linux 3.10 with > > BusyBox, triplet x86_64-pc-linux-gnu. > > > > ... > > FAIL: test-hard-locale > > FAIL: test-setlocale_null-mt-all > > > > Attached are config.log and test-suite.log. > > The cause of these two failures is the wrong triplet: $host_os is > - on Alpine Linux 3.10: linux-gnu, > - on Alpine Linux 3.9 and 3.12: linux-musl. > The triplet comes from config.guess. The test there uses ldd ('ldd --version' > in particular). But on Alpine Linux 3.10 /usr/bin/ldd has been replaced with > a shell script that does not understand the --version option. > > This patch fixes it. Part of it can be removed once config.guess will have been > corrected. > > > 2020-09-19 Bruno Haible > > Fix recognition of musl libc on Alpine Linux 3.10. > Reported by Jeffrey Walton in > . > * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro. > (gl_MUSL_LIBC): Require it. > * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise. > * modules/setlocale-null (Files): Add m4/musl.m4. > > diff --git a/m4/musl.m4 b/m4/musl.m4 > index 252054c..343c71a 100644 > --- a/m4/musl.m4 > +++ b/m4/musl.m4 > @@ -1,4 +1,4 @@ > -# musl.m4 serial 1 > +# musl.m4 serial 2 > dnl Copyright (C) 2019-2020 Free Software Foundation, Inc. > dnl This file is free software; the Free Software Foundation > dnl gives unlimited permission to copy and/or distribute it, > @@ -9,10 +9,40 @@ dnl with or without modifications, as long as this notice is preserved. > # . > # From Bruno Haible. > > +# There are three ways to test for musl libc: > +# a. Look at the 'ldd --version' output. This is how config.guess > +# does it. But it fails on Alpine Linux 3.10, because on this system > +# 'ldd' is a shell script that does not understand the '--version' > +# option. > +# b. Test whether the header file exists. > +# c. Test whether the header file defines the macro > +# __DEFINED_va_list. > +# We use a+c. > + > AC_DEFUN_ONCE([gl_MUSL_LIBC], > [ > - AC_REQUIRE([AC_CANONICAL_HOST]) > + AC_REQUIRE([gl_MUSL_CANONICAL_HOST]) > case "$host_os" in > *-musl*) AC_DEFINE([MUSL_LIBC], [1], [Define to 1 on musl libc.]) ;; > esac > ]) > + > +# Like AC_CANONICAL_HOST, except for a fix regarding Alpine Linux 3.10. > + > +AC_DEFUN([gl_MUSL_CANONICAL_HOST], > +[ > + AC_REQUIRE([AC_CANONICAL_HOST]) > + case "$host_os" in > + linux*-gnu*) > + AC_EGREP_CPP([actually_musl], > + [#include > + #ifdef __DEFINED_va_list > + actually_musl > + #endif > + ], > + [host=`echo "$host" | sed -e 's/gnu.*/musl/'` > + host_os=`echo "$host_os" | sed -e 's/gnu.*/musl/'` > + ]) > + ;; > + esac > +]) > diff --git a/m4/setlocale_null.m4 b/m4/setlocale_null.m4 > index c1ee1f7..20c5c99 100644 > --- a/m4/setlocale_null.m4 > +++ b/m4/setlocale_null.m4 > @@ -1,4 +1,4 @@ > -# setlocale_null.m4 serial 2 > +# setlocale_null.m4 serial 3 > dnl Copyright (C) 2019-2020 Free Software Foundation, Inc. > dnl This file is free software; the Free Software Foundation > dnl gives unlimited permission to copy and/or distribute it, > @@ -6,7 +6,7 @@ dnl with or without modifications, as long as this notice is preserved. > > AC_DEFUN([gl_FUNC_SETLOCALE_NULL], > [ > - AC_REQUIRE([AC_CANONICAL_HOST]) > + AC_REQUIRE([gl_MUSL_CANONICAL_HOST]) > AC_REQUIRE([gl_PTHREADLIB]) > AC_CHECK_HEADERS_ONCE([threads.h]) > > diff --git a/modules/setlocale-null b/modules/setlocale-null > index 2774004..d8c57a2 100644 > --- a/modules/setlocale-null > +++ b/modules/setlocale-null > @@ -7,6 +7,7 @@ lib/setlocale_null.c > lib/setlocale-lock.c > lib/windows-initguard.h > m4/setlocale_null.m4 > +m4/musl.m4 > m4/threadlib.m4 > m4/visibility.m4