summarylogtreecommitdiffstats
path: root/0004-Sphinx-7.2.2-8.0-PosixPath.patch
blob: a5b6f06b35d83c5a034ea886a8355b01f0f75246 (plain)
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
31
32
diff -ru5 a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py
--- a/Documentation/sphinx/kerneldoc.py	2024-05-02 10:29:32.000000000 -0400
+++ b/Documentation/sphinx/kerneldoc.py	2024-05-04 10:16:11.945023502 -0400
@@ -136,11 +136,11 @@
                 if match:
                     # sphinx counts lines from 0
                     lineoffset = int(match.group(1)) - 1
                     # we must eat our comments since the upset the markup
                 else:
-                    doc = env.srcdir + "/" + env.docname + ":" + str(self.lineno)
+                    doc = str(env.srcdir) + "/" + env.docname + ":" + str(self.lineno)
                     result.append(line, doc + ": " + filename, lineoffset)
                     lineoffset += 1
 
             node = nodes.section()
             self.do_parse(result, node)
diff -ru5 a/Documentation/sphinx/kfigure.py b/Documentation/sphinx/kfigure.py
--- a/Documentation/sphinx/kfigure.py	2024-05-02 10:29:32.000000000 -0400
+++ b/Documentation/sphinx/kfigure.py	2024-05-04 10:16:05.674965064 -0400
@@ -307,11 +307,11 @@
                 img_node['candidates'] = {'*': fname + '.pdf'}
 
     if dst_fname:
         # the builder needs not to copy one more time, so pop it if exists.
         translator.builder.images.pop(img_node['uri'], None)
-        _name = dst_fname[len(translator.builder.outdir) + 1:]
+        _name = dst_fname[len(str(translator.builder.outdir)) + 1:]
 
         if isNewer(dst_fname, src_fname):
             kernellog.verbose(app,
                               "convert: {out}/%s already exists and is newer" % _name)