From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-046.btinternet.com (mailomta30-sa.btinternet.com [213.120.69.36]) by sourceware.org (Postfix) with ESMTPS id ACEDD3858C39 for ; Thu, 9 Dec 2021 21:48:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ACEDD3858C39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from sa-prd-rgout-002.btmx-prd.synchronoss.net ([10.2.38.5]) by sa-prd-fep-046.btinternet.com with ESMTP id <20211209214810.HBZC6353.sa-prd-fep-046.btinternet.com@sa-prd-rgout-002.btmx-prd.synchronoss.net>; Thu, 9 Dec 2021 21:48:10 +0000 Authentication-Results: btinternet.com; auth=pass (LOGIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 6139417C0D507DEF X-Originating-IP: [81.129.146.209] X-OWM-Source-IP: 81.129.146.209 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvuddrkedtgdduheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeeuieejgeduvdeutdffieeileefffdufeekhefgjefffeehtdekjeegkeeftdfffeenucfkphepkedurdduvdelrddugeeirddvtdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplhhotggrlhhhohhsthdrlhhotggrlhguohhmrghinhdpihhnvghtpeekuddruddvledrudegiedrvddtledpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrtghpthhtohepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdprhgtphhtthhopehnvgiflhhisgesshhouhhrtggvfigrrhgvrdhorhhg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from localhost.localdomain (81.129.146.209) by sa-prd-rgout-002.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 6139417C0D507DEF; Thu, 9 Dec 2021 21:48:10 +0000 From: Jon Turney To: newlib@sourceware.org Cc: Jon Turney Subject: [PATCH] Add a script for regenerating all newlib autotools files Date: Thu, 9 Dec 2021 21:47:20 +0000 Message-Id: <20211209214721.39306-1-jon.turney@dronecode.org.uk> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1197.9 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2021 21:48:15 -0000 Add a script for regenerating all newlib autotools files, applying the instructions in the 'Regenerating Configuration Files' section of the README everywhere. Running this script produces loads of errors about 'no AC_LANG_SOURCE call detected in body' from libtool.m4. This is because that file is old. The versions of autotools in use on newlib seem to have backslid since the README was last updated (for newlib 2.1.0 in 2013), so bring those into alignment. I don't know why. I'm a little skeptical that automake 1.13 was used, since that doesn't permit '--cygnus', which we use. --- newlib/README | 4 ++-- newlib/autogen.sh | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100755 newlib/autogen.sh diff --git a/newlib/README b/newlib/README index 1c0541284..d47cccbcb 100644 --- a/newlib/README +++ b/newlib/README @@ -609,8 +609,8 @@ After creating a new configure.in and Makefile.am file, you would issue: from newlib/libc/machine/XXXX It is strongly advised that you use an adequate version of autotools. -For this latest release, the following were used: autoconf 2.69, aclocal 1.13.4, and -automake 1.13.4. +For this latest release, the following were used: autoconf 2.68, aclocal 1.11.6, and +automake 1.11.6. Reporting Bugs ============== diff --git a/newlib/autogen.sh b/newlib/autogen.sh new file mode 100755 index 000000000..001d297d8 --- /dev/null +++ b/newlib/autogen.sh @@ -0,0 +1,35 @@ +#!/bin/bash -e + +# +# If you're changing this script, you probably want to also be changing the +# 'Regenerating Configuration Files' section in the README. +# + +basedir=$(dirname $(realpath $0)) +cd ${basedir} + +# aclocal -I${relative_path_to_toplevel_newlib_dir} -I${relative_path_to_toplevel_src_dir} +find -name aclocal.m4 | while read f +do + (cd $(dirname $f) ; aclocal-1.11 -I $(realpath --relative-to . ${basedir}) -I $(realpath --relative-to . ${basedir}/..)) +done + +# autoconf +find -name configure.ac | while read f +do + (cd $(dirname $f) ; autoconf-2.68) +done + +# automake +find -name configure.ac | while read f +do + # Exclude directories containing a configure.ac and below, so that Makefile.in + # files are generated from the nearest directory up the tree which contains a + # configure.ac file. + (cd $(dirname $f) ; find -type d -execdir test -e {}/configure.ac ';' -a -not -path '.' -prune -o -name Makefile.am -printf '%P\n' | while read m + do + automake-1.11 -ac ${m%.*} + done) +done + +rm -rf autom4te.cache -- 2.34.1