GNU bug report logs - #7800
automake fails to honor `-d' in AM_YFLAGS when variable expansions are involved

Previous Next

Package: automake;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Fri, 7 Jan 2011 14:31:02 UTC

Severity: wishlist

Tags: patch

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#7800: closed (automake fails to honor `-d' in AM_YFLAGS when
 variable expansions are involved)
Date: Sun, 09 Jan 2011 15:23:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 9 Jan 2011 16:28:06 +0100
with message-id <201101091628.07298.stefano.lattarini <at> gmail.com>
and subject line Re: [PATCHES] yacc: support variable expansions in *YFLAGS definition
has caused the GNU bug report #7800,
regarding automake fails to honor `-d' in AM_YFLAGS when variable expansions are involved
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
7800: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7800
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: bug-automake <at> gnu.org
Subject: automake fails to honor `-d' in AM_YFLAGS when variable expansions
	are involved
Date: Fri, 7 Jan 2011 15:36:43 +0100
severity: wishlist
thanks

-*-*-

Hello automakers.

Currently, automake is not smart enough to resolve variable expansions
in AM_YFLAGS (or foo_YFLAGS) when scanning them for the `-d' flag.

For example:

  $ cat configure.ac
  AC_INIT(x,0)
  AM_INIT_AUTOMAKE(foreign)
  AC_PROG_CC
  AC_PROG_YACC
  AC_CONFIG_FILES(Makefile)
  $ cat Makefile.am
  bin_PROGRAMS = foo bar
  foo_SOURCES = foo.y
  bar_SOURCES = bar.y
  my_YFLAGS = -d
  AM_YFLAGS = $(my_YFLAGS)
  bar_YFLAGS = $(my_YFLAGS)
  $ aclocal
  $ automake -a
  $ egrep '(foo|bar).h\.*:' Makefile.in # no match :-(
  $ sed -i 's/$(my_YFLAGS)/-d/' Makefile.am 
  $ automake
  $ egrep '(foo|bar)\.h.*:' Makefile.in # now as expected
  bar-bar.h: bar-bar.c
  foo.h: foo.c

Not sure if this bug is worth fixing, but having it reported in the bug
database won't hurt, either (and I might anyway attempt a fix soonish).

Regards,
  Stefano


[Message part 3 (message/rfc822, inline)]
From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
Cc: 7800-done <at> debbugs.gnu.org, automake-patches <at> gnu.org
Subject: Re: [PATCHES] yacc: support variable expansions in *YFLAGS definition
Date: Sun, 9 Jan 2011 16:28:06 +0100
Reference:
 <http://lists.gnu.org/archive/html/automake-patches/2011-01/msg00057.html>

Both patches (with nits addressed) merged to master, and pushed.
This should fix automake bug#7800.

Regards,
  Stefano


This bug report was last modified 14 years and 214 days ago.

Previous Next


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