Compare commits

7 Commits

Author SHA256 Message Date
d58043bad1 Accepting request 1227914 from science
OBS-URL: https://build.opensuse.org/request/show/1227914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=14
2024-12-03 19:46:35 +00:00
e52e10f254 Accepting request 1227813 from home:badshah400:lal-fixes
Add lalinference-swig-stringval-not-value.patch: For compatibility with swig 4.3.0, prefer 'stringval' before 'value' attribute (upstream commit 9dba245a).

OBS-URL: https://build.opensuse.org/request/show/1227813
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=33
2024-12-03 06:34:23 +00:00
9cf2b97028 Accepting request 1201177 from science
OBS-URL: https://build.opensuse.org/request/show/1201177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=13
2024-09-15 10:35:33 +00:00
3c1811dd0d Accepting request 1200889 from home:badshah400:branches:science
- Drop upstreamed patches:
  * 0001-Replace-SafeConfigParser-with-ConfigParser.patch
  * lalinference-scipy-1_14-compat.patch

OBS-URL: https://build.opensuse.org/request/show/1200889
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=31
2024-09-14 16:33:39 +00:00
147089357e Accepting request 1200191 from home:badshah400:branches:science
Version update and numpy 2.0 compatibilty

OBS-URL: https://build.opensuse.org/request/show/1200191
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=30
2024-09-12 06:45:41 +00:00
e5db1a3b91 Accepting request 1189329 from science
OBS-URL: https://build.opensuse.org/request/show/1189329
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=12
2024-07-25 13:38:56 +00:00
8b0c9dc786 Accepting request 1188830 from home:badshah400:lal-update
Update to version 4.1.6

