From unknown Mon Jun 23 20:15:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8407 <8407@debbugs.gnu.org> To: bug#8407 <8407@debbugs.gnu.org> Subject: Status: aclocal installs third-party m4 files in directories specified with absolute paths, even if it is documented not to Reply-To: bug#8407 <8407@debbugs.gnu.org> Date: Tue, 24 Jun 2025 03:15:34 +0000 retitle 8407 aclocal installs third-party m4 files in directories specified= with absolute paths, even if it is documented not to reassign 8407 automake submitter 8407 Stefano Lattarini severity 8407 normal tag 8407 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 01 14:33:04 2011 Received: (at submit) by debbugs.gnu.org; 1 Apr 2011 18:33:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5j9c-0007Qi-JR for submit@debbugs.gnu.org; Fri, 01 Apr 2011 14:33:04 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5j9a-0007QE-Ce for submit@debbugs.gnu.org; Fri, 01 Apr 2011 14:33:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5j9U-0006gc-81 for submit@debbugs.gnu.org; Fri, 01 Apr 2011 14:32:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:41737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5j9T-0006fI-1H for submit@debbugs.gnu.org; Fri, 01 Apr 2011 14:32:56 -0400 Received: from [140.186.70.92] (port=39522 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5j9P-0005pb-TW for bug-automake@gnu.org; Fri, 01 Apr 2011 14:32:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5j9N-0006cf-MU for bug-automake@gnu.org; Fri, 01 Apr 2011 14:32:50 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:39469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5j9N-0006cH-HV; Fri, 01 Apr 2011 14:32:49 -0400 Received: by wwb39 with SMTP id 39so3816863wwb.30 for ; Fri, 01 Apr 2011 11:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:message-id; bh=TyWXk4q/cc6dnm2wSqpNjdI9767bWDjcX1+ZgEF7gvg=; b=M8uW7Mqk6SLz+S6+5ycoSRk3ETYybUzc6CER5Yws7F/Yf52OEQ7PAkKIWJqyJJALiP r0P4cofXsiQZ3AxXLES0f6c28BKquJb0R1PoHwQBfeDExYSa2XJu5KctIPfrqmcyXsgq BDaqOzuL2d/ygzu/CTksvOW0ZasHqIZiZbsr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; b=GP7P/wY8N5Q8iRYRduDhOrY7WeNSb03WkI3/qbuxA9O57oHrcNk/nkxQABlznhHyKy EvFMzb+eXvKdK/RmwODkAJTy3AoN5p4Ln/Uzl0rvS8CvS637BGsB0wrSyW/EA/y0N+bm 3aUqkqT9b9Q2kD4eo8yZnFV05N8jRLTTbMOOU= Received: by 10.216.138.66 with SMTP id z44mr4543544wei.87.1301682768605; Fri, 01 Apr 2011 11:32:48 -0700 (PDT) Received: from bigio.localnet (host229-93-dynamic.7-79-r.retail.telecomitalia.it [79.7.93.229]) by mx.google.com with ESMTPS id m73sm1130275wej.16.2011.04.01.11.32.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2011 11:32:47 -0700 (PDT) From: Stefano Lattarini To: bug-automake@gnu.org Subject: aclocal installs third-party m4 files in directories specified with absolute paths, even if it is documented not to Date: Fri, 1 Apr 2011 20:32:34 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <20110401132647.GD26736@gmx.de> <201104011555.44881.stefano.lattarini@gmail.com> In-Reply-To: <201104011555.44881.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_CphlN9FFdprQ/8I" Message-Id: <201104012032.34695.stefano.lattarini@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit Cc: Ralf Wildenhues , Javier, =?utf-8?q?Jard=C3=B3n?= , automake-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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.9 (----) --Boundary-00=_CphlN9FFdprQ/8I Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Reference to thread: Reference to parent message: On Friday 01 April 2011, Stefano Lattarini wrote: > On Friday 01 April 2011, Ralf Wildenhues wrote: > > * Stefano Lattarini wrote on Fri, Apr 01, 2011 at 03:13:19PM CEST: > > > On Friday 01 April 2011, Ralf Wildenhues wrote: > > > > Patch 2: > > > > - Should `--install -I $dir' also create an absolute $dir? > > > > > > > I think so. Why shouldn't it? > > > > Well, I don't understand what a legitimate use case would be, that's > > why. You need a relative path anyway for --install to copy files there. > > aclocal won't install to an absolute first -I directory, > > Unfortunately, this is not the case (even if such a behaviour is documented). For example, with aclocal 1.11.1: $ cd /tmp $ mkdir foo.dir $ cd foo.dir $ echo 'AC_INIT(x,0) AC_PROG_LIBTOOL' > configure.ac $ mkdir m4 $ aclocal --install -I `pwd`/m4 aclocal: installing `/tmp/foo.dir/m4/libtool.m4' from `/usr/share/aclocal/libtool.m4' aclocal: installing `/tmp/foo.dir/m4/ltoptions.m4' from `/usr/share/aclocal/ltoptions.m4' aclocal: installing `/tmp/foo.dir/m4/ltsugar.m4' from `/usr/share/aclocal/ltsugar.m4' aclocal: installing `/tmp/foo.dir/m4/ltversion.m4' from `/usr/share/aclocal/ltversion.m4' aclocal: installing `/tmp/foo.dir/m4/lt~obsolete.m4' from `/usr/share/aclocal/lt~obsolete.m4' $ ls -l m4 total 292 -rw-r--r-- 1 stefano stefano 260519 Apr 1 20:06 libtool.m4 -rw-r--r-- 1 stefano stefano 11938 Apr 1 20:06 ltoptions.m4 -rw-r--r-- 1 stefano stefano 4372 Apr 1 20:06 ltsugar.m4 -rw-r--r-- 1 stefano stefano 703 Apr 1 20:06 ltversion.m4 -rw-r--r-- 1 stefano stefano 5707 Apr 1 20:06 lt~obsolete.m4 The bug is present also in maint; see the attached testcase which should be an exposer. Regards, Stefano --Boundary-00=_CphlN9FFdprQ/8I Content-Type: application/x-shellscript; name="aclocal-install-absdir.test" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="aclocal-install-absdir.test" #! /bin/sh # Copyright (C) 2011 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 "aclocal --install" do not install files in absolute # directories. . ./defs || Exit 1 set -e cwd=`pwd` case $cwd in *$sp*|*$tab*) Exit 77;; esac cat >> configure.in << 'END' MY_MACRO END mkdir m4 dirlist-test # See the m4/dirlist file in the source tree. cat > dirlist-test/mymacro.m4 << 'END' AC_DEFUN([MY_MACRO], [:]) END ACLOCAL_TESTSUITE_FLAGS="-I $cwd/m4" $ACLOCAL --install ls -l m4 # For debugging. ls m4 | grep . && Exit 1 : --Boundary-00=_CphlN9FFdprQ/8I-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 02 03:57:19 2011 Received: (at 8407) by debbugs.gnu.org; 2 Apr 2011 07:57:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5vhv-000881-A4 for submit@debbugs.gnu.org; Sat, 02 Apr 2011 03:57:19 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5vhs-00087n-Q9 for 8407@debbugs.gnu.org; Sat, 02 Apr 2011 03:57:17 -0400 Received: by wyb29 with SMTP id 29so3452229wyb.3 for <8407@debbugs.gnu.org>; Sat, 02 Apr 2011 00:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=kxKZZsw4Oe1K2YQhRWvxP3GXIs6MkNIvXGvJ00g23Xg=; b=d0s0Z+Q5fCExERf/wCQWQMKOW98Cx4ktzPT9tfIGmoEaTaDWYwti6U/Y8JRDCh8vws Ufd5HeTnSkUhTiAd0kCewtk6MBUxVQ7ctWxP4zLZHbUIF42VPZ0CBebE8OzfOn971Stl xcc1xyY9JOcmIrWz3t6VNqDdOIKw0q8XIfeQ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=rO9xk71rBfhjRbeLayMhFolI43/e9UwidtiZg4tj0vijVouor4R18pYg8ivnQiqRyV ka8BXlAZv6A+widfac0YoAPDqv9ibGjMDTbk+aepTvdGf3XEJIAOSbr/VMfTg4Ho+qzs ZvtQwnWCOQDUbuNPdbVlerA6iL285J1Q8dVzY= Received: by 10.227.195.6 with SMTP id ea6mr5019533wbb.74.1301731030912; Sat, 02 Apr 2011 00:57:10 -0700 (PDT) Received: from bigio.localnet (host92-99-dynamic.5-87-r.retail.telecomitalia.it [87.5.99.92]) by mx.google.com with ESMTPS id l24sm1690578wbc.64.2011.04.02.00.57.09 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Apr 2011 00:57:09 -0700 (PDT) From: Stefano Lattarini To: automake-patches@gnu.org Subject: Re: bug#8407: aclocal installs third-party m4 files in directories specified with absolute paths, even if it is documented not to Date: Sat, 2 Apr 2011 09:56:59 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <201104011555.44881.stefano.lattarini@gmail.com> <201104012032.34695.stefano.lattarini@gmail.com> In-Reply-To: <201104012032.34695.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201104020957.00329.stefano.lattarini@gmail.com> X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8407 Cc: 8407@debbugs.gnu.org, Javier =?utf-8?q?Jard=C3=B3n?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -3.6 (---) On Friday 01 April 2011, Stefano Lattarini wrote: > Reference to thread: > > Reference to parent message: > > > On Friday 01 April 2011, Stefano Lattarini wrote: > > On Friday 01 April 2011, Ralf Wildenhues wrote: > > > * Stefano Lattarini wrote on Fri, Apr 01, 2011 at 03:13:19PM CEST: > > > > On Friday 01 April 2011, Ralf Wildenhues wrote: > > > > > Patch 2: > > > > > - Should `--install -I $dir' also create an absolute $dir? > > > > > > > > > I think so. Why shouldn't it? > > > > > > Well, I don't understand what a legitimate use case would be, that's > > > why. You need a relative path anyway for --install to copy files there. > > > aclocal won't install to an absolute first -I directory, > > > > Unfortunately, this is not the case (even if such a behaviour is > documented). For example, with aclocal 1.11.1: > > $ cd /tmp > $ mkdir foo.dir > $ cd foo.dir > $ echo 'AC_INIT(x,0) AC_PROG_LIBTOOL' > configure.ac > $ mkdir m4 > $ aclocal --install -I `pwd`/m4 > aclocal: installing `/tmp/foo.dir/m4/libtool.m4' from `/usr/share/aclocal/libtool.m4' > aclocal: installing `/tmp/foo.dir/m4/ltoptions.m4' from `/usr/share/aclocal/ltoptions.m4' > aclocal: installing `/tmp/foo.dir/m4/ltsugar.m4' from `/usr/share/aclocal/ltsugar.m4' > aclocal: installing `/tmp/foo.dir/m4/ltversion.m4' from `/usr/share/aclocal/ltversion.m4' > aclocal: installing `/tmp/foo.dir/m4/lt~obsolete.m4' from `/usr/share/aclocal/lt~obsolete.m4' > $ ls -l m4 > total 292 > -rw-r--r-- 1 stefano stefano 260519 Apr 1 20:06 libtool.m4 > -rw-r--r-- 1 stefano stefano 11938 Apr 1 20:06 ltoptions.m4 > -rw-r--r-- 1 stefano stefano 4372 Apr 1 20:06 ltsugar.m4 > -rw-r--r-- 1 stefano stefano 703 Apr 1 20:06 ltversion.m4 > -rw-r--r-- 1 stefano stefano 5707 Apr 1 20:06 lt~obsolete.m4 > > The bug is present also in maint; see the attached testcase which should > be an exposer. > > Regards, > Stefano > I've thought a little more about this, and I now think this bug shouldn't be fixed by changing the current aclocal real behaviour, but rather the documentation. I.e., we should make things simpler and consistent, and, when `--install' is used, simply copy third-party m4 files in the first directory specified by `-I', whether absolute or not. The rationale for this is that the only reason the documented `--install' behaviour would exist is to allow users to work around the non-existence of ACLOCAL_PATH by specifying ACLOCAL='aclocal -I /some/system/dir' (as Ralf pointed out) -- but we could solve the need of this workaround by applying the pending patches for ACLOCAL_PATH support Paolo has already written for us. WDYT? Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 27 10:03:33 2011 Received: (at 8407) by debbugs.gnu.org; 27 Dec 2011 15:03:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RfYYv-0004qB-6S for submit@debbugs.gnu.org; Tue, 27 Dec 2011 10:03:33 -0500 Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RfYYs-0004px-5h; Tue, 27 Dec 2011 10:03:31 -0500 Received: by wgbdq10 with SMTP id dq10so15470685wgb.15 for ; Tue, 27 Dec 2011 07:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=LAVV//8YRwPMmuxaZfCJcG3jf5dy1THxE3C8kyMdGoM=; b=C9qbPIRdguzw/klUYca+YmWhXEIrKHeZ8kHeY7XOuv6Yb7y2sjH43R7oP2yCwg+LtD SDRe1W8SWY/d+hM7JoTTNCKbXa6OcRPhlC4Zu+DaQdfvMuRc+FyFO5EuWNc4eqQzM12T MkcGbdmMKYXO3gzY14qMDCQNMV8XAMw35S7xE= Received: by 10.227.60.82 with SMTP id o18mr19103353wbh.0.1324998050582; Tue, 27 Dec 2011 07:00:50 -0800 (PST) Received: from [87.2.97.235] (host235-97-dynamic.2-87-r.retail.telecomitalia.it. [87.2.97.235]) by mx.google.com with ESMTPS id 1sm66306063wiz.11.2011.12.27.07.00.49 (version=SSLv3 cipher=OTHER); Tue, 27 Dec 2011 07:00:49 -0800 (PST) Message-ID: <4EF9DD9A.3040704@gmail.com> Date: Tue, 27 Dec 2011 16:00:42 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: automake-patches@gnu.org Subject: Re: bug#8407: aclocal installs third-party m4 files in directories specified with absolute paths, even if it is documented not to References: <201104011555.44881.stefano.lattarini@gmail.com> <201104012032.34695.stefano.lattarini@gmail.com> <201104020957.00329.stefano.lattarini@gmail.com> In-Reply-To: <201104020957.00329.stefano.lattarini@gmail.com> Content-Type: multipart/mixed; boundary="------------000502060303070305050409" X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 8407 Cc: 8407@debbugs.gnu.org, =?UTF-8?B?SmF2aWVyIEphcmTDs24=?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -3.9 (---) This is a multi-part message in MIME format. --------------000502060303070305050409 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit tags 8407 + patch close 8407 thanks Reference: I've applied the attached patch to maint, and I'm thus closing this bug report. Regards, and thanks for the patience, Stefano --------------000502060303070305050409 Content-Type: text/x-diff; name="0001-docs-aclocal-install-I-abs-dir-actually-copies-files.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-docs-aclocal-install-I-abs-dir-actually-copies-files.pa"; filename*1="tch" >From 44da9cbd7dbbdb858d11e8dcdf213c32be7e333c Mon Sep 17 00:00:00 2001 Message-Id: <44da9cbd7dbbdb858d11e8dcdf213c32be7e333c.1324998011.git.stefano.lattarini@gmail.com> From: Stefano Lattarini Date: Tue, 27 Dec 2011 14:55:41 +0100 Subject: [PATCH] docs: "aclocal --install -I /abs/dir" actually copies files This change is for automake bug#8407. In the past, there had been some debate and confusion about whether "aclocal --install" should copy third-party .m4 files in the first directory passed to the `-I' option even when such directory was given as an absolute path, or whether it was better to do so only for directories specified with a relative path. The rationale for this latter behaviour was that, before the existence of the `ACLOCAL_PATH' variable, the only way (a poor way, I might add) for a common user to extend the search path of a system-wide installation of aclocal was to export something like ACLOCAL="aclocal -I /my/extra/macros" in the environment. Today, the correct way to proceed is undoubtedly through the use of ACLOCAL_PATH, so we can settle the question once and for all, and start verifying the correct behaviour of `-I' with a new test. * tests/aclocal-install-absdir.test: New test. * tests/Makefile.am (TESTS): Add it. * doc/automake.texi (aclocal Options): Be more explicit about this part of `--install' semantics. --- ChangeLog | 28 ++++++++++++++++++++++++++++ doc/automake.texi | 2 ++ tests/Makefile.am | 1 + tests/aclocal-install-absdir.test | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 0 deletions(-) create mode 100644 tests/aclocal-install-absdir.test diff --git a/ChangeLog b/ChangeLog index 412d4d6..0d42cdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,31 @@ +2011-12-27 Stefano Lattarini + + docs: "aclocal --install -I /abs/dir" actually copies files + + This change is for automake bug#8407. + + In the past, there had been some debate and confusion about + whether "aclocal --install" should copy third-party .m4 files + in the first directory passed to the `-I' option even when + such directory was given as an absolute path, or whether it + was better to do so only for directories specified with a + relative path. + + The rationale for this latter behaviour was that, before the + existence of the `ACLOCAL_PATH' variable, the only way (a poor + way, I might add) for a common user to extend the search path + of a system-wide installation of aclocal was to export something + like ACLOCAL="aclocal -I /my/extra/macros" in the environment. + Today, the correct way to proceed is undoubtedly through the + use of ACLOCAL_PATH, so we can settle the question once and for + all, and start verifying the correct behaviour of `-I' with a + new test. + + * tests/aclocal-install-absdir.test: New test. + * tests/Makefile.am (TESTS): Add it. + * doc/automake.texi (aclocal Options): Be more explicit about + this part of `--install' semantics. + 2011-12-26 Stefano Lattarini docs: fix node names for automake and aclocal invocations diff --git a/doc/automake.texi b/doc/automake.texi index 3151620..86879d1 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -3224,6 +3224,8 @@ Add the directory @var{dir} to the list of directories searched for Install system-wide third-party macros into the first directory specified with @samp{-I @var{dir}} instead of copying them in the output file. +@c The following semantics is checked by `aclocal-install-absdir.test'. +Note that this will happen also if @var{dir} is an absolute path. @cindex serial number and @option{--install} When this option is used, and only when this option is used, diff --git a/tests/Makefile.am b/tests/Makefile.am index 5ac0e48..6ce7c53 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -78,6 +78,7 @@ acloca20.test \ acloca21.test \ acloca22.test \ aclocal-acdir.test \ +aclocal-install-absdir.test \ aclocal-print-acdir.test \ aclocal-path.test \ aclocal-path-install.test \ diff --git a/tests/aclocal-install-absdir.test b/tests/aclocal-install-absdir.test new file mode 100644 index 0000000..1a642b5 --- /dev/null +++ b/tests/aclocal-install-absdir.test @@ -0,0 +1,35 @@ +#! /bin/sh +# Copyright (C) 2011 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 "aclocal --install" install files also in directories +# passed to `-I' as absolute paths. Now that we support the +# ACLOCAL_PATH variable, it is clear that this is the right thing +# to do. See also automake bug#8407. + +. ./defs || Exit 1 + +set -e + +mkdir loc sys + +echo 'AM_DUMMY_MACRO' >> configure.in +echo 'AC_DEFUN([AM_DUMMY_MACRO], [:])' >> sys/foo.m4 + +cwd=`pwd` || fatal_ "cannot get current working directory" +env ACLOCAL_PATH="$cwd/sys" $ACLOCAL --verbose --install -I "$cwd/loc" +diff sys/foo.m4 loc/foo.m4 + +: -- 1.7.7.3 --------------000502060303070305050409-- From unknown Mon Jun 23 20:15:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 25 Jan 2012 12:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator