WARNING and ERROR when executing "make install" on opensuse 13.2
cvs-fast-export "make" and make check are fine and I have been using cvs-fast-export on my project. But "make install" outputs the following:
install -d "/usr/local/bin" install cvs-fast-export cvssync cvsconvert "/usr/local/bin"
a2x --doctype manpage --format manpage -D . cvs-fast-export.asc
a2x: WARNING: --destination-dir option is only applicable to HTML based outputs
a2x: ERROR: "xmllint" --nonet --noout --valid "/home/jw/RCS_src/clone/cvs-fast-export
/cvs-fast-export.xml" returned non-zero exit status 4
make: *** [cvs-fast-export.1] Error 1
The "a2x" man page under -D confirms that the -D option is only applicable to HTML output.
FIX WARNING: leave out " -D ." in the first "a2x" call in the Makefile.
executing "a2x --doctype manpage --format manpage cvs-fast-export.asc" only reports the ERROR.
executing "xmllint" --nonet --noout --valid "/home/jw/RCS_src/clone/cvs-fast-export/cvs-fast-export.xml"; echo $? separately gives a more detailed error message:
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/home/jw/RCS_src/clone/cvs-fast-export/cvs-fast-export.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
/home/jw/RCS_src/clone/cvs-fast-export/cvs-fast-export.xml:5: validity error : Validation failed: no DTD found !
Calling "xmllint" without --nonet must fetch the requested docbookx.dtd and returns without error.
"xmllint" --noout --valid "/home/jw/RCS_src/clone/cvs-fast-export/cvs-fast-export.xml"; echo $? 0
Since "a2x" calls "xmllint", we cannot alter the calling options. I suggest using "a2x --no-xmllint"
Unfortunately this produces a different error:
a2x --doctype manpage --format manpage --no-xmllint cvs-fast-export.asc
a2x: ERROR: "xsltproc" --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 "/usr/local/etc/asciidoc/docbook-xsl/manpage.xsl" "/home/jw/RCS_src/clone/cvs-fast-export/cvs-fast-export.xml" returned non-zero exit status 127
I am mystified. I would have thought "xmllint" (because of its name containing "lint") would only check and would not be required to alter anything. Maybe "make install" previously exited with the "xmllint" error, which masked the later execution of "xsltproc", which would have had the error anyway. Sorry I cannot offer a FIX. I would be interested to know how "make install" behaves on your system.
This is not an important issue - I just thought I could fix it and have a proper manpage for cvs-fast export. As it is I am making do with cvs-fast-export.asc.
PS: in the attached Patch file I have included a minor modification to "gram.y", which you may or may not want to commit.
This patch outputs a WARNING at the point where cvsfile->skew_vulnerable is set with a date when $$->commitid is NULL. This finally results in the rather cryptic WARNING "no commitids before " at the very end in export.c, which I was getting and did not know why. The new WARNING makes the problem quite clear and pointed me to where I needed extra "commitids". The new WARNING is never called if all revisions have a commitid.