Opened 10 years ago

Last modified 5 years ago

#43750 assigned defect

docbook-utils @ 0.6.14 Repair paths to utility programs for text conversion

Reported by: lockhart (Thomas Lockhart) Owned by: lockhart (Thomas Lockhart)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch maintainer Cc: cooljeanius (Eric Gallager)
Port: docbook-utils

Description

docbook-utils includes docbook2txt which relies on lynx (or links or w3m) to convert from an intermediate html file to plain text output. The "backend" used for this has hardcoded paths to /usr/bin/lynx etc. Substitute ${prefix} for /usr in the backend file. Add port:lynx as a dependency. Bump the revision number from one to two.

Attachments (3)

Portfile-2.diff (1.0 KB) - added by pixilla (Bradley Giesbrecht) 9 years ago.
main.log (360.2 KB) - added by pixilla (Bradley Giesbrecht) 9 years ago.
Portfile.diff (1.0 KB) - added by lockhart (Thomas Lockhart) 8 years ago.
Supercede previous version. Add (unexercised) dependency on links port.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 10 years ago by lockhart (Thomas Lockhart)

Forgot "haspatch, maintainer". Sorry about that...

comment:2 Changed 10 years ago by pixilla (Bradley Giesbrecht)

Keywords: haspatch maintainer added
Owner: changed from macports-tickets@… to pixilla@…

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Changed 9 years ago by pixilla (Bradley Giesbrecht)

Attachment: Portfile-2.diff added

Changed 9 years ago by pixilla (Bradley Giesbrecht)

Attachment: main.log added

comment:4 Changed 9 years ago by lockhart (Thomas Lockhart)

The problem reported by pixilla on or around 2014-11-18 with main.log is symptomatic of having docbook-sgml-4.2 installed *before* iso8879 which contains the missing entities in the failure log. This problem is not reproducible if all packages installing catalogs in /opt/local/etc/sgml/catalog are first removed and then this package is reinstalled. afaict all dependencies are resolved in the correct order, but previous installations may not have these installed in the correct order and will lead to this failure. It is not at all clear to me how to force these catalog entries to be in the correct order if they were not already so, though the new "xmlcatalog" group should help in this regard by providing consistent management of this catalog and others. Please proceed with this patch to fix the reported issue with paths to lynx since it is unrelated to other dependency issues. Example (correct) catalog looks like:

-- Created by XML Catalog Manager 2.2 --
CATALOG "/opt/local/share/dsssl/docbook-dsssl/catalog"

CATALOG "/opt/local/share/sgml/iso8879/catalog"

CATALOG "/opt/local/share/sgml/docbook/4.2/docbook.cat"

CATALOG "/opt/local/share/sgml/openjade/catalog"

comment:5 in reply to:  4 Changed 8 years ago by lockhart (Thomas Lockhart)

Replying to tlockhart1976@…:

The problem reported by pixilla on or around 2014-11-18 with main.log...

This anomaly is addressed in #44464, #48297, and issues around other related ports and is traceable to older versions of these ports leaving cruft in the top-level catalogs.

sudo port uninstall docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 iso8879 docbook-xml-4.2 openjade docbook-sgml-4.2 docbook-utils p5.22-sgmlspm docbook-dsssl docbook-xml-5.0 docbook-xsl docbook-xsl-ns
sudo rm -rf /opt/local/etc/sgml /opt/local/etc/xml
sudo port install docbook-utils

Clears out the crufty catalogs and starts fresh. Install additional ports from the uninstall list above as needed.

comment:6 Changed 8 years ago by lockhart (Thomas Lockhart)

A new Portfile.diff has been posted which addresses the dependencies on lynx and w3m and is compatible with the latest Portfile in the repo. Do not apply Portfile-2.diff and the issue illustrated by the main.log attachment is addressed in another comment.

Changed 8 years ago by lockhart (Thomas Lockhart)

Attachment: Portfile.diff added

Supercede previous version. Add (unexercised) dependency on links port.

comment:7 Changed 8 years ago by lockhart (Thomas Lockhart)

The txt backend to jw includes a fallback reference to links (a text-based browser). Since we already have a dependency on lynx, and since this is checked before falling back to links, we should never see that code execute. But the dependency is there so make it explicit. Posted a new superset of the Portfile diff which includes this dependency.

comment:8 Changed 5 years ago by mf2k (Frank Schima)

Cc: pixilla removed
Keywords: haspatch, maintainerhaspatch maintainer
Owner: changed from pixilla to lockhart
Status: newassigned

See #57827

Note: See TracTickets for help on using tickets.