From unknown Wed Aug 20 01:20:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11294: [RFC] build: support and require Automake-NG Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 21 Apr 2012 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11294 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 11294@debbugs.gnu.org Cc: Stefano Lattarini X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13350017633373 (code B ref -1); Sat, 21 Apr 2012 09:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Apr 2012 09:49:23 +0000 Received: from localhost ([127.0.0.1]:45086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLWwQ-0000sI-Vr for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:49:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41508) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLWwL-0000rz-2M for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:49:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLWvi-0000cC-9w for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:48:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWvi-0000c6-4C for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:48:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWvd-0007KX-83 for bug-coreutils@gnu.org; Sat, 21 Apr 2012 05:48:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLWvX-0000at-QG for bug-coreutils@gnu.org; Sat, 21 Apr 2012 05:48:28 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:49497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWvX-0000al-H7 for bug-coreutils@gnu.org; Sat, 21 Apr 2012 05:48:23 -0400 Received: by wgbdr1 with SMTP id dr1so7696747wgb.30 for ; Sat, 21 Apr 2012 02:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=Hg7tzahMO08KWmz6Hfo3WTz6D2UsHuxzGRrnKDgRMek=; b=cj0SIrb+zPAoIll7jxgStINwJTULjYw+iB7Eq6Cw2uRqzD4vrC1/JS8KmOg0SbQaPg wf477QudcPSkXVYG1m/TMeaP208ipF/kpHIk8QDQ1S1MtO5TmgyJdJnyhO0IUumTp3wz ApJSRiLu5JublcrDy9IEhPnqceaYRB/FmUjcIwnqaCiRVeXM+x1hPXzmeQVAIo9Sl2BC GbcQGEQw0hgcDfGi30E/362eWaU8Bvqc7k8wPsipx+seFqT/0PVzEPh/kC8NRb2GsfMO zX10a+CqnOzjq7f72YV0vRw+6vCkUX+sM4ecobrWFI2Z/0l0qRJ6NlLLDQbheYQMDJ+Q d63Q== Received: by 10.216.208.21 with SMTP id p21mr5781104weo.12.1335001700483; Sat, 21 Apr 2012 02:48:20 -0700 (PDT) Received: from localhost.localdomain (host63-99-dynamic.20-79-r.retail.telecomitalia.it. [79.20.99.63]) by mx.google.com with ESMTPS id 6sm4304316wiz.1.2012.04.21.02.48.16 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Apr 2012 02:48:18 -0700 (PDT) From: Stefano Lattarini Date: Sat, 21 Apr 2012 11:48:03 +0200 Message-Id: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) * configure.ac (AM_INIT_AUTOMAKE): Add the 'ng' option, to ensure that mainstream Automake is not used by mistake when bootstrapping. Also, bump the required Automake version from '1.11.1' to '1.11e', which is the latest (and still development-only) version of Automake-NG at the moment of writing. * bootstrap (check_versions): Hacked to handle automake and aclocal from Automake-NG specially. This change should be backported to Gnulib proper in a later step. * bootstrap.conf ($buildreq): Require "automake-ng" and "aclocal-ng" version >= 0.5; don't require mainstream "automake" anymore. Signed-off-by: Stefano Lattarini --- I'd like this to be applied to an experimental branch in the coreutils repository, which will be used to test and experiment with Automake-NG in a real-world, important, medium-complexity package like GNU coreutils is. I hope you'll agree this is a sensible move, which could bring advantages and improvements to both coreutils and Automake-NG. Regards, Stefano bootstrap | 19 +++++++++++++++++++ bootstrap.conf | 3 ++- configure.ac | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index c8ee3cc..cc058bd 100755 --- a/bootstrap +++ b/bootstrap @@ -429,6 +429,25 @@ check_versions() { GZIP) ;; # Do not use $GZIP: it contains gzip options. *) eval "app=\${$appvar-$app}" ;; esac + + # Special handling for Automake-NG programs. They are still named as + # the mainstream Automake programs ("automake", "aclocal") to avoid + # gratuitous incompatibilities with pre-existing usages (by, say, + # autoreconf, or custom autogen.sh scripts), but correctly identify + # themselves (as being part of "GNU automake-ng") when asked their + # version. + case $app in + automake-ng|aclocal-ng) + app=`echo "$app" | sed 's/-ng$//'` + if ($app --version | grep '(GNU automake-ng)') >/dev/null 2>&1; then + : + else + echo "$me: Error: '$app' not found or not from Automake-NG" >&2 + ret=1 + continue + fi ;; + esac + if [ "$req_ver" = "-" ]; then # Merely require app to exist; not all prereq apps are well-behaved # so we have to rely on $? rather than get_version. diff --git a/bootstrap.conf b/bootstrap.conf index bb414ef..a2432aa 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -307,8 +307,9 @@ gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\ # Build prerequisites buildreq="\ +automake-ng - +aclocal-ng - autoconf 2.62 -automake 1.11.1 autopoint - bison - gettext 0.17 diff --git a/configure.ac b/configure.ac index 5a4860e..dab8b07 100644 --- a/configure.ac +++ b/configure.ac @@ -32,7 +32,7 @@ AC_CONFIG_SRCDIR([src/ls.c]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADERS([lib/config.h:lib/config.hin]) -AM_INIT_AUTOMAKE([1.11.1 no-dist-gzip dist-xz color-tests parallel-tests]) +AM_INIT_AUTOMAKE([1.11e ng no-dist-gzip dist-xz color-tests parallel-tests]) AM_SILENT_RULES([yes]) # make --enable-silent-rules the default. dnl POSIXCHECK is worthwhile for maintainers, but adds several seconds -- 1.7.9.5 From unknown Wed Aug 20 01:20:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11294: [RFC] build: support and require Automake-NG Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 08 May 2012 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11294 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Stefano Lattarini Cc: 11294@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13364895883872 (code B ref -1); Tue, 08 May 2012 15:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 May 2012 15:06:28 +0000 Received: from localhost ([127.0.0.1]:41312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRlzf-00010O-QB for submit@debbugs.gnu.org; Tue, 08 May 2012 11:06:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38295) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRlzc-00010C-DC for submit@debbugs.gnu.org; Tue, 08 May 2012 11:06:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRlxN-0005Lx-IE for submit@debbugs.gnu.org; Tue, 08 May 2012 11:04:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlxN-0005LL-CS for submit@debbugs.gnu.org; Tue, 08 May 2012 11:04:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlxH-0001YN-Km for bug-coreutils@gnu.org; Tue, 08 May 2012 11:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRlx6-000518-JF for bug-coreutils@gnu.org; Tue, 08 May 2012 11:03:59 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:38279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlx6-0004xp-59 for bug-coreutils@gnu.org; Tue, 08 May 2012 11:03:48 -0400 Received: by bkcjm19 with SMTP id jm19so6021141bkc.0 for ; Tue, 08 May 2012 08:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=MjA1cXJg38FTM/7lGEqMU7lWP2oX4KBSD+8gbD1oq2U=; b=Jn9kpq5MHH/qpbOoEge0JXGLWLRqofc949ZRI6vUTdZSstVwe3DqQ3RgKx2JJvOQiv 1WKX4db2IN7xNd+tG/AjKfYlMjNKF7RknfoVZWLKzI3Ec+hHg7XBDdPjLjhwJgKfKBQH mwLEbvbR9cfeq3/JI5NL6JyBGyhYxuTAiLoFQT5ERsOmInH4ocgPAUZ4ecP4n2wI8kYf DnuzkKoK29Ajdc0QdW8RkZeSYYmvsspbSqbHh2sM/UVVD0tTdr7eElAGESp9ViiNSzzD 1XOC8FZii6HSibll8N6KCNg4kd+BwIX3Bg1kyuoJ2Mb1nUcz5KL7q1+4vqUra2dfkFV7 ipxA== Received: by 10.204.9.194 with SMTP id m2mr7062830bkm.92.1336489425975; Tue, 08 May 2012 08:03:45 -0700 (PDT) Received: from [82.56.31.167] (host167-31-dynamic.56-82-r.retail.telecomitalia.it. [82.56.31.167]) by mx.google.com with ESMTPS id v2sm39577632bkw.16.2012.05.08.08.03.43 (version=SSLv3 cipher=OTHER); Tue, 08 May 2012 08:03:44 -0700 (PDT) Message-ID: <4FA935CC.7000607@gmail.com> Date: Tue, 08 May 2012 17:03:40 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> In-Reply-To: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> Content-Type: multipart/mixed; boundary="------------040205090605010603070809" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) This is a multi-part message in MIME format. --------------040205090605010603070809 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/21/2012 11:48 AM, Stefano Lattarini wrote: > * configure.ac (AM_INIT_AUTOMAKE): Add the 'ng' option, to ensure that > mainstream Automake is not used by mistake when bootstrapping. Also, > bump the required Automake version from '1.11.1' to '1.11e', which is > the latest (and still development-only) version of Automake-NG at the > moment of writing. > * bootstrap (check_versions): Hacked to handle automake and aclocal > from Automake-NG specially. This change should be backported to Gnulib > proper in a later step. > * bootstrap.conf ($buildreq): Require "automake-ng" and "aclocal-ng" > version >= 0.5; don't require mainstream "automake" anymore. > > Signed-off-by: Stefano Lattarini > --- > > I'd like this to be applied to an experimental branch in the coreutils > repository, which will be used to test and experiment with Automake-NG > in a real-world, important, medium-complexity package like GNU coreutils > is. > > I hope you'll agree this is a sensible move, which could bring advantages > and improvements to both coreutils and Automake-NG. > I've updated the patch to take into account: - the recent bump in the Automake-NG version (1.11e => 1.12a); - the bump in the minimal Autoconf version required by Automake-NG (2.62 => 2.65); - the support for Automake-NG recently added to the Gnulib-provided bootstrap script - the removal of the m4 macro 'AM_PROG_MKDIR_P' from the master branch of the Automake repository (and thus from Automake-NG, where 'master' is regularly merged). So, OK to apply this patch to a new branch in the coreutils official repository? Or it's better if I clone the coreutils repo on GitHub and work there, to have more freedom while experimenting? Regards, Stefano --------------040205090605010603070809 Content-Type: text/x-diff; name="0001-build-support-and-require-Automake-NG.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-build-support-and-require-Automake-NG.patch" >From c71f1ea695ba9ee3ecc6bbaa8136a9dbf6b18df9 Mon Sep 17 00:00:00 2001 Message-Id: From: Stefano Lattarini Date: Fri, 20 Apr 2012 13:28:28 +0200 Subject: [PATCH] build: support and require Automake-NG * configure.ac (AC_PREREQ): Require Autoconf version >= 2.65, since that is the minimal version supported by Automake-NG. (AM_INIT_AUTOMAKE): Add the 'ng' option, to ensure that mainstream Automake is not used by mistake when bootstrapping. Also, bump the required Automake version from '1.11.1' to '1.12a', which is the latest (and still development-only) version of Automake-NG at the moment of writing. * bootstrap: Updated from latest Gnulib. In particular ... (check_versions): ... this now handles the automake and aclocal from Automake-NG. * bootstrap.conf ($buildreq): Require 'automake-ng' and 'aclocal-ng'; don't require mainstream 'automake' anymore. Bump required 'autoconf' version to 2.65. * m4/mkdirp-compat.m4: New file, contain a definition of the macro 'AM_PROG_MKDIR_P' (simply as an alias to the Autoconf-provided macro 'AC_PROG_MKDIR_P'), that is used by the Gettext-provided macro 'AM_PO_SUBDIRS', but which has been removed in Automake-NG (as well as in the master branch of mainline Automake). Signed-off-by: Stefano Lattarini --- bootstrap | 44 ++++++++++++++++++++++++++++++++++++++++---- bootstrap.conf | 5 +++-- configure.ac | 4 ++-- m4/mkdirp-compat.m4 | 24 ++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 m4/mkdirp-compat.m4 diff --git a/bootstrap b/bootstrap index c8ee3cc..c496d29 100755 --- a/bootstrap +++ b/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh # Print a version string. -scriptversion=2012-02-11.09; # UTC +scriptversion=2012-04-26.13; # UTC # Bootstrap this package from checked-out sources. @@ -36,6 +36,10 @@ nl=' LC_ALL=C export LC_ALL +# Ensure that CDPATH is not set. Otherwise, the output from cd +# would cause trouble in at least one use below. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + local_gl_dir=gl me=$0 @@ -423,12 +427,28 @@ check_versions() { $use_git || continue fi # Honor $APP variables ($TAR, $AUTOCONF, etc.) - appvar=`echo $app | tr '[a-z]-' '[A-Z]_'` + appvar=`echo $app | LC_ALL=C tr '[a-z]-' '[A-Z]_'` test "$appvar" = TAR && appvar=AMTAR case $appvar in GZIP) ;; # Do not use $GZIP: it contains gzip options. *) eval "app=\${$appvar-$app}" ;; esac + + # Handle the still-experimental Automake-NG programs specially. + # They remain named as the mainstream Automake programs ("automake", + # and "aclocal") to avoid gratuitous incompatibilities with + # pre-existing usages (by, say, autoreconf, or custom autogen.sh + # scripts), but correctly identify themselves (as being part of + # "GNU automake-ng") when asked their version. + case $app in + automake-ng|aclocal-ng) + app=`echo "$app" | sed 's/-ng$//'` + ($app --version | grep '(GNU automake-ng)') >/dev/null 2>&1 || { + echo "$me: Error: '$app' not found or not from Automake-NG" >&2 + ret=1 + continue + } ;; + esac if [ "$req_ver" = "-" ]; then # Merely require app to exist; not all prereq apps are well-behaved # so we have to rely on $? rather than get_version. @@ -758,9 +778,15 @@ fi # Autoreconf runs aclocal before libtoolize, which causes spurious # warnings if the initial aclocal is confused by the libtoolized # (or worse out-of-date) macro directory. +# libtoolize 1.9b added the --install option; but we support back +# to libtoolize 1.5.22, where the install action was default. if test $use_libtool = 1; then - echo "running: $LIBTOOLIZE --copy --install" - $LIBTOOLIZE --copy --install + install= + case $($LIBTOOLIZE --help) in + *--install*) install=--install ;; + esac + echo "running: $LIBTOOLIZE $install --copy" + $LIBTOOLIZE $install --copy fi version_controlled_file() { @@ -863,6 +889,16 @@ if test $with_gettext = yes; then } ' po/Makevars.template >po/Makevars || exit 1 + # If the 'gettext' module is in use, grab the latest Makefile.in.in. + # If only the 'gettext-h' module is in use, assume autopoint already + # put the correct version of this file into place. + case $gnulib_modules in + *gettext-h*) ;; + *gettext*) + cp $GNULIB_SRCDIR/build-aux/po/Makefile.in.in po/Makefile.in.in || exit 1 + ;; + esac + if test -d runtime-po; then # Similarly for runtime-po/Makevars, but not quite the same. rm -f runtime-po/Makevars diff --git a/bootstrap.conf b/bootstrap.conf index eab6606..ea6f75b 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -308,8 +308,9 @@ gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\ # Build prerequisites buildreq="\ -autoconf 2.64 -automake 1.11.1 +automake-ng - +aclocal-ng - +autoconf 2.65 autopoint - bison - gettext 0.17 diff --git a/configure.ac b/configure.ac index 5a4860e..e327665 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ dnl Written by Jim Meyering. -AC_PREREQ([2.64]) +AC_PREREQ([2.65]) # Make inter-release version strings look like, e.g., v6.9-219-g58ddd, which # indicates that it is built from the 219th delta (in _some_ repository) @@ -32,7 +32,7 @@ AC_CONFIG_SRCDIR([src/ls.c]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADERS([lib/config.h:lib/config.hin]) -AM_INIT_AUTOMAKE([1.11.1 no-dist-gzip dist-xz color-tests parallel-tests]) +AM_INIT_AUTOMAKE([1.12a ng no-dist-gzip dist-xz color-tests parallel-tests]) AM_SILENT_RULES([yes]) # make --enable-silent-rules the default. dnl POSIXCHECK is worthwhile for maintainers, but adds several seconds diff --git a/m4/mkdirp-compat.m4 b/m4/mkdirp-compat.m4 new file mode 100644 index 0000000..0cec37f --- /dev/null +++ b/m4/mkdirp-compat.m4 @@ -0,0 +1,24 @@ +# mkdirp-compat.m4 serial 1 + +# Define of the macro 'AM_PROG_MKDIR_P', simply as an alias to +# the Autoconf-provided macro 'AC_PROG_MKDIR_P'. +# AM_PROG_MKDIR_P is still used by the Gettext-provided macro +# 'AM_PO_SUBDIRS', but has been removed in Automake-NG (as well +# as in the master branch of mainline Automake). + +# Copyright (C) 2012 Free Software Foundation, Inc. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +AC_DEFUN([AM_PROG_MKDIR_P], [AC_PROG_MKDIR_P]) -- 1.7.9.5 --------------040205090605010603070809-- From unknown Wed Aug 20 01:20:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11294: [RFC] build: support and require Automake-NG Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 08 May 2012 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11294 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Stefano Lattarini Cc: 11294@debbugs.gnu.org Received: via spool by 11294-submit@debbugs.gnu.org id=B11294.133650719130076 (code B ref 11294); Tue, 08 May 2012 20:00:02 +0000 Received: (at 11294) by debbugs.gnu.org; 8 May 2012 19:59:51 +0000 Received: from localhost ([127.0.0.1]:41681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRqZb-0007p3-IV for submit@debbugs.gnu.org; Tue, 08 May 2012 15:59:51 -0400 Received: from mx.meyering.net ([88.168.87.75]:50955) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRqZa-0007ow-2t for 11294@debbugs.gnu.org; Tue, 08 May 2012 15:59:50 -0400 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id 42CD560095; Tue, 8 May 2012 21:57:40 +0200 (CEST) From: Jim Meyering In-Reply-To: <4FA935CC.7000607@gmail.com> (Stefano Lattarini's message of "Tue, 08 May 2012 17:03:40 +0200") References: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> <4FA935CC.7000607@gmail.com> Date: Tue, 08 May 2012 21:57:40 +0200 Message-ID: <87ehqu4f9n.fsf@rho.meyering.net> Lines: 45 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.2 (/) Stefano Lattarini wrote: > On 04/21/2012 11:48 AM, Stefano Lattarini wrote: >> * configure.ac (AM_INIT_AUTOMAKE): Add the 'ng' option, to ensure that >> mainstream Automake is not used by mistake when bootstrapping. Also, >> bump the required Automake version from '1.11.1' to '1.11e', which is >> the latest (and still development-only) version of Automake-NG at the >> moment of writing. >> * bootstrap (check_versions): Hacked to handle automake and aclocal >> from Automake-NG specially. This change should be backported to Gnulib >> proper in a later step. >> * bootstrap.conf ($buildreq): Require "automake-ng" and "aclocal-ng" >> version >= 0.5; don't require mainstream "automake" anymore. >> >> Signed-off-by: Stefano Lattarini >> --- >> >> I'd like this to be applied to an experimental branch in the coreutils >> repository, which will be used to test and experiment with Automake-NG >> in a real-world, important, medium-complexity package like GNU coreutils >> is. >> >> I hope you'll agree this is a sensible move, which could bring advantages >> and improvements to both coreutils and Automake-NG. >> > I've updated the patch to take into account: > > - the recent bump in the Automake-NG version (1.11e => 1.12a); > - the bump in the minimal Autoconf version required by Automake-NG > (2.62 => 2.65); > - the support for Automake-NG recently added to the Gnulib-provided > bootstrap script > - the removal of the m4 macro 'AM_PROG_MKDIR_P' from the master > branch of the Automake repository (and thus from Automake-NG, > where 'master' is regularly merged). > > So, OK to apply this patch to a new branch in the coreutils official > repository? Or it's better if I clone the coreutils repo on GitHub > and work there, to have more freedom while experimenting? Hi Stefano, The git commit hooks that we use (e.g., to prohibit pushing merge commits) might well slow you down: I presume they'd have to be adjusted to permit merge commits or non-ff messiness) on that new branch. As you suggest, using another repository may be better. From unknown Wed Aug 20 01:20:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11294: [RFC] build: support and require Automake-NG Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 08 May 2012 23:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11294 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Jim Meyering Cc: 11294@debbugs.gnu.org Received: via spool by 11294-submit@debbugs.gnu.org id=B11294.133651865120848 (code B ref 11294); Tue, 08 May 2012 23:11:01 +0000 Received: (at 11294) by debbugs.gnu.org; 8 May 2012 23:10:51 +0000 Received: from localhost ([127.0.0.1]:41910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRtYR-0005QC-5E for submit@debbugs.gnu.org; Tue, 08 May 2012 19:10:51 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:56560) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRtYO-0005Pz-TZ for 11294@debbugs.gnu.org; Tue, 08 May 2012 19:10:49 -0400 Received: by wgbdq10 with SMTP id dq10so6247112wgb.15 for <11294@debbugs.gnu.org>; Tue, 08 May 2012 16:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tb8Zo6x/B33udW9RfloV/2lZru/wQvaN/kn8VMouRzU=; b=Ot1Hgq5McHo7Vjv9dwUEErTZ+bvajPYoNIUSfTW5c6aSMH6juaRzcKzJ+qfB8zYzq1 FfcqQurLkSs5Q1J12HVQ9XBFo6VCAF+0O334kpWFEvRsAZvPghejXrNM8XTws7eL9TY7 q0yDpgXSDbLJ7FfRnhaRYA8lYCC1+Wwsx4hk/srhppNQIF6e2xIVBBoMgzDymPzAhRHJ r4losWAetONWBiaNWL4gXYirzdrv82uu4DThq8EQdBRXxCVrep14Biv1rbR6ravL6Je0 oAZkpR0GCSslg8V5dnhwQ1RFShCoMRwKRUdlGE+dIGhvNTkrdVotq5lEro/BTXWhEBLg WLjQ== Received: by 10.180.8.231 with SMTP id u7mr28298162wia.9.1336518514397; Tue, 08 May 2012 16:08:34 -0700 (PDT) Received: from [82.56.31.124] (host124-31-dynamic.56-82-r.retail.telecomitalia.it. [82.56.31.124]) by mx.google.com with ESMTPS id ff2sm2696639wib.9.2012.05.08.16.08.32 (version=SSLv3 cipher=OTHER); Tue, 08 May 2012 16:08:33 -0700 (PDT) Message-ID: <4FA9A765.9070809@gmail.com> Date: Wed, 09 May 2012 01:08:21 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> <4FA935CC.7000607@gmail.com> <87ehqu4f9n.fsf@rho.meyering.net> In-Reply-To: <87ehqu4f9n.fsf@rho.meyering.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi Jim, thanks for the feedback. On 05/08/2012 09:57 PM, Jim Meyering wrote: > Stefano Lattarini wrote: >> >> So, OK to apply this patch to a new branch in the coreutils official >> repository? Or it's better if I clone the coreutils repo on GitHub >> and work there, to have more freedom while experimenting? > > Hi Stefano, > > The git commit hooks that we use (e.g., to prohibit pushing merge commits) > Ugh, why do you do that? > might well slow you down: I presume they'd have to be adjusted to permit > merge commits or non-ff messiness) on that new branch. > As you suggest, using another repository may be better. > OK. Here it is: If you can confirm that works correctly for you, feel free to close this bug report. Thanks, Stefano From unknown Wed Aug 20 01:20:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stefano Lattarini Subject: bug#11294: closed (Re: bug#11294: [RFC] build: support and require Automake-NG) Message-ID: References: <874nrp1s9z.fsf@rho.meyering.net> <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> X-Gnu-PR-Message: they-closed 11294 X-Gnu-PR-Package: coreutils Reply-To: 11294@debbugs.gnu.org Date: Wed, 09 May 2012 12:00:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1336564802-7403-1" This is a multi-part message in MIME format... ------------=_1336564802-7403-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11294: [RFC] build: support and require Automake-NG which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11294@debbugs.gnu.org. --=20 11294: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11294 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1336564802-7403-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11294-close) by debbugs.gnu.org; 9 May 2012 11:59:29 +0000 Received: from localhost ([127.0.0.1]:42367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SS5YH-0001uK-C8 for submit@debbugs.gnu.org; Wed, 09 May 2012 07:59:29 -0400 Received: from mx.meyering.net ([88.168.87.75]:53685) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SS5YE-0001uA-67 for 11294-close@debbugs.gnu.org; Wed, 09 May 2012 07:59:27 -0400 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id B418460555; Wed, 9 May 2012 13:57:12 +0200 (CEST) From: Jim Meyering To: Stefano Lattarini Subject: Re: bug#11294: [RFC] build: support and require Automake-NG In-Reply-To: <4FA9A765.9070809@gmail.com> (Stefano Lattarini's message of "Wed, 09 May 2012 01:08:21 +0200") References: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> <4FA935CC.7000607@gmail.com> <87ehqu4f9n.fsf@rho.meyering.net> <4FA9A765.9070809@gmail.com> Date: Wed, 09 May 2012 13:57:12 +0200 Message-ID: <874nrp1s9z.fsf@rho.meyering.net> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11294-close Cc: 11294-close@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefano Lattarini wrote: > Hi Jim, thanks for the feedback. > On 05/08/2012 09:57 PM, Jim Meyering wrote: >> Stefano Lattarini wrote: >>> >>> So, OK to apply this patch to a new branch in the coreutils official >>> repository? Or it's better if I clone the coreutils repo on GitHub >>> and work there, to have more freedom while experimenting? >> >> Hi Stefano, >> >> The git commit hooks that we use (e.g., to prohibit pushing merge commits) >> > Ugh, why do you do that? That update/push hook is to avoid accidental same-branch merges. Eventually I might relax it to allow cross-branch merges, though probably only with a small, fixed set of branch names. >> might well slow you down: I presume they'd have to be adjusted to permit >> merge commits or non-ff messiness) on that new branch. >> As you suggest, using another repository may be better. >> > OK. Here it is: > > > > If you can confirm that works correctly for you, feel free to close this > bug report. Thanks. Confirmed and done. ------------=_1336564802-7403-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Apr 2012 09:49:23 +0000 Received: from localhost ([127.0.0.1]:45086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLWwQ-0000sI-Vr for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:49:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41508) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLWwL-0000rz-2M for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:49:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLWvi-0000cC-9w for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:48:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWvi-0000c6-4C for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:48:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWvd-0007KX-83 for bug-coreutils@gnu.org; Sat, 21 Apr 2012 05:48:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLWvX-0000at-QG for bug-coreutils@gnu.org; Sat, 21 Apr 2012 05:48:28 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:49497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWvX-0000al-H7 for bug-coreutils@gnu.org; Sat, 21 Apr 2012 05:48:23 -0400 Received: by wgbdr1 with SMTP id dr1so7696747wgb.30 for ; Sat, 21 Apr 2012 02:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=Hg7tzahMO08KWmz6Hfo3WTz6D2UsHuxzGRrnKDgRMek=; b=cj0SIrb+zPAoIll7jxgStINwJTULjYw+iB7Eq6Cw2uRqzD4vrC1/JS8KmOg0SbQaPg wf477QudcPSkXVYG1m/TMeaP208ipF/kpHIk8QDQ1S1MtO5TmgyJdJnyhO0IUumTp3wz ApJSRiLu5JublcrDy9IEhPnqceaYRB/FmUjcIwnqaCiRVeXM+x1hPXzmeQVAIo9Sl2BC GbcQGEQw0hgcDfGi30E/362eWaU8Bvqc7k8wPsipx+seFqT/0PVzEPh/kC8NRb2GsfMO zX10a+CqnOzjq7f72YV0vRw+6vCkUX+sM4ecobrWFI2Z/0l0qRJ6NlLLDQbheYQMDJ+Q d63Q== Received: by 10.216.208.21 with SMTP id p21mr5781104weo.12.1335001700483; Sat, 21 Apr 2012 02:48:20 -0700 (PDT) Received: from localhost.localdomain (host63-99-dynamic.20-79-r.retail.telecomitalia.it. [79.20.99.63]) by mx.google.com with ESMTPS id 6sm4304316wiz.1.2012.04.21.02.48.16 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Apr 2012 02:48:18 -0700 (PDT) From: Stefano Lattarini To: bug-coreutils@gnu.org Subject: [RFC] build: support and require Automake-NG Date: Sat, 21 Apr 2012 11:48:03 +0200 Message-Id: <4593a9e0fae5fed172f9800b50451171f34b3f9c.1335001431.git.stefano.lattarini@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit Cc: Stefano Lattarini X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) * configure.ac (AM_INIT_AUTOMAKE): Add the 'ng' option, to ensure that mainstream Automake is not used by mistake when bootstrapping. Also, bump the required Automake version from '1.11.1' to '1.11e', which is the latest (and still development-only) version of Automake-NG at the moment of writing. * bootstrap (check_versions): Hacked to handle automake and aclocal from Automake-NG specially. This change should be backported to Gnulib proper in a later step. * bootstrap.conf ($buildreq): Require "automake-ng" and "aclocal-ng" version >= 0.5; don't require mainstream "automake" anymore. Signed-off-by: Stefano Lattarini --- I'd like this to be applied to an experimental branch in the coreutils repository, which will be used to test and experiment with Automake-NG in a real-world, important, medium-complexity package like GNU coreutils is. I hope you'll agree this is a sensible move, which could bring advantages and improvements to both coreutils and Automake-NG. Regards, Stefano bootstrap | 19 +++++++++++++++++++ bootstrap.conf | 3 ++- configure.ac | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index c8ee3cc..cc058bd 100755 --- a/bootstrap +++ b/bootstrap @@ -429,6 +429,25 @@ check_versions() { GZIP) ;; # Do not use $GZIP: it contains gzip options. *) eval "app=\${$appvar-$app}" ;; esac + + # Special handling for Automake-NG programs. They are still named as + # the mainstream Automake programs ("automake", "aclocal") to avoid + # gratuitous incompatibilities with pre-existing usages (by, say, + # autoreconf, or custom autogen.sh scripts), but correctly identify + # themselves (as being part of "GNU automake-ng") when asked their + # version. + case $app in + automake-ng|aclocal-ng) + app=`echo "$app" | sed 's/-ng$//'` + if ($app --version | grep '(GNU automake-ng)') >/dev/null 2>&1; then + : + else + echo "$me: Error: '$app' not found or not from Automake-NG" >&2 + ret=1 + continue + fi ;; + esac + if [ "$req_ver" = "-" ]; then # Merely require app to exist; not all prereq apps are well-behaved # so we have to rely on $? rather than get_version. diff --git a/bootstrap.conf b/bootstrap.conf index bb414ef..a2432aa 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -307,8 +307,9 @@ gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\ # Build prerequisites buildreq="\ +automake-ng - +aclocal-ng - autoconf 2.62 -automake 1.11.1 autopoint - bison - gettext 0.17 diff --git a/configure.ac b/configure.ac index 5a4860e..dab8b07 100644 --- a/configure.ac +++ b/configure.ac @@ -32,7 +32,7 @@ AC_CONFIG_SRCDIR([src/ls.c]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADERS([lib/config.h:lib/config.hin]) -AM_INIT_AUTOMAKE([1.11.1 no-dist-gzip dist-xz color-tests parallel-tests]) +AM_INIT_AUTOMAKE([1.11e ng no-dist-gzip dist-xz color-tests parallel-tests]) AM_SILENT_RULES([yes]) # make --enable-silent-rules the default. dnl POSIXCHECK is worthwhile for maintainers, but adds several seconds -- 1.7.9.5 ------------=_1336564802-7403-1--