public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/xtl] epel10: Fix build with Sphinx 4.
Date: Sat, 11 Jul 2026 22:45:43 GMT [thread overview]
Message-ID: <178380994399.1.9981223493257098953.rpms-xtl-90fd9ecad054@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/xtl
Branch : epel10
Commit : 90fd9ecad054fe13a2d276f23e82ded5aecacf3d
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date : 2021-07-11T19:20:47-04:00
Stats : +50/-5 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/xtl/c/90fd9ecad054fe13a2d276f23e82ded5aecacf3d?branch=epel10
Log:
Fix build with Sphinx 4.
---
diff --git a/0001-Fix-complex-test.patch b/0001-Fix-complex-test.patch
index b87df5a..4a8263e 100644
--- a/0001-Fix-complex-test.patch
+++ b/0001-Fix-complex-test.patch
@@ -1,4 +1,4 @@
-From 517cd4f961c155284916fe393445adbe0e137d2b Mon Sep 17 00:00:00 2001
+From d8518ba59f3c5173dfe052c337aa8e5ad0d3c739 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Wed, 8 Aug 2018 00:03:32 -0400
Subject: [PATCH 1/2] Fix complex test.
@@ -9,10 +9,10 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/test/test_xcomplex.cpp b/test/test_xcomplex.cpp
-index d238f33..a8a96c9 100644
+index 9c91d50..5b8a083 100644
--- a/test/test_xcomplex.cpp
+++ b/test/test_xcomplex.cpp
-@@ -253,12 +253,21 @@ namespace xtl
+@@ -254,12 +254,21 @@ namespace xtl
TEST(xcomplex, power)
{
complex_type c(1., 2.);
@@ -39,5 +39,5 @@ index d238f33..a8a96c9 100644
TEST(xcomplex, trigonometric)
--
-2.17.1
+2.31.1
diff --git a/0002-Fix-build-with-Sphinx-4.patch b/0002-Fix-build-with-Sphinx-4.patch
new file mode 100644
index 0000000..a1d30a6
--- /dev/null
+++ b/0002-Fix-build-with-Sphinx-4.patch
@@ -0,0 +1,40 @@
+From d809a7bfb1924aa2ab05f26aed3233201778d7cc Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Sun, 11 Jul 2021 17:54:54 -0400
+Subject: [PATCH 2/2] Fix build with Sphinx 4.
+
+`add_stylesheet` was deprecated in 1.8 and removed in 4.0 [1]. The
+replacement, `add_css_file` was added in 1.0, which is older than any
+version required by `breathe`.
+
+[1] https://www.sphinx-doc.org/en/master/extdev/deprecated.html?highlight=add_stylesheet
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ docs/source/conf.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/docs/source/conf.py b/docs/source/conf.py
+index 333b75c..242e3fd 100644
+--- a/docs/source/conf.py
++++ b/docs/source/conf.py
+@@ -15,8 +15,10 @@ html_theme = "sphinx_rtd_theme"
+
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+
++
+ def setup(app):
+- app.add_stylesheet("main_stylesheet.css")
++ app.add_css_file("main_stylesheet.css")
++
+
+ extensions = ['breathe']
+ breathe_projects = { 'xtl': '../xml' }
+@@ -35,4 +37,3 @@ highlight_language = 'c++'
+ pygments_style = 'sphinx'
+ todo_include_todos = False
+ htmlhelp_basename = 'xtldoc'
+-
+--
+2.31.1
+
diff --git a/xtl.spec b/xtl.spec
index 4d927f1..05a6404 100644
--- a/xtl.spec
+++ b/xtl.spec
@@ -3,13 +3,15 @@
Name: xtl
Version: 0.7.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Summary: QuantStack tools library
Url: https://github.com/QuantStack/xtl
Source0: https://github.com/QuantStack/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/QuantStack/xtl/issues/97
Patch0001: 0001-Fix-complex-test.patch
+# https://github.com/xtensor-stack/xtl/pull/251
+Patch0002: 0002-Fix-build-with-Sphinx-4.patch
BuildRequires: binutils
BuildRequires: cmake
@@ -76,6 +78,9 @@ make -C "%{_vpath_builddir}" xtest
%changelog
+* Sun Jul 11 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.2-2
+- Fix build with Sphinx 4
+
* Sun Feb 07 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.2-1
- Update to latest version (#1918520)
reply other threads:[~2026-07-11 22:45 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=178380994399.1.9981223493257098953.rpms-xtl-90fd9ecad054@fedoraproject.org \
--to=quantum.analyst@gmail.com \
--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