commit cadabra2 for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cadabra2 for openSUSE:Factory checked in at 2024-10-08 17:24:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cadabra2 (Old) and /work/SRC/openSUSE:Factory/.cadabra2.new.19354 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "cadabra2" Tue Oct 8 17:24:40 2024 rev:27 rq:1206202 version:2.5.6 Changes: -------- --- /work/SRC/openSUSE:Factory/cadabra2/cadabra2.changes 2024-08-17 12:44:48.916421074 +0200 +++ /work/SRC/openSUSE:Factory/.cadabra2.new.19354/cadabra2.changes 2024-10-08 17:25:50.992637358 +0200 @@ -1,0 +2,13 @@ +Mon Oct 7 19:25:33 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com> + +- Update to version 2.5.6: + * Clean up code to locate the Python installation substantially + to avoid references to hard-coded paths in binaries. +- Drop upstreamed patches: + * cadabra2-cmake-correct-python-variable.patch. + * cadabra2-use-system-pybind11.patch. + * cadabra2-link-gmp.patch. +- Add cadabra2-default-python-path.patch: Fix default python path + when starting up cadabra2. + +------------------------------------------------------------------- @@ -4 +17 @@ -- Update to version 2.5.2: +- Update to version 2.5.4: Old: ---- cadabra2-2.5.4.obscpio cadabra2-cmake-correct-python-variable.patch cadabra2-link-gmp.patch cadabra2-use-system-pybind11.patch New: ---- cadabra2-2.5.6.obscpio cadabra2-default-python-path.patch BETA DEBUG BEGIN: Old:- Drop upstreamed patches: * cadabra2-cmake-correct-python-variable.patch. * cadabra2-use-system-pybind11.patch. Old: * cadabra2-use-system-pybind11.patch. * cadabra2-link-gmp.patch. - Add cadabra2-default-python-path.patch: Fix default python path Old: * cadabra2-cmake-correct-python-variable.patch. * cadabra2-use-system-pybind11.patch. * cadabra2-link-gmp.patch. BETA DEBUG END: BETA DEBUG BEGIN: New: * cadabra2-link-gmp.patch. - Add cadabra2-default-python-path.patch: Fix default python path when starting up cadabra2. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cadabra2.spec ++++++ --- /var/tmp/diff_new_pack.kMEbsu/_old 2024-10-08 17:25:51.872674086 +0200 +++ /var/tmp/diff_new_pack.kMEbsu/_new 2024-10-08 17:25:51.872674086 +0200 @@ -27,7 +27,7 @@ %global pythons python3 %endif Name: cadabra2 -Version: 2.5.4 +Version: 2.5.6 Release: 0 Summary: A computer algebra system for solving problems in field theory License: GPL-3.0-or-later @@ -36,12 +36,8 @@ Source0: %{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM cadabra2-disable-components-test.patch gh#kpeeters/cadabra2#212 badshah400@gmail.com -- Disable a test that crashes for unknown reasons Patch0: cadabra2-disable-components-test.patch -# PATCH-FIX-UPSTREAM cadabra2-link-gmp.patch badshah400@gmail.com -- Link against gmp shared lib explicitly -Patch1: cadabra2-link-gmp.patch -# PATCH-FIX-UPSTREAM cadabra2-use-system-pybind11.patch gh#kpeeters/cadabra2#310 badshah400@gmail.com -- Allow use of system pybind11, fall back to bundled sources if not found -Patch2: cadabra2-use-system-pybind11.patch -# PATCH-FIX-UPSTREAM cadabra2-cmake-correct-python-variable.patch gh#kpeeters/cadabra2#309 badshah400@gmail.com -- Use correct variable set by cmake FindPython, i.e. Python_EXECUTABLE, not PYTHON_EXECUTABLE -Patch3: cadabra2-cmake-correct-python-variable.patch +# PATCH-FEATURE-OPENSUSE cadabra2-default-python-path.patch badshah400@gmail.com -- Fix default python path when starting up cadabra2 +Patch1: cadabra2-default-python-path.patch BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module gobject-devel} BuildRequires: %{python_module ipykernel} ++++++ _service ++++++ --- /var/tmp/diff_new_pack.kMEbsu/_old 2024-10-08 17:25:51.912675755 +0200 +++ /var/tmp/diff_new_pack.kMEbsu/_new 2024-10-08 17:25:51.916675922 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="url">https://github.com/kpeeters/cadabra2.git</param> <param name="scm">git</param> - <param name="revision">2.5.4</param> + <param name="revision">2.5.6</param> <param name="versionformat">@PARENT_TAG@</param> <param name="filename">cadabra2</param> <param name="submodules">enable</param> ++++++ cadabra2-2.5.4.obscpio -> cadabra2-2.5.6.obscpio ++++++ /work/SRC/openSUSE:Factory/cadabra2/cadabra2-2.5.4.obscpio /work/SRC/openSUSE:Factory/.cadabra2.new.19354/cadabra2-2.5.6.obscpio differ: char 49, line 1 ++++++ cadabra2-default-python-path.patch ++++++ --- core/pythoncdb/py_helpers.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Index: cadabra2-2.5.6/core/pythoncdb/py_helpers.cc =================================================================== --- cadabra2-2.5.6.orig/core/pythoncdb/py_helpers.cc +++ cadabra2-2.5.6/core/pythoncdb/py_helpers.cc @@ -45,8 +45,10 @@ namespace cadabra { if(spath=="") { py::module_ sysconfig = py::module_::import("sysconfig"); - py::object result = sysconfig.attr("get_path")("platlib"); - spath = result.cast<std::string>(); + // On openSUSE, this gives paths relative to /usr/local/; use 'stdlib' instead + // py::object result = sysconfig.attr("get_path")("platlib"); + py::object result = sysconfig.attr("get_path")("stdlib"); + spath = result.cast<std::string>() + "/site-packages"; // Some older systems return the wrong path in platlib: they // use "dist-packages", but still return "site-packages". So we // test for the existence of platlib, and if it does not ++++++ cadabra2.obsinfo ++++++ --- /var/tmp/diff_new_pack.kMEbsu/_old 2024-10-08 17:25:51.972678259 +0200 +++ /var/tmp/diff_new_pack.kMEbsu/_new 2024-10-08 17:25:51.976678426 +0200 @@ -1,5 +1,5 @@ name: cadabra2 -version: 2.5.4 -mtime: 1723292700 -commit: 940443b1e78b2b191caa23307c74703202bedf13 +version: 2.5.6 +mtime: 1727641956 +commit: a60a615f8addb44edb2cf97a146bda662b4eef48
participants (1)
-
Source-Sync