public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xtl] epel10: Fix build with Sphinx 4.
@ 2026-07-11 22:45 Elliott Sales de Andrade
  0 siblings, 0 replies; only message in thread
From: Elliott Sales de Andrade @ 2026-07-11 22:45 UTC (permalink / raw)
  To: git-commits

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)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-11 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-11 22:45 [rpms/xtl] epel10: Fix build with Sphinx 4 Elliott Sales de Andrade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox