void-packages/srcpkgs/docbook-xsl/patches/0002_docbook-xsl-mandir.patch
Cameron Nemo f2c7daa5cf docbook-xsl: update to 1.79.2
Add compatibility patch for 1.79.1.
Add patch for broken mandir handling.
Update string substitution patch.
Adopt package.
2020-09-23 11:44:48 +02:00

25 lines
1.1 KiB
Diff

From: Michael Biebl <biebl@debian.org>
Date: Wed, 7 Sep 2016 01:37:47 +0200
Subject: Fix bad .so links in man pages
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=%23727251
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831831
--- manpages/other.xsl
+++ manpages/other.xsl
@@ -558,7 +558,14 @@
<xsl:with-param name="message-prolog">Note: </xsl:with-param>
<xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param>
<xsl:with-param name="content">
- <xsl:value-of select="'.so '"/>
+ <xsl:choose>
+ <xsl:when test="$man.output.in.separate.dir = 0">
+ <xsl:value-of select="concat('.so man', $section, '/')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="'.so '"/> <!-- added case -->
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:variable name="full.filename">
<xsl:call-template name="make.adjusted.man.filename">
<xsl:with-param name="name" select="$first.refname"/>