After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591120 - GIR_VERBOSE and older automake
GIR_VERBOSE and older automake
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
: 591126 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-08 04:20 UTC by Owen Taylor
Modified: 2009-08-08 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2009-08-08 04:20:40 UTC
(Based on complaint on IRC)

If building with automake < 1.11, then:

GIR_VERBOSE = $(GIR_VERBOSE_$(V))
GIR_VERBOSE_ = $(GIR_VERBOSE_$(AM_DEFAULT_VERBOSITY))
GIR_VERBOSE_0 = @echo GIR $@;

Makefile:537: *** Recursive variable `GIR_VERBOSE_' references itself (eventually).  Stop.

Because AM_DEFAULT_VERBOSITY is not set.

Various solutions occur to me:

1)

DEFAULT_VERBOSITY=$(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
GIR_VERBOSE_ = $(GIR_VERBOSE_$(DEFAULT_VERBOSITY))

2)

m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([no])],
         [AM_DEFAULT_VERBOSITY=1
          AC_SUBST(AM_DEFAULT_VERBOSITY)])

3)

Just drop GIR_VERBOSE and use the straight-up GEN for .gir files

I haven't tested any of them though I'm pretty sure 3 will work :-)
Comment 1 Owen Taylor 2009-08-08 12:01:55 UTC
*** Bug 591126 has been marked as a duplicate of this bug. ***
Comment 2 Tomas Frydrych 2009-08-08 12:49:50 UTC
So much for trying to be clever :( All three solutions work, but both #1 and #2 generate warnings about non-posix variable names, so ended up doing #3, commit bca3eaf709be043836f620ebf0938dc42c74eae4.