File: 831831_docbook-xsl-mandir.patch

package info (click to toggle)
docbook-xsl 1.79.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 99,292 kB
  • sloc: xml: 150,020; javascript: 2,872; sh: 829; ruby: 229; perl: 183; makefile: 89
file content (30 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
---
 docbook-xsl/manpages/other.xsl | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/docbook-xsl/manpages/other.xsl b/docbook-xsl/manpages/other.xsl
index 0e10d9c..31c2ffb 100644
--- a/docbook-xsl/manpages/other.xsl
+++ b/docbook-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"/>