[Top][All Lists]

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

Yet another bug in Lex/Yacc support (maintainer-mode).

From: Stefano Lattarini
Subject: Yet another bug in Lex/Yacc support (maintainer-mode).
Date: Thu, 16 Sep 2010 18:34:06 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

Hello Automakers.

While trying to improve and extend test `mmodely.test', I stumbled
upon the bug exposed by the attached test script (weird bug, BTW:
it's triggered with GNU make and FreeBSD make, but not with Solaris
make; role reversal for once ;-).

I suspect the bug is due to some incomplete VPATH rewrite somewhere
in automake; I tried this simplicistic patch:

 diff --git a/lib/am/lex.am b/lib/am/lex.am
 index fb4077d..a9cedbd 100644
 --- a/lib/am/lex.am
 +++ b/lib/am/lex.am
 @@ -18,7 +18,7 @@
  ## See the comment about am__skipyacc in yacc.am.
  if %?FIRST%
 address@hidden@am__skiplex = test -f $@ ||
 address@hidden@am__skiplex = test -f '$@' || test -f '$(srcdir)/$@' ||
  endif %?FIRST%
 diff --git a/lib/am/yacc.am b/lib/am/yacc.am
 index 6d35cd4..06bab7b 100644
 --- a/lib/am/yacc.am
 +++ b/lib/am/yacc.am
 @@ -35,7 +35,7 @@
  ## use non-generic rules.
 if %?FIRST%
 address@hidden@am__skipyacc = test -f $@ ||
 address@hidden@am__skipyacc = test -f '$@' || test -f '$(srcdir)/$@' ||
  endif %?FIRST%
but it did no good (failure still there, although due to a different
reason apparently).

Any idea?


Attachment: foo.test
Description: application/shellscript

reply via email to

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