public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-linuxdoc] rawhide: Fix the build for the new version
Date: Tue, 10 Nov 2026 22:19:58 GMT [thread overview]
Message-ID: <179434919829.1.6979280134728431699.rpms-python-linuxdoc-ba419687dc31@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-linuxdoc
Branch : rawhide
Commit : ba419687dc31742081bc9eadf763fb80e469c0fc
Author : Neal Gompa <ngompa@fedoraproject.org>
Date : 2026-11-10T17:19:36-05:00
Stats : +6/-65 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-linuxdoc/c/ba419687dc31742081bc9eadf763fb80e469c0fc?branch=rawhide
Log:
Fix the build for the new version
---
diff --git a/Fix-compatibility-with-docutils-0.22.patch b/Fix-compatibility-with-docutils-0.22.patch
deleted file mode 100644
index 44fb710..0000000
--- a/Fix-compatibility-with-docutils-0.22.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 91e0b5332a4bd6c2509c12110575917cc297f3ef Mon Sep 17 00:00:00 2001
-From: Karolina Surma <ksurma@redhat.com>
-Date: Fri, 21 Nov 2025 15:44:16 +0100
-Subject: [PATCH] Fix compatibility with docutils 0.22+
-
-error_reporting module has been removed, per its documentation:
-- SafeString() is to be replaced by the standard Python 3 str()
-- ErrorString() is to be replaced by docutils.io.error_string()
----
- linuxdoc/kernel_include.py | 7 +++----
- 1 file changed, 3 insertions(+), 4 deletions(-)
-
-diff --git a/linuxdoc/kernel_include.py b/linuxdoc/kernel_include.py
-index 1798271..1905978 100755
---- a/linuxdoc/kernel_include.py
-+++ b/linuxdoc/kernel_include.py
-@@ -18,7 +18,6 @@ u"""
- import os.path
-
- from docutils import io, nodes, statemachine
--from docutils.utils.error_reporting import SafeString, ErrorString
- from docutils.parsers.rst import directives
- from docutils.parsers.rst.directives.body import CodeBlock, NumberLines
- from docutils.parsers.rst.directives.misc import Include
-@@ -90,10 +89,10 @@ class KernelInclude(Include):
- raise self.severe('Problems with "%s" directive path:\n'
- 'Cannot encode input file path "%s" '
- '(wrong locale?).' %
-- (self.name, SafeString(path)))
-+ (self.name, str(path)))
- except IOError as error:
- raise self.severe('Problems with "%s" directive path:\n%s.' %
-- (self.name, ErrorString(error)))
-+ (self.name, io.error_string(error)))
- startline = self.options.get('start-line', None)
- endline = self.options.get('end-line', None)
- try:
-@@ -105,7 +104,7 @@ class KernelInclude(Include):
- rawtext = include_file.read()
- except UnicodeError as error:
- raise self.severe('Problem with "%s" directive:\n%s' %
-- (self.name, ErrorString(error)))
-+ (self.name, io.error_string(error)))
- # start-after/end-before: no restrictions on newlines in match-text,
- # and no restrictions on matching inside lines vs. line boundaries
- after_text = self.options.get('start-after', None)
---
-2.51.1
-
diff --git a/python-linuxdoc.spec b/python-linuxdoc.spec
index 5a29cdf..4e12585 100644
--- a/python-linuxdoc.spec
+++ b/python-linuxdoc.spec
@@ -6,15 +6,13 @@ extensions in common Sphinx-doc projects.}
Name: python-linuxdoc
Version: 20260504
-Release: %{autorelease}
+Release: %autorelease
Summary: Sphinx-doc extensions for sophisticated C developer
License: AGPL-3.0-or-later
URL: https://return42.github.io/linuxdoc/
Source0: %{pypi_source linuxdoc}
-# https://github.com/return42/linuxdoc/pull/40
-Patch: Fix-compatibility-with-docutils-0.22.patch
BuildArch: noarch
@@ -51,13 +49,13 @@ find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/
# generate man pages
# must be done here because binaries must be installed
-for binfile in "linuxdoc.autodoc" "linuxdoc.rest" "linuxdoc.grepdoc" "linuxdoc.lintdoc" "kernel-autodoc" "kernel-doc" "kernel-grepdoc" "kernel-lintdoc"
+for binfile in "linuxdoc.autodoc" "linuxdoc.rest" "linuxdoc.grepdoc" "linuxdoc.lintdoc"
do
- ls -lash "$RPM_BUILD_ROOT/%{_bindir}/${binfile}"
- help2man -N --version-string %{version} -h -h --no-discard-stderr "$RPM_BUILD_ROOT/%{_bindir}/${binfile}" > "${binfile}.1"
+ ls -lash "%{buildroot}/%{_bindir}/${binfile}"
+ help2man -N --version-string %{version} -h -h --no-discard-stderr "%{buildroot}/%{_bindir}/${binfile}" > "${binfile}.1"
done
-install -p -m 0644 -D -t "$RPM_BUILD_ROOT/%{_mandir}/man1/" *.1
+install -p -m 0644 -D -t "%{buildroot}/%{_mandir}/man1/" *.1
%pyproject_save_files linuxdoc
@@ -67,16 +65,8 @@ install -p -m 0644 -D -t "$RPM_BUILD_ROOT/%{_mandir}/man1/" *.1
%files -n python3-linuxdoc -f %{pyproject_files}
%doc README.rst
-%{_bindir}/linuxdoc.autodoc
-%{_bindir}/linuxdoc.rest
-%{_bindir}/linuxdoc.grepdoc
-%{_bindir}/linuxdoc.lintdoc
-%{_bindir}/kernel-autodoc
-%{_bindir}/kernel-doc
-%{_bindir}/kernel-grepdoc
-%{_bindir}/kernel-lintdoc
+%{_bindir}/linuxdoc.*
%{_mandir}/man1/linuxdoc.*
-%{_mandir}/man1/kernel-*
%changelog
reply other threads:[~2026-11-10 22:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179434919829.1.6979280134728431699.rpms-python-linuxdoc-ba419687dc31@fedoraproject.org \
--to=ngompa@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox