Package: docbook-xsl / 1.79.1+dfsg-2

831831_docbook-xsl-mandir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: 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
Index: docbook-xsl/docbook-xsl/manpages/other.xsl
===================================================================
--- docbook-xsl.orig/docbook-xsl/manpages/other.xsl	2016-09-07 01:11:59.854657920 +0200
+++ docbook-xsl/docbook-xsl/manpages/other.xsl	2016-09-07 01:11:59.854657920 +0200
@@ -560,7 +560,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"/>