mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-10 23:18:51 -04:00
283 lines
11 KiB
Diff
283 lines
11 KiB
Diff
diff -up configure.orig configure
|
|
--- configure.orig 2022-01-30 06:43:09.000000000 -0700
|
|
+++ configure 2022-03-04 16:30:36.953830625 -0700
|
|
@@ -16226,12 +16226,12 @@ if test -n "$OPENBLAS_CFLAGS"; then
|
|
pkg_cv_OPENBLAS_CFLAGS="$OPENBLAS_CFLAGS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openblas >= 0.2.20\""; } >&5
|
|
- ($PKG_CONFIG --exists --print-errors "openblas >= 0.2.20") 2>&5
|
|
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flexiblas >= 3.0.0\""; } >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "flexiblas >= 3.0.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
- pkg_cv_OPENBLAS_CFLAGS=`$PKG_CONFIG --cflags "openblas >= 0.2.20" 2>/dev/null`
|
|
+ pkg_cv_OPENBLAS_CFLAGS=`$PKG_CONFIG --cflags "flexiblas >= 3.0.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
@@ -16243,12 +16243,12 @@ if test -n "$OPENBLAS_LIBS"; then
|
|
pkg_cv_OPENBLAS_LIBS="$OPENBLAS_LIBS"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openblas >= 0.2.20\""; } >&5
|
|
- ($PKG_CONFIG --exists --print-errors "openblas >= 0.2.20") 2>&5
|
|
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flexiblas >= 3.0.0\""; } >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "flexiblas >= 3.0.0") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
- pkg_cv_OPENBLAS_LIBS=`$PKG_CONFIG --libs "openblas >= 0.2.20" 2>/dev/null`
|
|
+ pkg_cv_OPENBLAS_LIBS=`$PKG_CONFIG --libs "flexiblas >= 3.0.0" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
@@ -16269,9 +16269,9 @@ else
|
|
_pkg_short_errors_supported=no
|
|
fi
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
- OPENBLAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openblas >= 0.2.20" 2>&1`
|
|
+ OPENBLAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flexiblas >= 3.0.0" 2>&1`
|
|
else
|
|
- OPENBLAS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openblas >= 0.2.20" 2>&1`
|
|
+ OPENBLAS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flexiblas >= 3.0.0" 2>&1`
|
|
fi
|
|
# Put the nasty error message in config.log where it belongs
|
|
echo "$OPENBLAS_PKG_ERRORS" >&5
|
|
@@ -16299,16 +16299,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
-char openblas_get_config ();
|
|
+char flexiblas_get_version ();
|
|
int
|
|
main ()
|
|
{
|
|
-return openblas_get_config ();
|
|
+return flexiblas_get_version ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas cblas blas; do
|
|
+for ac_lib in '' flexiblas cblas blas; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16358,22 +16358,22 @@ else
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
- char *openblas_get_config(void);
|
|
+ void flexiblas_get_version(void);
|
|
int version[3];
|
|
int
|
|
main ()
|
|
{
|
|
version[0] = version[1] = version[2] = 0;
|
|
/*printf("%s", openblas_get_config());*/
|
|
- if (sscanf(openblas_get_config(), "OpenBLAS %d.%d.%d",
|
|
- version, version+1, version+2) < 1)
|
|
- return 1;
|
|
+ flexiblas_get_version(&version[0], &version[1], &version[2]);
|
|
+
|
|
+
|
|
if ( 10000 * version[0]
|
|
+ 100 * version[1]
|
|
+ version[2]
|
|
- < 10000 * 0
|
|
- + 100 * 2
|
|
- + 20)
|
|
+ < 10000 * 3
|
|
+ + 100 * 0
|
|
+ + 0)
|
|
return 1;
|
|
;
|
|
return 0;
|
|
@@ -16426,7 +16426,7 @@ return cblas_dgemm ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas cblas blas; do
|
|
+for ac_lib in '' flexiblas cblas blas; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16490,7 +16490,7 @@ return dgeqrf ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16554,7 +16554,7 @@ return dgeqrf_ ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16618,7 +16618,7 @@ return DGEQRF ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16682,7 +16682,7 @@ return DGEQRF_ ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16770,16 +16770,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
-char openblas_get_config ();
|
|
+char flexiblas_get_version ();
|
|
int
|
|
main ()
|
|
{
|
|
-return openblas_get_config ();
|
|
+return flexiblas_get_version ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas cblas blas; do
|
|
+for ac_lib in '' flexiblas cblas blas; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16829,22 +16829,22 @@ else
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
- char *openblas_get_config(void);
|
|
+ void flexiblas_get_version(void);
|
|
int version[3];
|
|
int
|
|
main ()
|
|
{
|
|
version[0] = version[1] = version[2] = 0;
|
|
/*printf("%s", openblas_get_config());*/
|
|
- if (sscanf(openblas_get_config(), "OpenBLAS %d.%d.%d",
|
|
- version, version+1, version+2) < 1)
|
|
- return 1;
|
|
+ flexiblas_get_version(&version[0], &version[1], &version[2]);
|
|
+
|
|
+
|
|
if ( 10000 * version[0]
|
|
+ 100 * version[1]
|
|
+ version[2]
|
|
- < 10000 * 0
|
|
- + 100 * 2
|
|
- + 20)
|
|
+ < 10000 * 3
|
|
+ + 100 * 0
|
|
+ + 0)
|
|
return 1;
|
|
;
|
|
return 0;
|
|
@@ -16897,7 +16897,7 @@ return cblas_dgemm ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas cblas blas; do
|
|
+for ac_lib in '' flexiblas cblas blas; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -16961,7 +16961,7 @@ return dgeqrf ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -17025,7 +17025,7 @@ return dgeqrf_ ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -17089,7 +17089,7 @@ return DGEQRF ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -17153,7 +17153,7 @@ return DGEQRF_ ();
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
-for ac_lib in '' openblas lapack; do
|
|
+for ac_lib in '' flexiblas lapack; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
@@ -17228,12 +17228,12 @@ if test -n "$OPENBLASPCDIR"; then
|
|
pkg_cv_OPENBLASPCDIR="$OPENBLASPCDIR"
|
|
elif test -n "$PKG_CONFIG"; then
|
|
if test -n "$PKG_CONFIG" && \
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openblas\""; } >&5
|
|
- ($PKG_CONFIG --exists --print-errors "openblas") 2>&5
|
|
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flexiblas\""; } >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "flexiblas") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
test $ac_status = 0; }; then
|
|
- pkg_cv_OPENBLASPCDIR=`$PKG_CONFIG --variable="pcfiledir" "openblas" 2>/dev/null`
|
|
+ pkg_cv_OPENBLASPCDIR=`$PKG_CONFIG --variable="pcfiledir" "flexiblas" 2>/dev/null`
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
else
|
|
pkg_failed=yes
|
|
@@ -17448,7 +17448,7 @@ fi
|
|
if test x$sage_spkg_install_openblas != xyes; then :
|
|
|
|
|
|
- SAGE_OPENBLAS_PC_COMMAND="\$(LN) -sf \"$OPENBLASPCDIR/openblas.pc\" \"\$(@)\""
|
|
+ SAGE_OPENBLAS_PC_COMMAND="\$(LN) -sf \"$OPENBLASPCDIR/flexiblas.pc\" \"\$(@)\""
|
|
|
|
|
|
if test x$sage_install_blas_pc = xyes; then :
|
|
diff -up src/sage/env.py.orig src/sage/env.py
|
|
--- src/sage/env.py.orig 2022-03-04 16:23:09.566306142 -0700
|
|
+++ src/sage/env.py 2022-03-04 16:30:36.953830625 -0700
|
|
@@ -221,7 +221,7 @@ FOURTITWO_PPI = var("FOURTITWO_PPI")
|
|
FOURTITWO_CIRCUITS = var("FOURTITWO_CIRCUITS")
|
|
FOURTITWO_GROEBNER = var("FOURTITWO_GROEBNER")
|
|
ARB_LIBRARY = var("ARB_LIBRARY", "arb")
|
|
-CBLAS_PC_MODULES = var("CBLAS_PC_MODULES", "cblas:openblas:blas")
|
|
+CBLAS_PC_MODULES = var("CBLAS_PC_MODULES", "flexiblas:cblas:openblas:blas")
|
|
ECL_CONFIG = var("ECL_CONFIG", "ecl-config")
|
|
NTL_INCDIR = var("NTL_INCDIR")
|
|
NTL_LIBDIR = var("NTL_LIBDIR")
|
|
@@ -467,7 +467,7 @@ def cython_aliases(required_modules=None
|
|
for lib, required in itertools.chain(((lib, True) for lib in required_modules),
|
|
((lib, False) for lib in optional_modules)):
|
|
var = lib.upper().replace("-", "") + "_"
|
|
- if lib == 'cblas':
|
|
+ if lib == 'cblas' or lib == 'lapack':
|
|
lib = get_cblas_pc_module_name()
|
|
if lib == 'zlib':
|
|
aliases[var + "CFLAGS"] = ""
|