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 589278 - Support AM_SILENT_RULES
Support AM_SILENT_RULES
Status: RESOLVED FIXED
Product: gnome-doc-utils
Classification: Deprecated
Component: build utils
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-doc-utils maintainers
gnome-doc-utils maintainers
: 592001 (view as bug list)
Depends on:
Blocks: 580062
 
 
Reported: 2009-07-21 17:41 UTC by Vincent Untz
Modified: 2012-02-20 16:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Partial patch (1.64 KB, patch)
2010-01-16 00:53 UTC, Thomas Andersen
none Details | Review
Add partial support for AM_SILENT_RULES (1.97 KB, patch)
2010-01-18 19:56 UTC, Thomas Andersen
accepted-commit_now Details | Review
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch (3.91 KB, patch)
2011-12-24 22:59 UTC, Hib Eris
none Details | Review
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch (5.06 KB, patch)
2011-12-25 07:12 UTC, Hib Eris
none Details | Review
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch (4.81 KB, patch)
2011-12-25 16:15 UTC, Hib Eris
none Details | Review
0002-Use-silent-rules-for-building-gnome-doc-utils.patch (3.67 KB, patch)
2011-12-25 16:39 UTC, Hib Eris
none Details | Review
0002-Use-silent-rules-for-building-gnome-doc-utils.patch (3.67 KB, patch)
2012-02-05 10:49 UTC, Hib Eris
none Details | Review
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch (4.80 KB, patch)
2012-02-14 13:07 UTC, Hib Eris
none Details | Review
0002-Use-silent-rules-for-building-gnome-doc-utils.patch (4.22 KB, patch)
2012-02-14 13:09 UTC, Hib Eris
none Details | Review
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch (4.94 KB, patch)
2012-02-20 16:11 UTC, Hib Eris
committed Details | Review
0002-Use-silent-rules-for-building-gnome-doc-utils.patch (4.47 KB, patch)
2012-02-20 16:12 UTC, Hib Eris
committed Details | Review

Description Vincent Untz 2009-07-21 17:41:11 UTC
With automake 1.11, AM_SILENT_RULES (or the silent-rules option) allows to make builds a bit nicer. See http://www.gnu.org/software/hello/manual/automake/Options.html for more details.

However, currently, gnome-doc-utils rules that get integrated in the Makefile don't support this and the build of other modules is therefore still a bit verbose.
Comment 1 Javier Jardón (IRC: jjardon) 2009-08-16 16:20:13 UTC
Note that you can use $(AM_V_GEN) to make custom commands silent

See http://live.gnome.org/GnomeGoals/NicerBuilds for more info
Comment 2 Christian Persch 2009-08-16 18:25:11 UTC
*** Bug 592001 has been marked as a duplicate of this bug. ***
Comment 3 Shaun McCance 2009-08-20 05:02:45 UTC
I probably won't be able to spend any time on this in the near future, but I'll try to review any patches that might appear.

Note that gnome-doc-utils.make does stuff like this:

@if foo; then \
  echo "frobnicate foo"; \
  frobnicate foo; \
fi;

From my understanding of how AM_V_GEN and AM_V_at work, they're not going to handle this case very well.
Comment 4 Behdad Esfahbod 2009-08-28 18:40:11 UTC
GDU_FROBNICATE_V = $(GDU_FROBNICATE_$(V))
GDU_FROBNICATE_ = $(GDU_FROBNICATE_$(AM_DEFAULT_VERBOSITY))
GDU_FROBNICATE_0 = echo "frobnicate $@";



$(AM_V_at)if foo; then \
  $(GDU_FROBNICATE_V) frobnicate foo; \
fi;
Comment 5 Thomas Andersen 2010-01-16 00:53:50 UTC
Created attachment 151511 [details] [review]
Partial patch

This is just a partial patch to scratch an itch when compiling gnome-games. I thought I would share it anyway.

Fixing this completely probably requires someone who understands g-d-u better than me - or at least some advice about how much should be fixed and how to test it properly.

