From unknown Sat Sep 20 12:21:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52500: misleading description of %reldir% Resent-From: Bruno Haible Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 15 Dec 2021 04:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52500 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 52500@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163954147021487 (code B ref -1); Wed, 15 Dec 2021 04:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Dec 2021 04:11:10 +0000 Received: from localhost ([127.0.0.1]:59966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxLdG-0005aU-1K for submit@debbugs.gnu.org; Tue, 14 Dec 2021 23:11:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:50142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxLdE-0005aM-NG for submit@debbugs.gnu.org; Tue, 14 Dec 2021 23:11:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxLdE-0006ZK-7e for bug-automake@gnu.org; Tue, 14 Dec 2021 23:11:08 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]:28011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxLdA-0005D0-Tt for bug-automake@gnu.org; Tue, 14 Dec 2021 23:11:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1639541460; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=NAsK/M0Bo+/L0fpXTpRlIqpWYcQzFqs3LOe7pfeXPLY=; b=IROGtVlcJ0ACVxHTriC3yPVQxqq6CqU/nI3z/rryt+QfZUEW8Ja6Upe8alkBJZoPUI K1bAtH5vzd1xGM2jwfcaM70R3aYmT/uIfOHr3GhTu8zweXS2e26i1AneWidXGHE1q3hD 8fCLutL6RlxUtHclfaH09TeD0SamxO4AjJmcNucynZG5oxCM+CJggQfU+ZVCkxAkLeow pIWWfUO5aPZEzj6IYVP+bCfcKEqPqkz2phTXxAJAjsuC0/dlDdnzGo/iMCQMuag6jkMU LrnzAV72twaXnSf8jbjfXovVfaHKxaE06u3fJYVK1lkPjHZffQUzjIOlm5jXHqwUw54f BlPw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94z26ll5ip69kkxbMhGItYzWgkQ0wVl6tBqhYOw==" X-RZG-CLASS-ID: mo00 Received: from omega.localnet by smtp.strato.de (RZmta 47.35.3 AUTH) with ESMTPSA id K01903xBF4B08Yt (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 15 Dec 2021 05:11:00 +0100 (CET) From: Bruno Haible Date: Wed, 15 Dec 2021 05:11:00 +0100 Message-ID: <6043170.uZKlY2gecq@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.22; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, The documentation https://www.gnu.org/software/automake/manual/automake.html#Include says: "A special feature is that if the fragment is in the same directory as the base Makefile.am (i.e., %reldir% is .), then %reldir% and %canon_reldir% will expand to the empty string as well as eat, if present, a following slash or underscore respectively." IMO, this paragraph implies that if the fragment is in the same directory as the base Makefile.am - %reldir% without a following slash expands to empty, - %canon_reldir% without a following underscore expands to empty. But this is not the case. (And if it were, the %reldir% and %canon_reldir% feature would be unusable.) In fact, %reldir% without a following slash expands to a dot, and %canon_reldir% without a following underscore expands to an underscore. Suggested new text: A special feature is that if the fragment is in the same directory as the base Makefile.am (i.e., %reldir% is .), then - %reldir% together with a following slash will expand to empty, - %canon_reldir% together with a following underscore will expand to empty as well. Bruno From unknown Sat Sep 20 12:21:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52500: misleading description of %reldir% References: <6043170.uZKlY2gecq@omega> Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 19 Dec 2021 02:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52500 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: bruno@clisp.org Cc: 52500@debbugs.gnu.org Received: via spool by 52500-submit@debbugs.gnu.org id=B52500.163988083426304 (code B ref 52500); Sun, 19 Dec 2021 02:28:02 +0000 Received: (at 52500) by debbugs.gnu.org; 19 Dec 2021 02:27:14 +0000 Received: from localhost ([127.0.0.1]:44603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mylus-0006qC-Bx for submit@debbugs.gnu.org; Sat, 18 Dec 2021 21:27:14 -0500 Received: from freefriends.org ([96.88.95.60]:52336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mylun-0006pr-8n; Sat, 18 Dec 2021 21:27:09 -0500 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 1BJ2R4So011729 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 18 Dec 2021 19:27:05 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 1BJ2R3cu011728; Sat, 18 Dec 2021 19:27:03 -0700 Date: Sat, 18 Dec 2021 19:27:03 -0700 Message-Id: <202112190227.1BJ2R3cu011728@freefriends.org> From: Karl Berry In-Reply-To: <6043170.uZKlY2gecq@omega> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Bruno, %reldir% without a following slash expands to a dot, and %canon_reldir% without a following underscore expands to an underscore. Suggested new text: A special feature is that if the fragment is in the same directory as the base Makefile.am (i.e., %reldir% is .), then - %reldir% together with a following slash will expand to empty, - %canon_reldir% together with a following underscore will expand to empty as well. Thanks much. I added the dot/underscore information you wrote as well. I pushed it, hope it looks ok ... -k @@ -10911,12 +10911,20 @@ Similarly, @code{%canon_reldir%} is replaced with the canonicalized is a synonym for @code{%canon_reldir%}. A special feature is that if the fragment is in the same directory as -the base @file{Makefile.am} (i.e., @code{%reldir%} is @code{.}), then -@code{%reldir%} and @code{%canon_reldir%} will expand to the empty -string as well as eat, if present, a following slash or underscore -respectively. +the base @file{Makefile.am} (i.e., @code{%reldir%} is @code{.}), then: + +@table @code +@item %reldir% +together with a following slash expands to the empty string, otherwise +it expands to a dot; + +@item %canon_reldir% +together with a following underscore expands to the empty string, otherwise +it expands to an underscore. + +@end table From unknown Sat Sep 20 12:21:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bruno Haible Subject: bug#52500: closed (Re: bug#52500: misleading description of %reldir%) Message-ID: References: <202112190227.1BJ2R3cu011728@freefriends.org> <6043170.uZKlY2gecq@omega> X-Gnu-PR-Message: they-closed 52500 X-Gnu-PR-Package: automake Reply-To: 52500@debbugs.gnu.org Date: Sun, 19 Dec 2021 02:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1639880882-26372-1" This is a multi-part message in MIME format... ------------=_1639880882-26372-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #52500: misleading description of %reldir% 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 52500@debbugs.gnu.org. --=20 52500: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52500 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1639880882-26372-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 52500-done) by debbugs.gnu.org; 19 Dec 2021 02:27:10 +0000 Received: from localhost ([127.0.0.1]:44601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myluo-0006q1-4y for submit@debbugs.gnu.org; Sat, 18 Dec 2021 21:27:10 -0500 Received: from freefriends.org ([96.88.95.60]:52336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mylun-0006pr-8n; Sat, 18 Dec 2021 21:27:09 -0500 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 1BJ2R4So011729 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 18 Dec 2021 19:27:05 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 1BJ2R3cu011728; Sat, 18 Dec 2021 19:27:03 -0700 Date: Sat, 18 Dec 2021 19:27:03 -0700 Message-Id: <202112190227.1BJ2R3cu011728@freefriends.org> From: Karl Berry To: bruno@clisp.org Subject: Re: bug#52500: misleading description of %reldir% In-Reply-To: <6043170.uZKlY2gecq@omega> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52500-done Cc: 52500@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Bruno, %reldir% without a following slash expands to a dot, and %canon_reldir% without a following underscore expands to an underscore. Suggested new text: A special feature is that if the fragment is in the same directory as the base Makefile.am (i.e., %reldir% is .), then - %reldir% together with a following slash will expand to empty, - %canon_reldir% together with a following underscore will expand to empty as well. Thanks much. I added the dot/underscore information you wrote as well. I pushed it, hope it looks ok ... -k @@ -10911,12 +10911,20 @@ Similarly, @code{%canon_reldir%} is replaced with the canonicalized is a synonym for @code{%canon_reldir%}. A special feature is that if the fragment is in the same directory as -the base @file{Makefile.am} (i.e., @code{%reldir%} is @code{.}), then -@code{%reldir%} and @code{%canon_reldir%} will expand to the empty -string as well as eat, if present, a following slash or underscore -respectively. +the base @file{Makefile.am} (i.e., @code{%reldir%} is @code{.}), then: + +@table @code +@item %reldir% +together with a following slash expands to the empty string, otherwise +it expands to a dot; + +@item %canon_reldir% +together with a following underscore expands to the empty string, otherwise +it expands to an underscore. + +@end table ------------=_1639880882-26372-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Dec 2021 04:11:10 +0000 Received: from localhost ([127.0.0.1]:59966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxLdG-0005aU-1K for submit@debbugs.gnu.org; Tue, 14 Dec 2021 23:11:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:50142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxLdE-0005aM-NG for submit@debbugs.gnu.org; Tue, 14 Dec 2021 23:11:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxLdE-0006ZK-7e for bug-automake@gnu.org; Tue, 14 Dec 2021 23:11:08 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]:28011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxLdA-0005D0-Tt for bug-automake@gnu.org; Tue, 14 Dec 2021 23:11:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1639541460; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=NAsK/M0Bo+/L0fpXTpRlIqpWYcQzFqs3LOe7pfeXPLY=; b=IROGtVlcJ0ACVxHTriC3yPVQxqq6CqU/nI3z/rryt+QfZUEW8Ja6Upe8alkBJZoPUI K1bAtH5vzd1xGM2jwfcaM70R3aYmT/uIfOHr3GhTu8zweXS2e26i1AneWidXGHE1q3hD 8fCLutL6RlxUtHclfaH09TeD0SamxO4AjJmcNucynZG5oxCM+CJggQfU+ZVCkxAkLeow pIWWfUO5aPZEzj6IYVP+bCfcKEqPqkz2phTXxAJAjsuC0/dlDdnzGo/iMCQMuag6jkMU LrnzAV72twaXnSf8jbjfXovVfaHKxaE06u3fJYVK1lkPjHZffQUzjIOlm5jXHqwUw54f BlPw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94z26ll5ip69kkxbMhGItYzWgkQ0wVl6tBqhYOw==" X-RZG-CLASS-ID: mo00 Received: from omega.localnet by smtp.strato.de (RZmta 47.35.3 AUTH) with ESMTPSA id K01903xBF4B08Yt (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 15 Dec 2021 05:11:00 +0100 (CET) From: Bruno Haible To: bug-automake@gnu.org Subject: misleading description of %reldir% Date: Wed, 15 Dec 2021 05:11:00 +0100 Message-ID: <6043170.uZKlY2gecq@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.22; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, The documentation https://www.gnu.org/software/automake/manual/automake.html#Include says: "A special feature is that if the fragment is in the same directory as the base Makefile.am (i.e., %reldir% is .), then %reldir% and %canon_reldir% will expand to the empty string as well as eat, if present, a following slash or underscore respectively." IMO, this paragraph implies that if the fragment is in the same directory as the base Makefile.am - %reldir% without a following slash expands to empty, - %canon_reldir% without a following underscore expands to empty. But this is not the case. (And if it were, the %reldir% and %canon_reldir% feature would be unusable.) In fact, %reldir% without a following slash expands to a dot, and %canon_reldir% without a following underscore expands to an underscore. Suggested new text: A special feature is that if the fragment is in the same directory as the base Makefile.am (i.e., %reldir% is .), then - %reldir% together with a following slash will expand to empty, - %canon_reldir% together with a following underscore will expand to empty as well. Bruno ------------=_1639880882-26372-1--