Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56988 closed defect (fixed)

expat @2.2.6: configure failure when docbook-utils is installed and active

Reported by: mmilenko Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: expat

Description

It complains that "docbook2man was found to work with SGML rather than XML". I tried doing what the log says, setting DOCBOOK_TO_MAN="xmlto man --skip-validation" and running sudo with -E, but no luck. The other recommendation, installing docbook2X, doesn't help either since docbook2X itself depends on expat.

Attachments (2)

main.log (12.6 KB) - added by mmilenko 6 years ago.
config.log (48.6 KB) - added by mmilenko 6 years ago.

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by mmilenko

Attachment: main.log added

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed
Owner: set to ryandesign
Status: newassigned
:info:configure /opt/local/bin/jw: line 219: echo: write error: Broken pipe

What port provided this file? I don't have it on my system...

:info:configure configure: error: Your local docbook2man was found to work with SGML rather
:info:configure   than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
:info:configure   configure to command docbook2x-man of docbook2X.
:info:configure   Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around.
:info:configure   You can also configure using --without-docbook if you can do without a man
:info:configure   page for xmlwf.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.2.6" && ./configure --prefix=/opt/local --disable-dependency-tracking
:info:configure Exit code: 1
:error:configure Failed to configure expat, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.2.6/config.log

Could you attach this config.log too please?

comment:2 Changed 6 years ago by mmilenko

/opt/local/bin/jw is provided by: docbook-utils

I'm attaching the config.log

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 6 years ago by mmilenko

Attachment: config.log added

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Status: assignedaccepted
Summary: expat upgrade fails on configure stepexpat @2.2.6: configure failure when docbook-utils is installed and active

comment:4 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In de9df3f4cc370cb35d34b54d42f5e1da54f414a5/macports-ports (master):

expat: Disable the use of docbook at build time

Fixes build failure if docbook-utils is installed and active.

Expat uses the docbook2man program to convert the xmlwf manpage from
its docbook xml source code into troff format. But there are two
different versions of this program: one provided by docbook2X, and
another provided by docbook-utils. expat only works with the one from
docbook2X, so it checks at configure time whether the docbook2man it
found is the right one. If not, it complains.

Since we build expat from a release download which already includes a
pre-generated xmlwf.1 troff file, we don't need to regenerate it from
docbook xml at all, so we can bypass the configure check.

See: https://github.com/libexpat/libexpat/issues/188

Closes: #56988

comment:5 in reply to:  4 Changed 6 years ago by mmilenko

Thanks!

Note: See TracTickets for help on using tickets.