Hi,
there's a minor bug in texinfo (1.12)/doc/Makefile.am in both the
commands for "texi2pdf.1" and "pdftexi2dvi.1".
*) help2man calls >$(util_srcdir)/texi2pdf --help< to get the input for
the manpage to be created.
*) texi2pdf calls >texi2dvi --pdf ${1+"$@"}<, using PATH to find it.
*) When there is some sufficient texi2dvi in PATH, there's no error at
all, but texi2dvi.1 contains the help-output of the already installed
texi2dvi, not the local one from $(util_srcdir).
*) If there is no texi2dvi available in PATH, help2man bails out with
"can't get `--help' info from ../util/texi2pdf" for >texi2pdf.1<, while
it works for >texi2dvi.1<.
Why I encounter this bug: I've slightly modified util/texi2dvi and
util/texi2pdf (use "/usr/bin/env bash" instead of "/bin/sh"), so their
manpages want to be recreated because of newer modification timestamps.
Attached is a proposed patch to have $(util_srcdir) in PATH while
creating doc/texi2pdf.1 and doc/pdftexi2dvi.1.
This is the output of make:
unset TEXI2DVI_BUILD_MODE; unset TEXI2DVI_BUILD_DIRECTORY;
/tools/snapshot/prefix-launcher-1pre.20080617/powerpc-ibm-aix5.3.0.0/bin/bash
/mnt/toolsjunk/haubi/gentoo/sauxz3-trunk/var/tmp/portage/sys-apps/texinfo-4.12/work/texinfo-4.12/build-aux/missing
--run help2man --name="convert Texinfo documents to DVI" ../util/texi2dvi
>texi2dvi.1
unset TEXI2DVI_BUILD_MODE; unset TEXI2DVI_BUILD_DIRECTORY;
/tools/snapshot/prefix-launcher-1pre.20080617/powerpc-ibm-aix5.3.0.0/bin/bash
/mnt/toolsjunk/haubi/gentoo/sauxz3-trunk/var/tmp/portage/sys-apps/texinfo-4.12/work/texinfo-4.12/build-aux/missing
--run help2man --name="convert Texinfo documents to PDF" ../util/texi2pdf
>texi2pdf.1
help2man: can't get `--help' info from ../util/texi2pdf
make[2]: *** [texi2pdf.1] Error 1
make[2]: Leaving directory
`/mnt/toolsjunk/haubi/gentoo/sauxz3-trunk/var/tmp/portage/sys-apps/texinfo-4.12/work/texinfo-4.12/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/toolsjunk/haubi/gentoo/sauxz3-trunk/var/tmp/portage/sys-apps/texinfo-4.12/work/texinfo-4.12'
make: *** [all] Error 2
Thank you!
/haubi/
--- doc/Makefile.am.orig 2008-07-01 14:24:11.000000000 +0200
+++ doc/Makefile.am 2008-07-01 14:24:38.000000000 +0200
@@ -115,10 +115,10 @@
$(unset_envvars); $(HELP2MAN) --name="convert Texinfo documents to DVI" $(util_srcdir)/texi2dvi >$@
$(srcdir)/texi2pdf.1: $(common_texi2dvi_deps)
- $(unset_envvars); $(HELP2MAN) --name="convert Texinfo documents to PDF" $(util_srcdir)/texi2pdf >$@
+ $(unset_envvars); PATH="$(util_srcdir):$${PATH}"; export PATH; $(HELP2MAN) --name="convert Texinfo documents to PDF" $(util_srcdir)/texi2pdf >$@
$(srcdir)/pdftexi2dvi.1: $(common_texi2dvi_deps)
- $(unset_envvars); $(HELP2MAN) --name="convert Texinfo documents to PDF" $(util_srcdir)/pdftexi2dvi >$@
+ $(unset_envvars); PATH="$(util_srcdir):$${PATH}"; export PATH; $(HELP2MAN) --name="convert Texinfo documents to PDF" $(util_srcdir)/pdftexi2dvi >$@
# Do not create info files for distribution.
dist-info: