Build fails to generate manpage when not running under a display manager
[26/161] /usr/bin/help2man --no-info --section=1 --help-option=--help-all --include=../zenity-3.91.0/data/zenity.roff --output=data/zenity.1 /var/tmp/portage/gnome-extra/zenity-3.91.0/work/zenity-3.91.0-build/src/zenity
FAILED: data/zenity.1
/usr/bin/help2man --no-info --section=1 --help-option=--help-all --include=../zenity-3.91.0/data/zenity.roff --output=data/zenity.1 /var/tmp/portage/gnome-extra/zenity-3.91.0/work/zenity-3.91.0-build/src/zenity
help2man: can't get `--help-all' info from /var/tmp/portage/gnome-extra/zenity-3.91.0/work/zenity-3.91.0-build/src/zenity
Try `--no-discard-stderr' if option outputs to stderr
--help-all
usage was added in 011783da
So I think the way it works is help2man passes --help-all
to zenity to get its help output to include in the man page?
Running /var/tmp/portage/gnome-extra/zenity-3.91.0/work/zenity-3.91.0-build/src/zenity
I get
(zenity:3730396): Gtk-WARNING **: 12:42:27.550: cannot open display:
I think it would be best if we didn't require an X display to build zenity. Presumably we could handle printing help/usage before opening the X display.