(NOTE: Depends on python-healpy sr#1188826)

OBS-URL: https://build.opensuse.org/request/show/1188830
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=28
2024-07-24 07:55:39 +00:00
6 changed files with 74 additions and 52 deletions

View File

@@ -1,45 +0,0 @@
From 2d0fca820c6258836d3caf0b87fb804ec94e48d4 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Fri, 1 Mar 2024 18:04:16 +0100
Subject: [PATCH] Replace SafeConfigParser with ConfigParser
The rename and deprecation happened with Python 3.2 and SafeConfigParser
was removed in Python 3.12
diff --git a/lalinference/bin/lalinference_pipe.py b/lalinference/bin/lalinference_pipe.py
index 9dab7c6471..cb35c7dbba 100644
--- alalinference/bin/lalinference_pipe.py
+++ blalinference/bin/lalinference_pipe.py
@@ -211,7 +211,7 @@ if len(args)!=1:
inifile=args[0]
-cp=configparser.SafeConfigParser()
+cp=configparser.ConfigParser()
fp=open(inifile)
cp.optionxform = str
cp.readfp(fp)
diff --git a/lalinference/bin/lalinference_review_test.py b/lalinference/bin/lalinference_review_test.py
index a861dfd631..15dd66892f 100644
--- alalinference/bin/lalinference_review_test.py
+++ blalinference/bin/lalinference_review_test.py
@@ -6,7 +6,7 @@ import subprocess
import glob
import lalinference
-from six.moves.configparser import SafeConfigParser
+from configparser import ConfigParser
prefix=''
try:
@@ -101,7 +101,7 @@ except KeyError:
sys.exit()
def init_ini_file(file=args.ini_file):
- cp=SafeConfigParser()
+ cp=ConfigParser()
fp=open(file)
cp.optionxform = str
cp.readfp(fp)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f16e47171aa680b3a229f8abdf61b758d3a27c5abdec4ed508fdfa7de10553ba
size 1007936

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82578af17e68240c31da390c80985431af73f8cf2dab052089066f661aa976e2
size 1017360

View File

@@ -0,0 +1,33 @@
From 9dba245ab3692ecf691247a442704f13c075ed34 Mon Sep 17 00:00:00 2001
From: Karl Wette <karl.wette@ligo.org>
Date: Thu, 24 Oct 2024 18:06:30 +1100
Subject: [PATCH] common/swig/generate_swig_iface.py: prefer "stringval" before
"value" attribute
- As of SWIG 4.3.0 "value" attribute contains quote characters
- "stringval" attribute appears to still contain the raw string
---
common/swig/generate_swig_iface.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/common/swig/generate_swig_iface.py b/common/swig/generate_swig_iface.py
index 530b026d5d..eaee2d41ce 100644
--- a/common/swig/generate_swig_iface.py
+++ b/common/swig/generate_swig_iface.py
@@ -195,9 +195,11 @@ class SwigSymbols(object):
"""Parse a swiglal macro
"""
cdecl_name = get_swig_attr(cdecl, 'name')
- cdecl_value = get_swig_attr(cdecl, 'value')
+ cdecl_value = get_swig_attr(cdecl, 'stringval')
if not cdecl_value:
- raise ValueError("cdecl '{}' has no value".format(cdecl_name))
+ cdecl_value = get_swig_attr(cdecl, 'value')
+ if not cdecl_value:
+ raise ValueError("cdecl '{}' has no value".format(cdecl_name))
macro = re.sub(r'\s', '', cdecl_value)
if cdecl_name == '__swiglal__':
if macro in clear_macros:
--
GitLab

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Mon Dec 2 15:18:22 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Add lalinference-swig-stringval-not-value.patch: For
compatibility with swig 4.3.0, prefer 'stringval' before 'value'
attribute (upstream commit 9dba245a).
-------------------------------------------------------------------
Thu Sep 12 17:40:21 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Drop upstreamed patches:
* 0001-Replace-SafeConfigParser-with-ConfigParser.patch
* lalinference-scipy-1_14-compat.patch
-------------------------------------------------------------------
Wed Sep 11 18:26:12 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 4.1.7 (no release notes).
-------------------------------------------------------------------
Sat Jul 20 03:44:05 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 4.1.6:
* No release notes.
- Add lalinference-scipy-1_14-compat.patch -- Account for name
changes of trapezoidal functions in scipy.integrate for scipy >=
1.14
-------------------------------------------------------------------
Fri Mar 1 17:16:21 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -32,7 +32,7 @@
%bcond_with octave
Name: %{pname}%{?psuffix}
Version: 4.1.5
Version: 4.1.7
Release: 0
Summary: LSC Algorithm Inference Library
License: GPL-2.0-or-later
@@ -41,8 +41,8 @@ URL: https://wiki.ligo.org/Computing/DASWG/LALSuite
Source: https://software.igwn.org/sources/source/lalsuite/%{pname}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM lalinference-printf-data-type-consistency.patch badshah400@gmail.com -- Cast data passed to printf from size_t to long to make it consistent with the format "%li"; this fixes build failures on i586
Patch0: lalinference-printf-data-type-consistency.patch
# PATCH-FIX-UPSTREAM 0001-Replace-SafeConfigParser-with-ConfigParser.patch sent to duncan.macleod@ligo.org by code@bnavigator.de
Patch1: 0001-Replace-SafeConfigParser-with-ConfigParser.patch
# PATCH-FIX-UPSTREAM
Patch1: https://git.ligo.org/lscsoft/lalsuite/-/commit/9dba245ab3692ecf691247a442704f13c075ed34.patch#/lalinference-swig-stringval-not-value.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.7}
BuildRequires: fdupes
@@ -135,6 +135,7 @@ BuildArch: noarch
%description -n %{name}-data
This package provides the data files for lalinference.
%if %{with octave}
%package -n octave-lalinference
Summary: Octave bindings for LAL Inference
Group: Productivity/Scientific/Physics
@@ -150,9 +151,14 @@ Requires: octave-lalsimulation
%description -n octave-lalinference
This package provides the necessary files for using LAL Inference with octave.
%endif
%prep
%autosetup -p1 -n %{pname}-%{version}
# Upstream commits are -p1 against the full lalsuite, but -p2 against individual lal* pkgs
# Patch0 is not upstream and uses -p1, so we have a mix of -p1 and -p2 patches
%autosetup -N -n %{pname}-%{version}
%patch -P0 -p1
%patch -P1 -p2
%build
%{python_expand # Necessary to run %%configure with all python flavors