The patch is based on the comment by Behdad.
Comment 6 Behdad Esfahbod 2010-01-18 00:30:55 UTC
+	$(AM_V_at)@if ! test -d $(dir $@); then \

"@if" should become "if".  The "@" part resides in "$(AM_V_at)" now.
Comment 7 Thomas Andersen 2010-01-18 19:56:32 UTC
Created attachment 151701 [details] [review]
Add partial support for AM_SILENT_RULES

Updated patch. Thanks Behdad.
Comment 8 Thomas Andersen 2010-06-16 22:58:26 UTC
What would be needed before something can be committed? Even the partial patch makes building gnome so much nicer.
Comment 9 Javier Jardón (IRC: jjardon) 2010-10-26 17:13:36 UTC
ping
Comment 10 Thomas Andersen 2011-02-15 12:51:24 UTC
Any chance of this getting a review? Without it other modules don't get the full benefit of silent-rules.
Comment 11 Olav Vitters 2011-06-21 19:16:59 UTC
Comment on attachment 151701 [details] [review]
Add partial support for AM_SILENT_RULES

per discussion with shaunm on IRC
Comment 12 Thomas Andersen 2011-06-21 21:42:19 UTC
It appears that the patch has bitrotted. At least I can no longer get it to build.
Comment 13 Hib Eris 2011-12-24 22:59:23 UTC
Created attachment 204188 [details] [review]
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch

New patch, applies cleanly on master.
Comment 14 Hib Eris 2011-12-25 07:12:40 UTC
Created attachment 204194 [details] [review]
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch

New patch, now without errors in bootstrapping.
Comment 15 Hib Eris 2011-12-25 16:15:46 UTC
Created attachment 204201 [details] [review]
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch

Hmm, I could do better with my last patch... sorry for all the noise.

This new patch is my final thoroughly tested patch, please review.

Note, this will only add support for silent rules for building packages that use GNOME_DOC_INIT, not for building gnome-doc-utils itself.

For gnome-doc-utils itself, I have also made a patch, but that is dependent on how some upcoming changes to intltool will work out, so that will come later.
Comment 16 Hib Eris 2011-12-25 16:39:19 UTC
Created attachment 204202 [details] [review]
0002-Use-silent-rules-for-building-gnome-doc-utils.patch

FYI, this second patch lets gnome-doc-utils itself build less verbosely.

It builds upon a proposed but not yet accepted patch to intltool, in
https://bugs.launchpad.net/intltool/+bug/402516 and thus might need some future change if the intltool patch is not accepted as is.

Just wanted to post this patch here anyway, so other people will not need to redo this.
Comment 17 Hib Eris 2012-02-05 10:49:42 UTC
Created attachment 206808 [details] [review]
0002-Use-silent-rules-for-building-gnome-doc-utils.patch

Updated my patch for silent building gnome-doc-utils itself to use the new silent rules functionality in intltool.m4 (if available).
(See http://bazaar.launchpad.net/~intltool/intltool/trunk/revision/730)
Comment 18 Hib Eris 2012-02-14 13:07:56 UTC
Created attachment 207521 [details] [review]
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch

Updated patch, now passing 'make distcheck'.

Please review this.
Comment 19 Hib Eris 2012-02-14 13:09:49 UTC
Created attachment 207522 [details] [review]
0002-Use-silent-rules-for-building-gnome-doc-utils.patch

Updated second patch with one more silent rule.

Please review this as well.
Comment 20 Hib Eris 2012-02-20 16:11:18 UTC
Created attachment 208045 [details] [review]
0001-Add-support-for-silent-rules-to-gnome-doc-utils.make.patch

Updated patch, use DB2OMF/DB2HTM instead of XLTPRC.
Comment 21 Hib Eris 2012-02-20 16:12:31 UTC
Created attachment 208046 [details] [review]
0002-Use-silent-rules-for-building-gnome-doc-utils.patch

Updated patch; use AM_V_GEN instead of XLTPRC
Comment 22 Shaun McCance 2012-02-20 16:37:34 UTC
Sorry for the delay. Thanks for the updated patches. Pushed to master.