Opened 5 months ago

Closed 5 months ago

#20580 closed enhancement (fixed)

Add docbook-xsl-ns

Reported by: Xi Ruoyao Owned by: blfs-book
Priority: normal Milestone: 12.3
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

docbook-xml-5.0 is intended to be used with docbook-xsl-ns, so it does not make too much sense to keep the former w/o adding the latter.

And several BLFS packages (PAM, FreeRDP, colord) already need it to build the doc.

Change History (7)

comment:1 by Bruce Dubbs, 5 months ago

We need to test this building LFS/BLFS. I'll do that in the chroot session I ised for Linux-PAM docs.

comment:2 by Bruce Dubbs, 5 months ago

I tested adding docbook-xsl-nons-1.79.2 and docbook-4.5 in chroot. A test build of LFS failed.

As best I can tell, docbook-xsl-1.79.2 and docbook-xsl-nons-1.79.2 conflict. I don't think they both can be installed at the same time.

We need docbook-4.5 and docbook-xsl-nons for LFS and BLFS.

I do not know how to address this. One option would be to archive docbook-5.{0,1}. Otherwise I'm looking for suggestions.

comment:3 by Xi Ruoyao, 5 months ago

Arch docbook-xsl package installs both ns and nons versions:

https://gitlab.archlinux.org/archlinux/packaging/packages/docbook-xsl/-/blob/main/PKGBUILD

comment:4 by Bruce Dubbs, 5 months ago

Thanks, I'll give that a try tomorrow.

comment:5 by Xi Ruoyao, 5 months ago

The xry111/docbook-xsl-ns branch now contains what works for me (LFS and BLFS render fine, and PAM documentation generates fine).

in reply to:  2 comment:6 by Xi Ruoyao, 5 months ago

Replying to Bruce Dubbs:

As best I can tell, docbook-xsl-1.79.2 and docbook-xsl-nons-1.79.2 conflict. I don't think they both can be installed at the same time.

The key points to avoid a conflict:

  1. Install them to different directories (/usr/share/xml/docbook/xsl-stylesheets-1.79.2 and /usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2)
  2. When creating XML catalog, rewrite "xsl" (w/o suffix) from sourceforge.net and "xsl-nons" from docbook.org to the nons version, and rewrite "xsl-ns" from sourceforge.net and "xsl" (w/o suffix) from docbook.org to the ns version.
    • i.e. on sourceforge.net nons should be "the default," but on docbook.org ns should be "the default."
  3. Don't use sed -i '/rewrite/d' /etc/xml/catalog or it would definitely cause a conflict. It was intended to fix a broken docbook-xsl installation in BLFS 8.2 or 8.3, now 6 years has passed and I don't think we still need to take care of that.

You can just try the xry111/docbook-xsl-ns branch and merge it if OK.

comment:7 by Bruce Dubbs, 5 months ago

Resolution: fixed
Status: newclosed

Fixed at commitd5d3 e33bc1.

Note: See TracTickets for help on using tickets.