From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 551D81F619 for ; Mon, 16 Mar 2020 15:44:18 +0000 (UTC) Received: from localhost ([::1]:39868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDrua-0004Me-Dn for normalperson@yhbt.net; Mon, 16 Mar 2020 11:44:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDpcv-0006b4-2h for bug-gnulib@gnu.org; Mon, 16 Mar 2020 09:17:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDpct-0001o6-5p for bug-gnulib@gnu.org; Mon, 16 Mar 2020 09:17:52 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::11]:22767) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDpcr-0001IA-8A for bug-gnulib@gnu.org; Mon, 16 Mar 2020 09:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1584364666; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=9PBKOxcZWvwlyWKZ9XSxtVpAHeXnrEsGIFpg0kBVZ2E=; b=kzj8ThKivTz3aGLtUjdXSVer0GLgifta9KkBdd3AroFPZqdmtNXRLwBFI8g14OpQz1 ZmzFwcjFnLkq4gqcdsaoSt+C+M9+4bC4PyKnSqNWNhLHtgSwIFeTTpM66ZgaOO3SMb9a dLEqhAwFabz9e/Gsi3C8XwiprsR/gOzfUdRe+FuqX1upWAnop0xOhZ9iIizaXChVNcDv cFS5f+3zjTV4HELxUOVMIrSlvCEglfK4HcleLmrtAjZASPg7VY/H1IUjqAmRhitOzWNR Y0YU+VzLrglIm0UReL48zsvhGH0W+Wj8VSZ1CJF1DDJKQ/OVSv2p5I0CC5Oedl6TXz9n fuwg== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.2.0 DYNA|AUTH) with ESMTPSA id e02763w2GDHiE69 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 16 Mar 2020 14:17:44 +0100 (CET) From: Bruno Haible To: Adrian Bunk Subject: Re: gl_{,SN}PRINTF_DIRECTIVE_N wrongly fail on Ubuntu 18.04 Date: Mon, 16 Mar 2020 14:17:44 +0100 Message-ID: <2502652.DdJKY97KcL@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-174-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <11822349.64vXvSZc8K@omega> References: <20200308111935.GA20113@localhost> <20200308184611.GA1425@localhost> <11822349.64vXvSZc8K@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::11 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim =?ISO-8859-1?Q?R=FChsen?= , bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" I wrote: > 2020-03-08 Bruno Haible > > *printf-posix: Document why it's overridden on some glibc systems. > Reported by Adrian Bunk in > . > * doc/posix-functions/*printf.texi: Document the problem with the %n > directive on some glibc systems. > * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust > the cross-compilation guesses accordingly. Oops, this patch had a mistake: It produced an error executing aclocal -I glm4 /usr/bin/m4:configure.ac:4472: recursion limit of 1024 exceeded, use -L to change it autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: error: echo failed with exit status: 1 Caught by the continuous integration - thanks Tim for setting it up! 2020-03-16 Bruno Haible *printf-posix: Fix m4 error (regression from 2020-03-08). * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of brackets in AC_COMPILE_IFELSE invocation. diff --git a/m4/printf.m4 b/m4/printf.m4 index 54a2d71..df473d8 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,4 +1,4 @@ -# printf.m4 serial 63 +# printf.m4 serial 64 dnl Copyright (C) 2003, 2007-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, @@ -1422,7 +1422,6 @@ int main () [gl_cv_func_snprintf_directive_n=yes], [gl_cv_func_snprintf_directive_n=no], [ -changequote(,)dnl case "$host_os" in # Guess no on glibc when _FORTIFY_SOURCE >= 2. *-gnu* | gnu*) AC_COMPILE_IFELSE( @@ -1434,6 +1433,7 @@ changequote(,)dnl [gl_cv_func_snprintf_directive_n="guessing yes"], [gl_cv_func_snprintf_directive_n="guessing no"]) ;; +changequote(,)dnl # Guess yes on musl systems. *-musl*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on FreeBSD >= 5. @@ -1466,8 +1466,8 @@ changequote(,)dnl mingw*) gl_cv_func_snprintf_directive_n="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";; - esac changequote([,])dnl + esac ]) ]) ])