Bug 230957 - textproc/expat2: configure fails when textproc/docbook-utils has been installed
Summary: textproc/expat2: configure fails when textproc/docbook-utils has been installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Carlos J. Puga Medina
URL:
Keywords: easy, patch
Depends on:
Blocks:
 
Reported: 2018-08-27 18:56 UTC by Carlos J. Puga Medina
Modified: 2018-08-27 23:46 UTC (History)
1 user (show)

See Also:


Attachments
patch (372 bytes, patch)
2018-08-27 18:56 UTC, Carlos J. Puga Medina
svysh.fbsd: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos J. Puga Medina freebsd_committer freebsd_triage 2018-08-27 18:56:23 UTC
Created attachment 196609 [details]
patch

expat2 configure fails with the following error:

checking for docbook2x-man... no
checking for db2x_docbook2man... no
checking for docbook2man... docbook2man
configure: error: Your local docbook2man was found to work with SGML rather
  than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  configure to command docbook2x-man of docbook2X.
  Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around.
  You can also configure using --without-docbook if you can do without a man
  page for xmlwf.
===>  Script "configure" failed unexpectedly.
Please report the problem to svysh.fbsd@gmail.com [maintainer] and attach the
"/usr/ports/textproc/expat2/work/expat-2.2.6/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Attached trivial patch to skip XML to man page compilation.
Comment 1 Sergei Vyshenski 2018-08-27 19:33:43 UTC
Thank you Carlos for reporting this.

But the way you suggest, that is using "--without-docbook" approach, looks like an overkill for me.

Please let me think it over. Will be back as soon as possible.

Regards, Sergei
Comment 2 Carlos J. Puga Medina freebsd_committer freebsd_triage 2018-08-27 20:08:30 UTC
By default, expat2 checks if docbook2man is installed.

expat2 needs textproc/docbook2X dependency to configure "--with-docbook" but currently textproc/docbook2X register a conflict with textproc/docbook-utils. In this case, you can add a new option for the port to enable it.
Comment 3 Carlos J. Puga Medina freebsd_committer freebsd_triage 2018-08-27 20:12:53 UTC
Note that the xmlwf (1) manpage is included in the tarball.
Comment 4 Sergei Vyshenski 2018-08-27 23:11:37 UTC
Ok, I see. Let us go with "--without-docbook" for now,
to cancel the conflict, discovered by yourself.
Will investigate "new option" idea or other improvements later, in a more calm environment.
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-08-27 23:45:33 UTC
A commit references this bug:

Author: cpm
Date: Mon Aug 27 23:45:15 UTC 2018
New revision: 478260
URL: https://svnweb.freebsd.org/changeset/ports/478260

Log:
  textproc/expat2: configure fails when texproc/docbook-utils has been installed

  - Build --without-docbook to skip XML to man page compilation
  - Bump PORTREVISION

  PR:		230957
  Submitted by:	cpm
  Approved by:	Sergei Vyshenski <svysh.fbsd@gmail.com> (maintainer)

Changes:
  head/textproc/expat2/Makefile
Comment 6 Carlos J. Puga Medina freebsd_committer freebsd_triage 2018-08-27 23:46:26 UTC
Committed, thanks!