From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 01 Apr 2012 12:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 11146@debbugs.gnu.org Cc: texinfo-devel@gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133328347022464 (code B ref -1); Sun, 01 Apr 2012 12:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2012 12:31:10 +0000 Received: from localhost ([127.0.0.1]:34408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEJw5-0005qE-SS for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:31:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45123) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEJw3-0005q8-Qc for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEJvs-0003l0-8P for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:30:57 -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]:55268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEJvs-0003kw-3P for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:30:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEJvq-0004YD-FS for bug-automake@gnu.org; Sun, 01 Apr 2012 08:30:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEJvo-0003kY-Lh for bug-automake@gnu.org; Sun, 01 Apr 2012 08:30:53 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:37514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEJvo-0003kS-CN; Sun, 01 Apr 2012 08:30:52 -0400 Received: by werj55 with SMTP id j55so1564571wer.0 for ; Sun, 01 Apr 2012 05:30:48 -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:content-type :content-transfer-encoding; bh=dwAoKptHNrCdwZ4SZG4W55GWyRhnwpVXuxaYeYyqedU=; b=Cs8QLS9WjBWMvtNk+zD9RJ1Bpz37hdLmsmKgI/eSXjzzAF7p5IlBKi32U35gjc67bo /isA/Qht7W0IOd2j2vmBsFfTf4KStxFi8t+QTmz4WYg09ISaaJ1wxHDey2aisTz9yKcM 2lcejPmHOjodqX+alfig/lGRZ8E/yP+lURVFawyv4lIdyHxXOer30h/0sDL4ABhc6pwK HudckVufxJsGCBtuFAMF9qaNvPTJmC9jsSDKQiAtE2/Tx6QeElXRH8LSnzBk6raSwt00 KHYqrE5ePJxDLncUCqyUOXi7SFLQPEmWMxfS4eIIUybhRXg9neSCz8zD0uIxZTeHStiU LNoQ== Received: by 10.180.107.132 with SMTP id hc4mr14690203wib.21.1333283448565; Sun, 01 Apr 2012 05:30:48 -0700 (PDT) Received: from [87.2.92.238] (host238-92-dynamic.2-87-r.retail.telecomitalia.it. [87.2.92.238]) by mx.google.com with ESMTPS id ff2sm40018713wib.9.2012.04.01.05.30.44 (version=SSLv3 cipher=OTHER); Sun, 01 Apr 2012 05:30:47 -0700 (PDT) Message-ID: <4F784A6A.3010203@gmail.com> Date: Sun, 01 Apr 2012 14:30:34 +0200 From: Stefano Lattarini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 (------) Severity: wishlist thanks Hello everybody. Reading the texi2dvi manpage, I've stumbled on this interesting bit of information: --tidy: compile in a local *.t2d directory, where the auxiliary files are left. Output files are copied back to the original file. ... Using the `tidy' mode brings several advantages: - the current directory is not cluttered with plethora of temporary files. - clutter can be even reduced using --build-dir=dir: all the *.t2d directories are stored there. - if the compilation fails, the previous state of the output file is preserved. - PDF and DVI compilation are kept in separate subdirectories preventing any possibility of auxiliary file incompatibility. I think it would be nice if automake started to use the '--tidy' option of texi2vi in its PDF and DVI generation from .texi files. WDYT? Most importantly, is the '--tidy' option supported by all recently-ish Texinfo releases, or has it been introduced too recently to mandate its use in Automake-generated recipes? Regards, Stefano From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 01 Apr 2012 13:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 11146@debbugs.gnu.org Cc: texinfo-devel@gnu.org Received: via spool by 11146-submit@debbugs.gnu.org id=B11146.133328592826133 (code B ref 11146); Sun, 01 Apr 2012 13:13:02 +0000 Received: (at 11146) by debbugs.gnu.org; 1 Apr 2012 13:12:08 +0000 Received: from localhost ([127.0.0.1]:34413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEKZk-0006nS-0A for submit@debbugs.gnu.org; Sun, 01 Apr 2012 09:12:08 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:49398) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEKZg-0006nK-Rt for 11146@debbugs.gnu.org; Sun, 01 Apr 2012 09:12:06 -0400 Received: by wgbdq11 with SMTP id dq11so1988321wgb.15 for <11146@debbugs.gnu.org>; Sun, 01 Apr 2012 06:11:52 -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=P5ZhIKybqxSNGzV6YTzRFmnBqdUOIk6h3WbJMRHGlMk=; b=RhTyDCNp5q7QxkbxXTAXJHHxWIuX9Lebu68i/PxCGySzhplKyAFD9mSQslnjGKgBda +weN1tNueE5qdZzIwsWDi/T8JyjRXqwEFrmQS+tM6A1tqPAIjIzd7cjIWYkYxKwnX2wV 7Z+hOPe5XYLOyP8IHOqFs3qvbd9SB2OVmfSGNWVI/oFKB+T5nMnUuFMf/ZCTNf469p+l VOBAn6SbZgNWhFoElZnxWHEWdPCpLOYkjIAnJv5ClHp4sQIKMbqBSLFrh1BaV2GQtWHi 3Pq649ieydUyYdgu1UciAEWFsnIBVwb/mtiwUWavHkyjyU+8u6w801Vj6Rkdfwhr7Qu4 XhzA== Received: by 10.180.81.135 with SMTP id a7mr15660837wiy.16.1333285912517; Sun, 01 Apr 2012 06:11:52 -0700 (PDT) Received: from [87.2.92.238] (host238-92-dynamic.2-87-r.retail.telecomitalia.it. [87.2.92.238]) by mx.google.com with ESMTPS id fn2sm40603936wib.0.2012.04.01.06.11.50 (version=SSLv3 cipher=OTHER); Sun, 01 Apr 2012 06:11:51 -0700 (PDT) Message-ID: <4F785415.6040003@gmail.com> Date: Sun, 01 Apr 2012 15:11:49 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <4F784A6A.3010203@gmail.com> In-Reply-To: <4F784A6A.3010203@gmail.com> 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 (--) On 04/01/2012 02:30 PM, Stefano Lattarini wrote: > > Most importantly, is the '--tidy' option supported by all recently-ish > Texinfo releases, or has it been introduced too recently to mandate its > use in Automake-generated recipes? > I'll answer myself on this, by quoting the Texinfo NEWS file: 4.9 (29 June 2007) * GPLv3. * texi2dvi: . new mode --build=tidy which supports compilation in a separate directory, where intermediate files are preserved. So the option is almost five years old, and thus old enough to be required in Automake 1.12. I'll post a patch in the next days. Thanks, Stefano From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 01 Apr 2012 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 11146@debbugs.gnu.org Cc: "automake-patches@gnu.org" , texinfo-devel@gnu.org Received: via spool by 11146-submit@debbugs.gnu.org id=B11146.13333134063457 (code B ref 11146); Sun, 01 Apr 2012 20:51:02 +0000 Received: (at 11146) by debbugs.gnu.org; 1 Apr 2012 20:50:06 +0000 Received: from localhost ([127.0.0.1]:35113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SERiv-0000th-Td for submit@debbugs.gnu.org; Sun, 01 Apr 2012 16:50:06 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:47955) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SERis-0000tE-6m for 11146@debbugs.gnu.org; Sun, 01 Apr 2012 16:50:04 -0400 Received: by wgbdq11 with SMTP id dq11so2213634wgb.15 for <11146@debbugs.gnu.org>; Sun, 01 Apr 2012 13:49:48 -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=t2MsS150NHnD5+mvUPZRttrB5qbaHlSaRPx1kfiDY0A=; b=DIZdgK+RYaAQm5P/xMQcBWLS6N8wYQs7o6z9ltycer0BSNVaGK75238veixsAz8R1I C00uxyDmO1l9rxUfej1kXnF90GubZKLLOAoWaf4pp07O01KnZ+FuwT5dMiSMh4mvD1kn tGReTPtb7hY3nPJLFp36pWfGZupxG3Un4pFFtiFx0mxynWfaZXDqvMpBvodeJTkKjGK+ JfNWjz2cT89Z+8WO8bTLh1VAp/iEqUFDrjmXG2RC5DfwzDTW0W14uRDn3xxFZS2SU3cZ mb1bgV1J86pI+bazAua8oH1bSud1Mzp+r1iFfeRZByt9UrVxtiHn4aewvR/hs3Xz/pjJ FqQQ== Received: by 10.180.101.230 with SMTP id fj6mr18521070wib.13.1333313388126; Sun, 01 Apr 2012 13:49:48 -0700 (PDT) Received: from [79.20.99.17] (host17-99-dynamic.20-79-r.retail.telecomitalia.it. [79.20.99.17]) by mx.google.com with ESMTPS id n15sm28336240wiw.6.2012.04.01.13.49.45 (version=SSLv3 cipher=OTHER); Sun, 01 Apr 2012 13:49:46 -0700 (PDT) Message-ID: <4F78BF67.8060100@gmail.com> Date: Sun, 01 Apr 2012 22:49:43 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <4F784A6A.3010203@gmail.com> <4F785415.6040003@gmail.com> In-Reply-To: <4F785415.6040003@gmail.com> Content-Type: multipart/mixed; boundary="------------000602030400010908080105" X-Spam-Score: -0.9 (/) 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.9 (/) This is a multi-part message in MIME format. --------------000602030400010908080105 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: On 04/01/2012 03:11 PM, Stefano Lattarini wrote: > On 04/01/2012 02:30 PM, Stefano Lattarini wrote: >> >> Most importantly, is the '--tidy' option supported by all recently-ish >> Texinfo releases, or has it been introduced too recently to mandate its >> use in Automake-generated recipes? >> > I'll answer myself on this, by quoting the Texinfo NEWS file: > > 4.9 (29 June 2007) > * GPLv3. > * texi2dvi: > . new mode --build=tidy which supports compilation in a separate > directory, where intermediate files are preserved. > > So the option is almost five years old, and thus old enough to be > required in Automake 1.12. > On a second thought, bumping the requirement is something better done for Automake 1.13, after having given proper warnings in the NEWS file. For Automake 1.12, we might simply explicitly add the '--clean' option to the texi2dvi invocation. I'll thus apply to two attached patches to master in a couple of days if there is no objection. Regards, Stefano --------------000602030400010908080105 Content-Type: text/x-diff; name="0001-texinfo-don-t-clutter-the-builddir-when-using-modern.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-texinfo-don-t-clutter-the-builddir-when-using-modern.pa"; filename*1="tch" >From 7e7cc3350f6ee543a8546a72cc8e16f4f323885b Mon Sep 17 00:00:00 2001 Message-Id: <7e7cc3350f6ee543a8546a72cc8e16f4f323885b.1333313367.git.stefano.lattarini@gmail.com> From: Stefano Lattarini Date: Sun, 1 Apr 2012 21:55:09 +0200 Subject: [PATCH 1/2] texinfo: don't clutter the builddir when using modern texi2dvi In modern versions of texi2dvi (at least since version 1.135, which comes with Texinfo 4.13) the '-o' option does not imply anymore the '--clean' option. As a consequence, lots of TeX-generated auxiliary files are now left in the build directory by the 'pdf', 'ps' and 'dvi' rules. This is especially annoying with non-recursive setups having the '.texi' files in a subdirectory, as in: info_TEXINFOS = doc/foo.texi In this case, the stray auxiliary files are left in the top build directory (since TeX is run from there). See for example: See also automake bug#11146. * lib/am/texibuild.am: Call 'texi2dvi' and 'texi2pdf' with the '--clean' option. Update comments accordingly. * tests/txinfo-noclutter.test: New test. * tests/list-of-tests.mk: Add it. * NEWS: Update. Signed-off-by: Stefano Lattarini --- NEWS | 5 +++ lib/am/texibuild.am | 14 ++++++-- tests/list-of-tests.mk | 1 + tests/txinfo-no-clutter.test | 68 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+), 4 deletions(-) create mode 100755 tests/txinfo-no-clutter.test diff --git a/NEWS b/NEWS index 0a38d1d..3e54207 100644 --- a/NEWS +++ b/NEWS @@ -181,6 +181,11 @@ New in 1.11a: - The 'dist' and 'dist-all' targets now can run compressors in parallel. + - The rules to create pdf, dvi and ps output from Texinfo files now + works better with modern 'texi2dvi' script, by explicitly passing + it the '--clean' option to ensure stray auxiliary files are not + left to clutter the build directory. + - Automake can now generate silenced rules for texinfo outputs. - Some auxiliary files that are automatically distributed by Automake diff --git a/lib/am/texibuild.am b/lib/am/texibuild.am index 40f01e4..f77748a 100644 --- a/lib/am/texibuild.am +++ b/lib/am/texibuild.am @@ -68,8 +68,11 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX% ## Do not use '-o' unless necessary: it is only supported since Texinfo 4.1. ## texi2dvi doesn't silence everything with -q, redirect to /dev/null instead. ## We still want -q (%TEXIQUIET%) because it turns on batch mode. -?GENERIC? $(TEXI2DVI) %TEXIQUIET% %SOURCE% %TEXIDEVNULL% -?!GENERIC? $(TEXI2DVI) %TEXIQUIET% -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% +## Use '--clean' to avoid leaving auxiliary files behind cluttering the build +## directory (see automake bug#11146). We should start using '--tidy' when we +## can assume Texinf 4.9 or later. +?GENERIC? $(TEXI2DVI) %TEXIQUIET% --clean %SOURCE% %TEXIDEVNULL% +?!GENERIC? $(TEXI2DVI) %TEXIQUIET% --clean -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% ?GENERIC?%SOURCE_SUFFIX%.pdf: ?!GENERIC?%DEST_PREFIX%.pdf: %SOURCE% %DEPS% %DIRSTAMP% @@ -80,8 +83,11 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX% ## Do not use '-o' unless necessary: it is only supported since Texinfo 4.1. ## texi2pdf doesn't silence everything with -q, redirect to /dev/null instead. ## We still want -q (%TEXIQUIET%) because it turns on batch mode. -?GENERIC? $(TEXI2PDF) %TEXIQUIET% %SOURCE% %TEXIDEVNULL% -?!GENERIC? $(TEXI2PDF) %TEXIQUIET% -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% +## Use '--clean' to avoid leaving auxiliary files behind cluttering the build +## directory (see automake bug#11146). We should start using '--tidy' when we +## can assume Texinf 4.9 or later. +?GENERIC? $(TEXI2PDF) %TEXIQUIET% --clean %SOURCE% %TEXIDEVNULL% +?!GENERIC? $(TEXI2PDF) %TEXIQUIET% --clean -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% ?GENERIC?%SOURCE_SUFFIX%.html: ?!GENERIC?%DEST_PREFIX%.html: %SOURCE% %DEPS% %DIRSTAMP% diff --git a/tests/list-of-tests.mk b/tests/list-of-tests.mk index de022a2..f5d847f 100644 --- a/tests/list-of-tests.mk +++ b/tests/list-of-tests.mk @@ -1180,6 +1180,7 @@ txinfo30.test \ txinfo31.test \ txinfo32.test \ txinfo33.test \ +txinfo-no-clutter.test \ txinfo-unrecognized-extension.test \ transform.test \ transform2.test \ diff --git a/tests/txinfo-no-clutter.test b/tests/txinfo-no-clutter.test new file mode 100755 index 0000000..672b261 --- /dev/null +++ b/tests/txinfo-no-clutter.test @@ -0,0 +1,68 @@ +#! /bin/sh +# 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 2, 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 . + +# The pdf, ps and dvi targets shouldn't let clutter in the build directory. +# Related to automake bug#11146. + +required='makeinfo tex texi2dvi-o dvips' +. ./defs || Exit 1 + +mkdir sub + +echo AC_OUTPUT >> configure.ac + +cat > Makefile.am << 'END' +all-local: ps pdf dvi html +info_TEXINFOS = foo.texi sub/bar.texi +END + +cat > foo.texi << 'END' +\input texinfo +@setfilename foo.info +@settitle main +@node Top +Hello walls. +@include version.texi +@bye +END + +cat > sub/bar.texi << 'END' +\input texinfo +@setfilename bar.info +@settitle bar +@node Top +Hello walls. +@include version2.texi +@bye +END + +$ACLOCAL +$AUTOMAKE --add-missing +$AUTOCONF + +./configure + +# Try one by one, to ensure later targets don't involuntarily +# clean up potential cruft left by earlier ones. +for fmt in pdf ps dvi html all; do + ls -d foo* sub/bar* > lst + $EGREP -v '^(foo|sub/bar)\.(texi|dvi|ps|pdf|html)$' lst && Exit 1 + $MAKE clean +done + +$MAKE distcheck + +: -- 1.7.9 --------------000602030400010908080105 Content-Type: text/x-diff; name="0002-texinfo-warn-about-future-use-of-tidy.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0002-texinfo-warn-about-future-use-of-tidy.patch" >From 660dc87a1d4f874f975b0ba8141692851f3e037a Mon Sep 17 00:00:00 2001 Message-Id: <660dc87a1d4f874f975b0ba8141692851f3e037a.1333313367.git.stefano.lattarini@gmail.com> In-Reply-To: <7e7cc3350f6ee543a8546a72cc8e16f4f323885b.1333313367.git.stefano.lattarini@gmail.com> References: <7e7cc3350f6ee543a8546a72cc8e16f4f323885b.1333313367.git.stefano.lattarini@gmail.com> From: Stefano Lattarini Date: Sun, 1 Apr 2012 22:48:46 +0200 Subject: [PATCH 2/2] texinfo: warn about future use of '--tidy' Starting from the next major release of Automake (likely 1.13) we want to start passing the '--tidy' option to texi2dvi and texi2pdf invocations, so that auxiliary TeX-generated files can be kept around (thus speeding up rebuilding of DVI and PDF output) without cluttering the build directory too much. Since the '--tidy' option has only been introduced in Texinfo 4.9 (as documented in the Texinfo distribution's NEWS file), this also means that Makefiles generated by future Automake versions will require at least that version of Texinfo (at the time of writing four years and nine months old). The users should be warned about the planned behavioural change and the new version requirement it will entail. See also automake bug#11146. * NEWS (Planned Backward Incompatibilities): Add entry about use of the '--tidy' option and requirement of Texinfo 4.9. Signed-off-by: Stefano Lattarini --- NEWS | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 3e54207..1ed40da 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,12 @@ New in 1.11a: * WARNING: Future backward-incompatibilities! + - Starting from the next major Automake version (1.13), the rules to + build pdf, ps and dvi output from Texinfo input will use the '--tidy' + option by default. Since such an option has only been introduced in + Texinfo 4.9, this means that Makefiles generated by future Automake + versions will require at least that version of Texinfo. + - Starting from the next major Automake version (1.13), the parallel testsuite harness (previously only enabled by the 'parallel-tests' option) will become the default one; the older serial testsuite -- 1.7.9 --------------000602030400010908080105-- From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? References: <4F784A6A.3010203@gmail.com> Resent-From: karl@freefriends.org (Karl Berry) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 01 Apr 2012 21:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: stefano.lattarini@gmail.com Cc: 11146@debbugs.gnu.org, automake-patches@gnu.org, texinfo-devel@gnu.org Received: via spool by 11146-submit@debbugs.gnu.org id=B11146.13333141864625 (code B ref 11146); Sun, 01 Apr 2012 21:04:01 +0000 Received: (at 11146) by debbugs.gnu.org; 1 Apr 2012 21:03:06 +0000 Received: from localhost ([127.0.0.1]:35132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SERvW-0001CX-0J for submit@debbugs.gnu.org; Sun, 01 Apr 2012 17:03:06 -0400 Received: from b0.f7.net ([66.148.120.132]:39927 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SERvU-0001CQ-07 for 11146@debbugs.gnu.org; Sun, 01 Apr 2012 17:03:05 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (sls-af11p1.sea2.superbservers.com [127.0.0.1]) by freefriends.org (8.14.4/8.14.4) with ESMTP id q31L2mCI004776; Sun, 1 Apr 2012 14:02:51 -0700 Received: (from nobody@localhost) by freefriends.org (8.14.4/8.13.8/Submit) id q31L2lUs004775; Sun, 1 Apr 2012 14:02:47 -0700 Date: Sun, 1 Apr 2012 14:02:47 -0700 Message-Id: <201204012102.q31L2lUs004775@freefriends.org> X-Authentication-Warning: freefriends.org: nobody set sender to karl@freefriends.org using -f From: karl@freefriends.org (Karl Berry) In-Reply-To: <4F78BF67.8060100@gmail.com> X-Spam-Score: -1.9 (-) 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 (-) Since the '--tidy' option has only been introduced in Texinfo 4.9 More ordinary English syntax would be: Since the '--tidy' option was introduced in Texinfo 4.9 (Though the meaning is clear in the original.) The users should be warned about the planned behavioural change I have the impression that Automake (mostly) uses American English, rather than British English. Since that's where it was created, after all. Hence, I suggest: behavioral. The actual change seems fine to me, FWIW. karl From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 01 Apr 2012 21:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 11146@debbugs.gnu.org Cc: "automake-patches@gnu.org" Received: via spool by 11146-submit@debbugs.gnu.org id=B11146.13333152326130 (code B ref 11146); Sun, 01 Apr 2012 21:21:01 +0000 Received: (at 11146) by debbugs.gnu.org; 1 Apr 2012 21:20:32 +0000 Received: from localhost ([127.0.0.1]:35138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SESCN-0001ap-NG for submit@debbugs.gnu.org; Sun, 01 Apr 2012 17:20:32 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:62846) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SESCL-0001ag-En for 11146@debbugs.gnu.org; Sun, 01 Apr 2012 17:20:30 -0400 Received: by werb10 with SMTP id b10so1729587wer.3 for <11146@debbugs.gnu.org>; Sun, 01 Apr 2012 14:20:14 -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=TJsOT9qXc9XH2HjQaZQsxHXQ1W6/UYGkiG3fO2KEvks=; b=r9M9gRI66HkxKGTKuStbSM6ubCpS5Qktues2J/FlrYQ3GVkrDVlKsJuH3D86wAs8oW dXSmngHqqRsTJvzCWoqoBL8RZdTVo6DhQIkGeSDaUTfoOqc6OjRGxoOTDntR/PdCqGGv vqAxlKCoGBdvEwCTwE7rbR0B6T2bsvM9OQFqJXuLc6JjLsq8XMS7ya8Yyvzs9Cne5FVT x73qbgqpOy5Gzm2D/2FjUR/Emk1gEAYxzFGoc9GPEKwBh18eoNZ/KzmMQooNzI/NE0eb sKqzBK6cVrUTpWUhARkE5gjBdPrNevzghQk6d09Wzg18MlE9o7R3tS0AnlYMhWsSf7ts 2Xnw== Received: by 10.180.83.72 with SMTP id o8mr18213183wiy.5.1333315214129; Sun, 01 Apr 2012 14:20:14 -0700 (PDT) Received: from [79.20.99.17] (host17-99-dynamic.20-79-r.retail.telecomitalia.it. [79.20.99.17]) by mx.google.com with ESMTPS id gg2sm45804159wib.7.2012.04.01.14.20.11 (version=SSLv3 cipher=OTHER); Sun, 01 Apr 2012 14:20:12 -0700 (PDT) Message-ID: <4F78C689.9090506@gmail.com> Date: Sun, 01 Apr 2012 23:20:09 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <4F784A6A.3010203@gmail.com> <4F785415.6040003@gmail.com> <4F78BF67.8060100@gmail.com> In-Reply-To: <4F78BF67.8060100@gmail.com> Content-Type: multipart/mixed; boundary="------------050803020605060001070007" X-Spam-Score: -0.9 (/) 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.9 (/) This is a multi-part message in MIME format. --------------050803020605060001070007 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit [dropping texinfo-devel, as they shouldn't be interested in these details] On 04/01/2012 10:49 PM, Stefano Lattarini wrote: > > I'll thus apply to two attached patches to master in a couple of days > if there is no objection. > Ouch, the new test case was borked :-/ And the change broke another test, 'txinfo18.test' -- which in truth is made mostly obsolete by this change, and should thus be removed (and its still relevant checks moved into the new 'txinfo-no-clutter.test'). The amended patch is attached. Regards, and sorry for the noise, Stefano --------------050803020605060001070007 Content-Type: text/x-diff; name="0001-texinfo-don-t-clutter-the-builddir-when-using-modern.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-texinfo-don-t-clutter-the-builddir-when-using-modern.pa"; filename*1="tch" >From 1c5016878f7138bfb66ac9fbbf6f987985f8dd5a Mon Sep 17 00:00:00 2001 Message-Id: <1c5016878f7138bfb66ac9fbbf6f987985f8dd5a.1333315201.git.stefano.lattarini@gmail.com> From: Stefano Lattarini Date: Sun, 1 Apr 2012 21:55:09 +0200 Subject: [PATCH] texinfo: don't clutter the builddir when using modern texi2dvi In modern versions of texi2dvi (at least since version 1.135, which comes with Texinfo 4.13) the '-o' option does not imply anymore the '--clean' option. As a consequence, lots of TeX-generated auxiliary files are now left in the build directory by the 'pdf', 'ps' and 'dvi' rules. This is especially annoying with non-recursive setups having the '.texi' files in a subdirectory, as in: info_TEXINFOS = doc/foo.texi In this case, the stray auxiliary files are left in the top build directory (since TeX is run from there). See for example: See also automake bug#11146. * lib/am/texibuild.am: Call 'texi2dvi' and 'texi2pdf' with the '--clean' option. Update comments accordingly. * tests/txinfo-noclutter.test: New test. * tests/txinfo18.test: Remove as obsolete, the still relevant parts of it moved into the new test. * tests/list-of-tests.mk: Adjust. * NEWS: Update. Signed-off-by: Stefano Lattarini --- NEWS | 5 ++ lib/am/texibuild.am | 14 ++++-- tests/list-of-tests.mk | 2 +- tests/txinfo-no-clutter.test | 102 ++++++++++++++++++++++++++++++++++++++++++ tests/txinfo18.test | 75 ------------------------------- 5 files changed, 118 insertions(+), 80 deletions(-) create mode 100755 tests/txinfo-no-clutter.test delete mode 100755 tests/txinfo18.test diff --git a/NEWS b/NEWS index 0a38d1d..3e54207 100644 --- a/NEWS +++ b/NEWS @@ -181,6 +181,11 @@ New in 1.11a: - The 'dist' and 'dist-all' targets now can run compressors in parallel. + - The rules to create pdf, dvi and ps output from Texinfo files now + works better with modern 'texi2dvi' script, by explicitly passing + it the '--clean' option to ensure stray auxiliary files are not + left to clutter the build directory. + - Automake can now generate silenced rules for texinfo outputs. - Some auxiliary files that are automatically distributed by Automake diff --git a/lib/am/texibuild.am b/lib/am/texibuild.am index 40f01e4..f77748a 100644 --- a/lib/am/texibuild.am +++ b/lib/am/texibuild.am @@ -68,8 +68,11 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX% ## Do not use '-o' unless necessary: it is only supported since Texinfo 4.1. ## texi2dvi doesn't silence everything with -q, redirect to /dev/null instead. ## We still want -q (%TEXIQUIET%) because it turns on batch mode. -?GENERIC? $(TEXI2DVI) %TEXIQUIET% %SOURCE% %TEXIDEVNULL% -?!GENERIC? $(TEXI2DVI) %TEXIQUIET% -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% +## Use '--clean' to avoid leaving auxiliary files behind cluttering the build +## directory (see automake bug#11146). We should start using '--tidy' when we +## can assume Texinf 4.9 or later. +?GENERIC? $(TEXI2DVI) %TEXIQUIET% --clean %SOURCE% %TEXIDEVNULL% +?!GENERIC? $(TEXI2DVI) %TEXIQUIET% --clean -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% ?GENERIC?%SOURCE_SUFFIX%.pdf: ?!GENERIC?%DEST_PREFIX%.pdf: %SOURCE% %DEPS% %DIRSTAMP% @@ -80,8 +83,11 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX% ## Do not use '-o' unless necessary: it is only supported since Texinfo 4.1. ## texi2pdf doesn't silence everything with -q, redirect to /dev/null instead. ## We still want -q (%TEXIQUIET%) because it turns on batch mode. -?GENERIC? $(TEXI2PDF) %TEXIQUIET% %SOURCE% %TEXIDEVNULL% -?!GENERIC? $(TEXI2PDF) %TEXIQUIET% -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% +## Use '--clean' to avoid leaving auxiliary files behind cluttering the build +## directory (see automake bug#11146). We should start using '--tidy' when we +## can assume Texinf 4.9 or later. +?GENERIC? $(TEXI2PDF) %TEXIQUIET% --clean %SOURCE% %TEXIDEVNULL% +?!GENERIC? $(TEXI2PDF) %TEXIQUIET% --clean -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL% ?GENERIC?%SOURCE_SUFFIX%.html: ?!GENERIC?%DEST_PREFIX%.html: %SOURCE% %DEPS% %DIRSTAMP% diff --git a/tests/list-of-tests.mk b/tests/list-of-tests.mk index de022a2..9dd45ab 100644 --- a/tests/list-of-tests.mk +++ b/tests/list-of-tests.mk @@ -1164,7 +1164,6 @@ txinfo10.test \ txinfo13.test \ txinfo16.test \ txinfo17.test \ -txinfo18.test \ txinfo19.test \ txinfo20.test \ txinfo21.test \ @@ -1180,6 +1179,7 @@ txinfo30.test \ txinfo31.test \ txinfo32.test \ txinfo33.test \ +txinfo-no-clutter.test \ txinfo-unrecognized-extension.test \ transform.test \ transform2.test \ diff --git a/tests/txinfo-no-clutter.test b/tests/txinfo-no-clutter.test new file mode 100755 index 0000000..ae5e9f2 --- /dev/null +++ b/tests/txinfo-no-clutter.test @@ -0,0 +1,102 @@ +#! /bin/sh +# 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 2, 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 . + +# The pdf, ps and dvi targets shouldn't let clutter in the build directory. +# Related to automake bug#11146. + +required='makeinfo tex texi2dvi-o dvips' +. ./defs || Exit 1 + +mkdir sub + +echo AC_OUTPUT >> configure.ac + +cat > Makefile.am << 'END' +all-local: ps pdf dvi html +info_TEXINFOS = foo.texi sub/bar.texi +END + +cat > foo.texi << 'END' +\input texinfo +@setfilename foo.info +@settitle foo +@node Top +Hello walls. +@include version.texi +@bye +END + +cat > sub/bar.texi << 'END' +\input texinfo +@setfilename bar.info +@settitle bar +@node Top +Hello walls. +@include version2.texi +@bye +END + +cat > baz.texi << 'END' +\input texinfo +@setfilename baz.info +@settitle baz +@node Top +Hello walls. +@bye +END + +cat > baz.texi << 'END' +\input texinfo +@setfilename baz.info +@settitle baz +@defindex au +@defindex sa +@defindex sb +@synindex sa sb +@node Top +Hello walls. +@cindex foo +foo +@pindex bar +bar +@auindex baz +baz +@saindex sa +sa +@sbindex sb +sb +@bye +END + +$ACLOCAL +$AUTOMAKE --add-missing +$AUTOCONF + +./configure + +# Try one by one, to ensure later targets don't involuntarily +# clean up potential cruft left by earlier ones. +for fmt in info pdf ps dvi html all; do + $MAKE $fmt + ls -l . sub # For debugging. + ls -d foo* baz* sub/bar* > lst + $EGREP -v '^(foo|sub/bar|baz)\.(texi|dvi|ps|pdf|html|info)$' lst && Exit 1 + $MAKE clean +done + +$MAKE distcheck + +: diff --git a/tests/txinfo18.test b/tests/txinfo18.test deleted file mode 100755 index 22b096b..0000000 --- a/tests/txinfo18.test +++ /dev/null @@ -1,75 +0,0 @@ -#! /bin/sh -# Copyright (C) 2002-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 2, 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 . - -# Make sure we clean index files, even if they are not used at the top-level. -# Only *new* indexes need to be declared at the top-level. -# PR/375. - -required='makeinfo tex texi2dvi' -. ./defs || Exit 1 - -cat >> configure.ac << 'END' -AC_OUTPUT -END - -cat > Makefile.am << 'END' -info_TEXINFOS = main.texi -main_TEXINFOS = sub.texi -END - -cat > main.texi << 'END' -\input texinfo -@setfilename main.info -@settitle main -@defindex au -@defindex sa -@defindex sb -@synindex sa sb -@node Top -Hello walls. -@include sub.texi -@bye -END - -cat > sub.texi << 'END' -@cindex foo -foo -@pindex bar -bar -@auindex baz -baz -@saindex sa -sa -@sbindex sb -sb -END - -$ACLOCAL -$AUTOMAKE --add-missing -$AUTOCONF - -./configure - -$MAKE dvi -ls -l # For debugging. -test -f main.sa # Sanity check. -$MAKE clean -ls -l # For debugging. -test x"`echo main.*`" = x"main.texi" - -TAR_OPTIONS= $MAKE distcheck - -: -- 1.7.9 --------------050803020605060001070007-- From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 01 Apr 2012 21:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Karl Berry Cc: 11146@debbugs.gnu.org, automake-patches@gnu.org, texinfo-devel@gnu.org Received: via spool by 11146-submit@debbugs.gnu.org id=B11146.13333154416433 (code B ref 11146); Sun, 01 Apr 2012 21:24:02 +0000 Received: (at 11146) by debbugs.gnu.org; 1 Apr 2012 21:24:01 +0000 Received: from localhost ([127.0.0.1]:35142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SESFk-0001fi-Qq for submit@debbugs.gnu.org; Sun, 01 Apr 2012 17:24:01 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:61113) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SESFh-0001fZ-TB for 11146@debbugs.gnu.org; Sun, 01 Apr 2012 17:23:58 -0400 Received: by wibhr17 with SMTP id hr17so1929062wib.15 for <11146@debbugs.gnu.org>; Sun, 01 Apr 2012 14:23:45 -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=u5+O53gIloTn2iXTP/eXdHloUm3f8aY4/ejKrgNFL2k=; b=sfr1tmLlEoPEKCJ9kLNzWKWbTLNKL94QkRvh7AfASqF8aI21JZ5rJZ5O/xRS7GXqm1 P23uzqAdouhVzYL2TUPAyjB9Dhz3lVPN2s6IbMXzatNcgMl/1CWJq/xFYDjoNzUondKc 0XMjhHbQ+jieBxIfNeuhge9C241mcFBMqYynng5q517Va13dIiipHF3RTUxKFd9k5v3z KPxQYH98wF4Ooe2qaGlDotBaApobQjKurmRIekvtKsUQax3grI0Snd8uJ7NIbf7KxJeX h4JmRdWbZkNVceEuqm57ECihDC2f5vv10JWXYrsgtw04ImoY4Rlfwi0kSAXh/zxd6X9F A1BQ== Received: by 10.180.94.161 with SMTP id dd1mr18116645wib.16.1333315425064; Sun, 01 Apr 2012 14:23:45 -0700 (PDT) Received: from [79.20.99.17] (host17-99-dynamic.20-79-r.retail.telecomitalia.it. [79.20.99.17]) by mx.google.com with ESMTPS id j3sm45927637wiw.1.2012.04.01.14.23.43 (version=SSLv3 cipher=OTHER); Sun, 01 Apr 2012 14:23:43 -0700 (PDT) Message-ID: <4F78C75D.4020901@gmail.com> Date: Sun, 01 Apr 2012 23:23:41 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <201204012102.q31L2lUs004775@freefriends.org> In-Reply-To: <201204012102.q31L2lUs004775@freefriends.org> 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 Karl, thanks for the review. On 04/01/2012 11:02 PM, Karl Berry wrote: > Since the '--tidy' option has only been introduced in Texinfo > 4.9 > > More ordinary English syntax would be: > Since the '--tidy' option was introduced in Texinfo 4.9 > > (Though the meaning is clear in the original.) > > The users should be warned about the planned behavioural change > > I have the impression that Automake (mostly) uses American English, > rather than British English. Since that's where it was created, after > all. Hence, I suggest: behavioral. > Both your objections are correct, and I've amended my patch to address them. > The actual change seems fine to me, FWIW. > Good :-) Thanks, Stefano From unknown Mon Jun 23 20:18:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 04 Apr 2012 09:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11146 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 11146@debbugs.gnu.org Cc: "automake-patches@gnu.org" , texinfo-devel@gnu.org Received: via spool by 11146-submit@debbugs.gnu.org id=B11146.133353276417721 (code B ref 11146); Wed, 04 Apr 2012 09:47:01 +0000 Received: (at 11146) by debbugs.gnu.org; 4 Apr 2012 09:46:04 +0000 Received: from localhost ([127.0.0.1]:39059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SFMmx-0004bl-Fq for submit@debbugs.gnu.org; Wed, 04 Apr 2012 05:46:04 -0400 Received: from mail-lpp01m010-f44.google.com ([209.85.215.44]:59194) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SFMmv-0004bN-2K for 11146@debbugs.gnu.org; Wed, 04 Apr 2012 05:46:02 -0400 Received: by lagj5 with SMTP id j5so88353lag.3 for <11146@debbugs.gnu.org>; Wed, 04 Apr 2012 02:45:33 -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=MQF2MSeTv0FOD+YMJ7yAzN4NTIGvZA++ragou1YMQeE=; b=PrdsRMuDppKUE1K+by1tMJd09V9qgjdrgalD77vEVOGiSyjUmmGhAwVDCm1PQN1C1x xmUs4Ay13Z722uiYvDNtESDo7Jgc2PVI9hAOMsgTMO+KG7jYnrrQY9xVcnVDwoDW+zLK whbpmXoajppj08tJbM4l0FBdFMjsoq60IfM1F1vwuj6MCiPl/1OVB9NpuGtWY/HNez3B 4vVP3qBk7gV6gDV3hk54Rh81+jEgSfvBiZ9Oak1PzRsx8KmImoLgTh9Cs1TzMYwqrmix OWwK7hMyjapvTww7aplRCf4dHtsGgIJ+JVdE6IytMM2WuFINSam7+Mx9mvEI+MoNVxj2 ybtQ== Received: by 10.152.122.80 with SMTP id lq16mr2805530lab.37.1333532733539; Wed, 04 Apr 2012 02:45:33 -0700 (PDT) Received: from [79.7.94.4] (host4-94-dynamic.7-79-r.retail.telecomitalia.it. [79.7.94.4]) by mx.google.com with ESMTPS id b3sm189356lby.7.2012.04.04.02.45.32 (version=SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:45:33 -0700 (PDT) Message-ID: <4F7C1835.40403@gmail.com> Date: Wed, 04 Apr 2012 11:45:25 +0200 From: Stefano Lattarini MIME-Version: 1.0 References: <4F784A6A.3010203@gmail.com> <4F785415.6040003@gmail.com> <4F78BF67.8060100@gmail.com> In-Reply-To: <4F78BF67.8060100@gmail.com> 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 (--) On 04/01/2012 10:49 PM, Stefano Lattarini wrote: > References: > > > > On 04/01/2012 03:11 PM, Stefano Lattarini wrote: >> On 04/01/2012 02:30 PM, Stefano Lattarini wrote: >>> >>> Most importantly, is the '--tidy' option supported by all recently-ish >>> Texinfo releases, or has it been introduced too recently to mandate its >>> use in Automake-generated recipes? >>> >> I'll answer myself on this, by quoting the Texinfo NEWS file: >> >> 4.9 (29 June 2007) >> * GPLv3. >> * texi2dvi: >> . new mode --build=tidy which supports compilation in a separate >> directory, where intermediate files are preserved. >> >> So the option is almost five years old, and thus old enough to be >> required in Automake 1.12. >> > On a second thought, bumping the requirement is something better done > for Automake 1.13, after having given proper warnings in the NEWS file. > For Automake 1.12, we might simply explicitly add the '--clean' option > to the texi2dvi invocation. > > I'll thus apply to two attached patches to master in a couple of days > if there is no objection. > Pushed now. Regards, Stefano From unknown Mon Jun 23 20:18:31 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#11146: closed (Re: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules?) Message-ID: References: <4FE836E4.9070004@gmail.com> <4F784A6A.3010203@gmail.com> X-Gnu-PR-Message: they-closed 11146 X-Gnu-PR-Package: automake Reply-To: 11146@debbugs.gnu.org Date: Mon, 25 Jun 2012 10:06:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1340618763-18091-1" This is a multi-part message in MIME format... ------------=_1340618763-18091-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11146: texinfo: could automake start using the '--tidy' option in its dvi = and pdf rules? which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11146@debbugs.gnu.org. --=20 11146: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11146 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1340618763-18091-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11146-done) by debbugs.gnu.org; 25 Jun 2012 10:05:19 +0000 Received: from localhost ([127.0.0.1]:56161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sj6AV-0004gM-Il for submit@debbugs.gnu.org; Mon, 25 Jun 2012 06:05:19 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:41446) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sj6AO-0004g4-LC for 11146-done@debbugs.gnu.org; Mon, 25 Jun 2012 06:05:13 -0400 Received: by bkty8 with SMTP id y8so2899467bkt.3 for <11146-done@debbugs.gnu.org>; Mon, 25 Jun 2012 03:01:13 -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:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+ZGo8it9kjpttkBdPWk5ldC5B0gg8wsI2HeWZkVGJRQ=; b=k1aSlG41fHJMSoqpxMNCQWRmpqwPTlkkQaDzU1/C3RoH10w9xp1wxWcEo0B0eD+tIr pI9BxohLO5kXSgs+KvyXt6UjEOMKh5nTZ/Vz7AoB1GnrQT1OUCmOKEOaeSD+GuLsK1Jy EUMRe9QzHRInagvv8/q14CHjq3aVZQj6bpCm4W7xKUjWlQcrzjlL21cylI7mk/NyoqR3 g89+K/gRCuOmEnQLtuKBO79LvgeXnrSpS8ZvvMBWV7C3QQaflsaxPKGF+2KmoFjdqekJ ys5kMSKwdVOeyvJcd8l1/HKfLwmPARmehfo3giLoFztxzTvw3WHNYsj43WAS/GAZUob6 dfrQ== Received: by 10.205.123.9 with SMTP id gi9mr3660894bkc.50.1340618473188; Mon, 25 Jun 2012 03:01:13 -0700 (PDT) Received: from [87.4.96.175] (host175-96-dynamic.4-87-r.retail.telecomitalia.it. [87.4.96.175]) by mx.google.com with ESMTPS id ig1sm45767668bkc.4.2012.06.25.03.01.11 (version=SSLv3 cipher=OTHER); Mon, 25 Jun 2012 03:01:12 -0700 (PDT) Message-ID: <4FE836E4.9070004@gmail.com> Date: Mon, 25 Jun 2012 12:01:08 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: 11146-done@debbugs.gnu.org Subject: Re: bug#11146: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? References: <4F784A6A.3010203@gmail.com> <4F785415.6040003@gmail.com> <4F78BF67.8060100@gmail.com> <4F7C1835.40403@gmail.com> In-Reply-To: <4F7C1835.40403@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11146-done 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 (--) On 04/04/2012 11:45 AM, Stefano Lattarini wrote: > >> I'll thus apply to two attached patches to master in a couple of days >> if there is no objection. >> > Pushed now. > And the proposal for using '--tidy' in Automake 1.13 has been (basically) implemented as part of this commit: Actually, we ended up using per-manual and per-format '--build-dir' options, to work around a bug still present in Texinfo 4.13 (but fixed in CVS Texinfo) that could cause racy failures in parallel builds; but the effect of such option is similar to the one we wanted to obtain using '--tidy'. The commit message of that change should explain in more details. I'm thus closing this bug report. Regards, Stefano ------------=_1340618763-18091-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Apr 2012 12:31:10 +0000 Received: from localhost ([127.0.0.1]:34408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEJw5-0005qE-SS for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:31:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45123) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEJw3-0005q8-Qc for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEJvs-0003l0-8P for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:30:57 -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]:55268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEJvs-0003kw-3P for submit@debbugs.gnu.org; Sun, 01 Apr 2012 08:30:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEJvq-0004YD-FS for bug-automake@gnu.org; Sun, 01 Apr 2012 08:30:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEJvo-0003kY-Lh for bug-automake@gnu.org; Sun, 01 Apr 2012 08:30:53 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:37514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEJvo-0003kS-CN; Sun, 01 Apr 2012 08:30:52 -0400 Received: by werj55 with SMTP id j55so1564571wer.0 for ; Sun, 01 Apr 2012 05:30:48 -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:content-type :content-transfer-encoding; bh=dwAoKptHNrCdwZ4SZG4W55GWyRhnwpVXuxaYeYyqedU=; b=Cs8QLS9WjBWMvtNk+zD9RJ1Bpz37hdLmsmKgI/eSXjzzAF7p5IlBKi32U35gjc67bo /isA/Qht7W0IOd2j2vmBsFfTf4KStxFi8t+QTmz4WYg09ISaaJ1wxHDey2aisTz9yKcM 2lcejPmHOjodqX+alfig/lGRZ8E/yP+lURVFawyv4lIdyHxXOer30h/0sDL4ABhc6pwK HudckVufxJsGCBtuFAMF9qaNvPTJmC9jsSDKQiAtE2/Tx6QeElXRH8LSnzBk6raSwt00 KHYqrE5ePJxDLncUCqyUOXi7SFLQPEmWMxfS4eIIUybhRXg9neSCz8zD0uIxZTeHStiU LNoQ== Received: by 10.180.107.132 with SMTP id hc4mr14690203wib.21.1333283448565; Sun, 01 Apr 2012 05:30:48 -0700 (PDT) Received: from [87.2.92.238] (host238-92-dynamic.2-87-r.retail.telecomitalia.it. [87.2.92.238]) by mx.google.com with ESMTPS id ff2sm40018713wib.9.2012.04.01.05.30.44 (version=SSLv3 cipher=OTHER); Sun, 01 Apr 2012 05:30:47 -0700 (PDT) Message-ID: <4F784A6A.3010203@gmail.com> Date: Sun, 01 Apr 2012 14:30:34 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: bug-automake@gnu.org Subject: texinfo: could automake start using the '--tidy' option in its dvi and pdf rules? Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: texinfo-devel@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: -6.1 (------) Severity: wishlist thanks Hello everybody. Reading the texi2dvi manpage, I've stumbled on this interesting bit of information: --tidy: compile in a local *.t2d directory, where the auxiliary files are left. Output files are copied back to the original file. ... Using the `tidy' mode brings several advantages: - the current directory is not cluttered with plethora of temporary files. - clutter can be even reduced using --build-dir=dir: all the *.t2d directories are stored there. - if the compilation fails, the previous state of the output file is preserved. - PDF and DVI compilation are kept in separate subdirectories preventing any possibility of auxiliary file incompatibility. I think it would be nice if automake started to use the '--tidy' option of texi2vi in its PDF and DVI generation from .texi files. WDYT? Most importantly, is the '--tidy' option supported by all recently-ish Texinfo releases, or has it been introduced too recently to mandate its use in Automake-generated recipes? Regards, Stefano ------------=_1340618763-18091-1--