GNU bug report logs - #52500
misleading description of %reldir%

Previous Next

Package: automake;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Wed, 15 Dec 2021 04:12:02 UTC

Severity: normal

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52500 in the body.
You can then email your comments to 52500 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-automake <at> gnu.org:
bug#52500; Package automake. (Wed, 15 Dec 2021 04:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Haible <bruno <at> clisp.org>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Wed, 15 Dec 2021 04:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-automake <at> gnu.org
Subject: misleading description of %reldir%
Date: Wed, 15 Dec 2021 05:11:00 +0100
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







Information forwarded to bug-automake <at> gnu.org:
bug#52500; Package automake. (Sun, 19 Dec 2021 02:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 52500 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: bruno <at> clisp.org
Cc: 52500 <at> debbugs.gnu.org
Subject: Re: bug#52500: misleading description of %reldir%
Date: Sat, 18 Dec 2021 19:27:03 -0700
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




Reply sent to Karl Berry <karl <at> freefriends.org>:
You have taken responsibility. (Sun, 19 Dec 2021 02:28:02 GMT) Full text and rfc822 format available.

Notification sent to Bruno Haible <bruno <at> clisp.org>:
bug acknowledged by developer. (Sun, 19 Dec 2021 02:28:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 16 Jan 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.