bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9587: [PATCH] Automake claims $(*F), $(<D), etc. are non-POSIX.


From: Bogdan
Subject: bug#9587: [PATCH] Automake claims $(*F), $(<D), etc. are non-POSIX.
Date: Thu, 23 Mar 2023 20:57:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

Hello again.

The attached patch allows the following symbols not to cause Automake errors about non-POSIX variables (and updates the test):

$(@F) $(%F) $(?F) $(<F) $(*F) $(@D) $(%D) $(?D) $(<D) $(*D) $(%) $(?) $(<) $(*) $% $? $< $*

I don't have the POSIX standard and didn't find any references to POSIX variables in GNU make's manual, so I assume the quotation in the defect report is correct.

The patch doesn't do anything to check if the variables are supported by the end-user's 'make', because it's not the end-user's 'make' which decides what is portable or not. The message is not changed either.

I don't know if "$(<:.foo=.bar)" should be allowed, but that seems to be taken care of in lib/Automake/Variable.pm:scan_variable_expansions anyway (resulting in just "<" in this example).

 Fixes bug#9587.

--
Regards - Bogdan ('bogdro') D.                 (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux):    http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft  http://bogdro.evai.pl/soft4asm
www.Xiph.org  www.TorProject.org  www.LibreOffice.org  www.GnuPG.org

Attachment: automake-posix-vars-mail.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]