Re: Possible bug with pattern-specific variables

2023-10-26 Thread Dmitry Goncharov
On Wed, Sep 27, 2023 at 9:33 AM Markus F.X.J. Oberhumer wrote: > Very stange GNU make behaviour with pattern-specific variables - note Thank you for your report. i attached a fix here https://savannah.gnu.org/bugs/index.php?64822 regards, Dmitry

[bug #64822] Fix appending to a pattern specific variable.

2023-10-26 Thread Dmitry Goncharov
Additional Item Attachment, bug #64822 (project make): File name: sv64822_test.diff Size:9 KB File name: sv64822_fix.diff Size:3 KB

[bug #64822] Fix appending to a pattern specific variable.

2023-10-26 Thread Dmitry Goncharov
Follow-up Comment #1, bug #64822 (project make): Markus Oberhumer reported a bug. Appending to a pattern specific variable produces an incorrect value in the presence of a command line definition or an env override of the variable. $ ls makefile $ cat makefile al%: hello+=pattern all:; $(info

[bug #64822] Fix appending to a pattern specific variable.

2023-10-26 Thread Dmitry Goncharov
URL: Summary: Fix appending to a pattern specific variable. Group: make Submitter: dgoncharov Submitted: Fri 27 Oct 2023 12:50:37 AM UTC Severity: 3 - Normal Ite

[bug #64818] patsubst shorthand documentation bug?

2023-10-26 Thread Paul D. Smith
Follow-up Comment #5, bug #64818 (project make): Andreas also missed a % :) $(patsubst %World,%Earth,$(STR)) ___ Reply to this item at: ___ Message s

[bug #64818] patsubst shorthand documentation bug?

2023-10-26 Thread Andreas Schwab
Follow-up Comment #4, bug #64818 (project make): You are missing the %. $(patsubst %World,Earth,$(STR)) ___ Reply to this item at: ___ Message sent via

[bug #64818] patsubst shorthand documentation bug?

2023-10-26 Thread Parminder Singh
Follow-up Comment #3, bug #64818 (project make): I rephrase my doubt, according to what the documentation says, if I run the following code with the 'make test' command the variables 'FOO' and 'FOO2' should have the same value STR = HelloWorld FOO = $(STR:World=Earth) FOO2 = $(patsubst World,Ea

[bug #64818] patsubst shorthand documentation bug?

2023-10-26 Thread Andreas Schwab
Follow-up Comment #2, bug #64818 (project make): The difference is that pattern contains a % bug suffix does not. This is explained in #Substitution-Refs. ___ Reply to this item at: _

[bug #64818] patsubst shorthand documentation bug?

2023-10-26 Thread Bahman Movaqar
Follow-up Comment #1, bug #64818 (project make): I think the different is that in the case of suffix, you can simply omit '%' . That is instead of $(objects:%.c=%.o) you can conveniently write $(objects:.c=.o). ___ Reply to this item at:

[bug #64818] patsubst shorthand documentation bug?

2023-10-26 Thread Parminder Singh
URL: Summary: patsubst shorthand documentation bug? Group: make Submitter: parmi93 Submitted: Thu 26 Oct 2023 01:52:37 PM UTC Severity: 3 - Normal Item Group: Bu