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 681385 - build: Add --disable-man
build: Add --disable-man
Status: RESOLVED FIXED
Product: dconf
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: dconf-maint
dconf-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-07 15:36 UTC by Colin Walters
Modified: 2018-01-05 20:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Add --disable-man (1.90 KB, patch)
2012-08-07 15:36 UTC, Colin Walters
reviewed Details | Review
build: Add --disable-man (1.97 KB, patch)
2012-10-03 14:55 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2012-08-07 15:36:17 UTC
Created attachment 220569 [details] [review]
build: Add --disable-man

1) For embedded systems, it makes no sense to include documentation
   of this kind on each image.  So we might as well not even build
   it.
2) For people bootstrapping systems from source code, documentation
   is the source of many cyclical build loops.  Allowing it to
   be disabled helps cut these loops.
3) The Docbook stylesheets are distributed as Zip files, and I refuse
   to put that bullshit into my build system.
Comment 1 Matthias Clasen 2012-08-08 01:41:47 UTC
I think 1) and 3) are rather weak, but 2) is convincing.

glib has a bunch of configury that you can copy
Comment 2 Allison Karlitskaya (desrt) 2012-10-03 14:32:49 UTC
Review of attachment 220569 [details] [review]:

::: configure.ac
@@ +26,3 @@
+              enable_man=yes)
+
+if test "$enable_man" != no; then

isn't putting things like AC_PATH_PROG inside of open-coded 'if's the sort of thing that got us into trouble with so many other bugs?

@@ +27,3 @@
+
+if test "$enable_man" != no; then
+  AC_PATH_PROG([XSLTPROC], [xsltproc])

don't we also need xsltproc for gtk-doc, or will that take care of it itself?
Comment 3 Colin Walters 2012-10-03 14:55:57 UTC
Created attachment 225686 [details] [review]
build: Add --disable-man

Now using AS_IF
Comment 4 Colin Walters 2012-10-03 14:56:59 UTC
(In reply to comment #2)

> @@ +27,3 @@
> +
> +if test "$enable_man" != no; then
> +  AC_PATH_PROG([XSLTPROC], [xsltproc])
> 
> don't we also need xsltproc for gtk-doc, or will that take care of it itself?

gtk-doc should depend on it; in other words, if gtk-doc is enabled, it's a system construction error if it doesn't exist.