File: 20_reproducible_build.patch

package info (click to toggle)
sfepy 2025.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,388 kB
  • sloc: python: 75,418; ansic: 13,267; makefile: 131; sh: 30
file content (26 lines) | stat: -rw-r--r-- 1,352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2018-05-30

Index: sfepy-release_2025.2/sfepy/solvers/ls.py
===================================================================
--- sfepy-release_2025.2.orig/sfepy/solvers/ls.py
+++ sfepy-release_2025.2/sfepy/solvers/ls.py
@@ -266,7 +266,7 @@ class ScipyIterative(LinearSolver):
     _parameters = [
         ('method', 'str', 'cg', False,
          'The actual solver to use.'),
-        ('setup_precond', 'callable', lambda mtx, context: None, False,
+        ('setup_precond', 'callable', None, False,
          """User-supplied function for the preconditioner initialization/setup.
             It is called as setup_precond(mtx, context), where mtx is the
             matrix, context is a user-supplied context, and should return one
@@ -516,7 +516,7 @@ class PyAMGKrylovSolver(LinearSolver):
     _parameters = [
         ('method', 'str', 'cg', False,
          'The actual solver to use.'),
-        ('setup_precond', 'callable', lambda mtx, context: None, False,
+        ('setup_precond', 'callable', None, False,
          """User-supplied function for the preconditioner initialization/setup.
             It is called as setup_precond(mtx, context), where mtx is the
             matrix, context is a user-supplied context, and should return one