Re: Unexpected failure in tricky use of eval

2012-05-14 Thread Stefano Lattarini
On 05/14/2012 05:10 PM, Paul Smith wrote: > On Mon, 2012-05-14 at 00:14 +0200, Stefano Lattarini wrote: > LAZYVAR = $(override LAZYVAR := val)$(LAZY) >>> >>> I don't have any idea what this is supposed to do... it doesn't make any >>> sense as written. >>> >> In fact, it should have been

Re: Unexpected failure in tricky use of eval

2012-05-14 Thread Paul Smith
On Mon, 2012-05-14 at 00:14 +0200, Stefano Lattarini wrote: > >> LAZYVAR = $(override LAZYVAR := val)$(LAZY) > > > > I don't have any idea what this is supposed to do... it doesn't make any > > sense as written. > > > In fact, it should have been s/$(LAZY)/$(LAZYVAR)/. Sorry for the confusio

Re: Unexpected failure in tricky use of eval

2012-05-13 Thread Stefano Lattarini
On 05/13/2012 09:45 PM, Paul Smith wrote: > On Sat, 2012-05-12 at 19:42 +0200, Stefano Lattarini wrote: >> BTW: to make it more easy to discover at make runtime whether the bug has >> been fixed in the make version in use, could a proper new entry be added >> to .FEATURES? Maybe 'can-have-lazy-var

Re: Unexpected failure in tricky use of eval

2012-05-13 Thread Paul Smith
On Sat, 2012-05-12 at 19:42 +0200, Stefano Lattarini wrote: > BTW: to make it more easy to discover at make runtime whether the bug has > been fixed in the make version in use, could a proper new entry be added > to .FEATURES? Maybe 'can-have-lazy-variables'? (I know, I suck at choosing > names).

"Lazy" variables in GNU make (was: Re: Unexpected failure in tricky use of eval)

2012-05-13 Thread Stefano Lattarini
On 05/12/2012 07:42 PM, Stefano Lattarini wrote: > On 05/12/2012 05:21 PM, Stefano Lattarini wrote: >> On 05/12/2012 04:41 PM, Eldar Abusalimov wrote: >>> Stefano, >>> >>> This is a bug, and it has been described and fixed here: >>> https://savannah.gnu.org/patch/?7534 >>> >> Thank you very much fo

Re: Unexpected failure in tricky use of eval

2012-05-12 Thread Stefano Lattarini
On 05/12/2012 05:21 PM, Stefano Lattarini wrote: > On 05/12/2012 04:41 PM, Eldar Abusalimov wrote: >> Stefano, >> >> This is a bug, and it has been described and fixed here: >> https://savannah.gnu.org/patch/?7534 >> > Thank you very much for the reference. Too bad this bug will prevent > me from

Re: Unexpected failure in tricky use of eval

2012-05-12 Thread Stefano Lattarini
On 05/12/2012 04:41 PM, Eldar Abusalimov wrote: > Stefano, > > This is a bug, and it has been described and fixed here: > https://savannah.gnu.org/patch/?7534 > Thank you very much for the reference. Too bad this bug will prevent me from using the lazy-evaluation trick with any GNU make < 3.83 :

Re: Unexpected failure in tricky use of eval

2012-05-12 Thread Eldar Abusalimov
Stefano, This is a bug, and it has been described and fixed here: https://savannah.gnu.org/patch/?7534 2012/5/12 Stefano Lattarini > Hello. > > While trying to implement a kind of memoization of lazy macros in GNU make > (needed for my work on Automake-NG), I've been encountering some strange

Unexpected failure in tricky use of eval

2012-05-12 Thread Stefano Lattarini
Hello. While trying to implement a kind of memoization of lazy macros in GNU make (needed for my work on Automake-NG), I've been encountering some strange failure in GNU make (present in all of 3.80, 3.81, 3.82). Here is the minimal reproducer I've been able to find: mufoofoo = \ x