Opened 8 years ago

Closed 5 years ago

#53943 closed defect (fixed)

cvs-fast-export & asciidoc: build error due to missing DTDs

Reported by: mojca (Mojca Miklavec) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: cvs-fast-export asciidoc

Description

See build logs:

/opt/local/bin/a2x --doctype manpage --format manpage cvs-fast-export.asc
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/opt/local/etc/asciidoc/docbook-xsl/manpage.xsl" "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cvs-fast-export/cvs-fast-export/work/cvs-fast-export-1.43/cvs-fast-export.xml" returned non-zero exit status 5

It builds fine for me, but probably because I have more packages installed.

See some upstream report:

And many other similar issues all around the web:

The upstream report says:

I think your main problem is that the DocBook DTDs aren't installed on your system.

I suspect I saw this error earlier and most probably has to do with one DocBook DTD being installed and later removed. I forgot the details, but I believe an entry with previously installed files stays in some configuration file and then fails.

While I could add more build dependencies to cvs-fast-export, it seems strange to have a defunct a2x on the server. Either asciidoc needs more dependencies or we need a more careful cleanup after a package gets removed.

I can try to figure out more details later, but I wanted to open this ticket before I forget about it (and get bitten again at next update).

Change History (6)

comment:1 Changed 8 years ago by mojca (Mojca Miklavec)

Summary: cvs-fast-export & asciidoc: build errorcvs-fast-export & asciidoc: build error due to missing DTDs

comment:2 Changed 8 years ago by neverpanic (Clemens Lang)

asciidoc would probably have to depend on the docbook-* ports, in particular docbook-xsl, for this to disappear. Can you try whether installing docbook-xsl solves this?

comment:3 Changed 8 years ago by mojca (Mojca Miklavec)

In 7a6d65ddc85ea46729fb0230c89d8b2259caf6a7/macports-ports:

cvs-fast-export: build dependency on docbook-xsl

See: #53943

comment:4 Changed 8 years ago by mojca (Mojca Miklavec)

I have a problem reliably reproducing this on my machine (short of deactivating everything), so I blindly added another build dependency, let's see what happens.

comment:5 Changed 8 years ago by mojca (Mojca Miklavec)

Apparently the package was built successfully after adding a build dependency on docbook-xsl. Note that the build worked on 10.5 and 10.8 for example (#52388). I suspect that was because another package has never been activated previously.

But it makes more sense to change asciidoc than cvs-fast-export.

comment:6 Changed 5 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

In 9875cffcfdb567e35e6a8d38608d46c73e6d3f91/macports-ports (master):

asciidoc: Update to asciidoc-py3 9.0.0rc1

Switch to a version that supports python 3.x, use python 3.7, set
license_noconflict openssl because asciidoc doesn't use openssl, it just
uses python, which links against openssl.

Since this is a source distribution now, we need to run autoreconf.
Additionally, the libxml2, libxslt, docbook-xml-4.5 and docbook-xsl-nons
dependencies are now also required at build time. Add them as library
dependencies to ensure asciidoc works when compiling manpages, because
that might require files from docbook-xsl-nons.

Closes: #59778
Closes: #53943
Closes: #59758

Note: See TracTickets for help on using tickets.