Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] ecl: update to 23.9.9.
@ 2023-09-10 15:09 tornaria
  2023-09-10 22:56 ` tornaria
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tornaria @ 2023-09-10 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages ecl
https://github.com/void-linux/void-packages/pull/46003

ecl: update to 23.9.9.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**


<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46003.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ecl-46003.patch --]
[-- Type: text/x-diff, Size: 7515 bytes --]

From 8a7271fb243cfe3c8332ed369721749db55bbc7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:19:48 -0300
Subject: [PATCH 1/3] ecl: update to 23.9.9.

---
 common/shlibs                             |  2 +-
 srcpkgs/ecl/patches/fix-math_fenv_h.patch | 31 -----------------------
 srcpkgs/ecl/template                      |  5 ++--
 3 files changed, 4 insertions(+), 34 deletions(-)
 delete mode 100644 srcpkgs/ecl/patches/fix-math_fenv_h.patch

diff --git a/common/shlibs b/common/shlibs
index 531b3345e230f..09344dbed052e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4047,7 +4047,7 @@ libcxsparse.so.4 SuiteSparse-6.0.1_1
 libspqr.so.3 SuiteSparse-6.0.1_1
 libsuitesparseconfig.so.7 SuiteSparse-7.0.1_1
 libumfpack.so.6 SuiteSparse-6.0.1_1
-libecl.so.21.2 ecl-21.2.1_1
+libecl.so.23.9 ecl-23.9.9_1
 libecm.so.1 ecm-7.0.4_3
 libcliquer.so.1 cliquer-1.22_1
 libomalloc-0.9.6.so singular-4.2.1_1
diff --git a/srcpkgs/ecl/patches/fix-math_fenv_h.patch b/srcpkgs/ecl/patches/fix-math_fenv_h.patch
deleted file mode 100644
index 9d10af8d573e6..0000000000000
--- a/srcpkgs/ecl/patches/fix-math_fenv_h.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Source: @pullmoll
-Upstream: https://gitlab.com/embeddable-common-lisp/ecl/-/issues/653#note_675299471
-Reason: Some architectures do not define all of the FE_.. constants
-Example: mips-musl needs this
-
-diff --git a/src/h/impl/math_fenv.h b/src/h/impl/math_fenv.h
-index ea13d87b4..2afbb9549 100644
---- a/src/h/impl/math_fenv.h
-+++ b/src/h/impl/math_fenv.h
-@@ -55,6 +55,21 @@
- #ifdef HAVE_FENV_H
- # define ECL_WITHOUT_FPE_BEGIN do { fenv_t env; feholdexcept(&env);
- # define ECL_WITHOUT_FPE_END        fesetenv(&env); } while (0)
-+# if !defined(FE_DIVBYZERO)
-+#  define FE_DIVBYZERO 0
-+# endif
-+# if !defined(FE_INVALID)
-+#  define FE_INVALID 0
-+# endif
-+# if !defined(FE_OVERFLOW)
-+#  define FE_OVERFLOW 0
-+# endif
-+# if !defined(FE_UNDERFLOW)
-+#  define FE_UNDERFLOW 0
-+# endif
-+# if !defined(FE_INEXACT)
-+#  define FE_INEXACT 0
-+# endif
- #else
- # define FE_INVALID 1
- # define FE_DIVBYZERO 2
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index dcfb6ff48a363..688cb1d0fd496 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -1,6 +1,6 @@
 # Template file for 'ecl'
 pkgname=ecl
-version=21.2.1
+version=23.9.9
 revision=1
 build_style=gnu-configure
 configure_args="--enable-gmp=system --enable-boehm=system
@@ -12,8 +12,9 @@ short_desc="Common-Lisp interpreter as described in the X3J13 Ansi specification
 maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
 license="LGPL-2.1-or-later"
 homepage="https://common-lisp.net/project/ecl/"
+changelog="https://gitlab.com/embeddable-common-lisp/ecl/-/raw/develop/CHANGELOG"
 distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
-checksum=b15a75dcf84b8f62e68720ccab1393f9611c078fcd3afdd639a1086cad010900
+checksum=c51bdab4ca6c1173dd3fe9cfe9727bcefb97bb0a3d6434b627ca6bdaeb33f880
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl

From 29c13f72e2065c9016e1239be655e747ce1a75b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:26:04 -0300
Subject: [PATCH 2/3] maxima: revbump for ecl

---
 srcpkgs/maxima/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/maxima/template b/srcpkgs/maxima/template
index 04f732dbb0fec..4a9839b44f120 100644
--- a/srcpkgs/maxima/template
+++ b/srcpkgs/maxima/template
@@ -1,7 +1,7 @@
 # Template file for 'maxima'
 pkgname=maxima
 version=5.47.0
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="$(vopt_enable clisp) $(vopt_enable sbcl sbcl-exec) $(vopt_enable ecl)"
 hostmakedepends="python3 perl texinfo patchelf $(vopt_if ecl ecl)"

From 6691095fdda971ed3b92770aba80d5af8b311226 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:26:04 -0300
Subject: [PATCH 3/3] sagemath: patch and rebuild for ecl-23.9.9

---
 .../sagemath/patches/36006-gmp_6.3.0.patch    |  2 +-
 .../sagemath/patches/36235-ecl_23.9.9.patch   | 39 +++++++++++++++++++
 srcpkgs/sagemath/patches/get_patches          |  7 +++-
 srcpkgs/sagemath/template                     |  2 +-
 4 files changed, 47 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch

diff --git a/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch b/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
index 91a77de342935..6a35ec3836550 100644
--- a/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
+++ b/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
@@ -24,7 +24,7 @@ index 1de6dedab82..b95130b19dd 100644
  AUTHORS:
  
 diff --git a/src/sage/rings/integer.pyx b/src/sage/rings/integer.pyx
-index 2cd080ddafa..090ab59cb28 100644
+index d5e87626d31..37ed9364845 100644
 --- a/src/sage/rings/integer.pyx
 +++ b/src/sage/rings/integer.pyx
 @@ -6654,7 +6654,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
diff --git a/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch b/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
new file mode 100644
index 0000000000000..684b62affaf5a
--- /dev/null
+++ b/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
@@ -0,0 +1,39 @@
+diff --git a/src/sage/libs/ecl.pyx b/src/sage/libs/ecl.pyx
+index 8f46570313d..a8e73e57b52 100644
+--- a/src/sage/libs/ecl.pyx
++++ b/src/sage/libs/ecl.pyx
+@@ -563,15 +563,15 @@ cdef class EclObject:
+     Floats in Python are IEEE double, which LISP has as well. However,
+     the printing of floating point types in LISP depends on settings::
+ 
+-        sage: a = EclObject(float(10^40))
++        sage: a = EclObject(float(1.234e40))
+         sage: ecl_eval("(setf *read-default-float-format* 'single-float)")
+         <ECL: SINGLE-FLOAT>
+         sage: a
+-        <ECL: 1.d40>
++        <ECL: 1.234d40>
+         sage: ecl_eval("(setf *read-default-float-format* 'double-float)")
+         <ECL: DOUBLE-FLOAT>
+         sage: a
+-        <ECL: 1.e40>
++        <ECL: 1.234e40>
+ 
+     Tuples are translated to dotted lists::
+ 
+diff --git a/src/sage/libs/eclsig.h b/src/sage/libs/eclsig.h
+index e249ccf6874..005b2d99d0b 100644
+--- a/src/sage/libs/eclsig.h
++++ b/src/sage/libs/eclsig.h
+@@ -45,7 +45,11 @@ static inline void ecl_sig_off(void)
+     sig_off();
+ }
+ 
++#if ECL_VERSION_NUMBER < 230909
+ #define ecl_mpz_from_bignum(obj) ((obj)->big.big_num)
++#else
++#define ecl_mpz_from_bignum(obj) ecl_bignum(obj)
++#endif
+ 
+ cl_object ecl_bignum_from_mpz(mpz_t num)
+ {
diff --git a/srcpkgs/sagemath/patches/get_patches b/srcpkgs/sagemath/patches/get_patches
index c2c5aa1c7eccd..27c1304f4fdf7 100755
--- a/srcpkgs/sagemath/patches/get_patches
+++ b/srcpkgs/sagemath/patches/get_patches
@@ -24,6 +24,11 @@ cd $(dirname "$0")
 #get_pr  36018   "singular 4.3.2p4" # included in #35934
 get_pr  36046   "fix memory leak"
 
-# positive review
+# merged in 10.2.beta1
 get_pr  35934   "singular 4.3.2p7"
+
+# positive review
 get_pr  36006   "gmp 6.3.0"
+
+# needs review
+get_pr  36235   "ecl 23.9.9"
diff --git a/srcpkgs/sagemath/template b/srcpkgs/sagemath/template
index 019ad37cb3a70..e180eda47d342 100644
--- a/srcpkgs/sagemath/template
+++ b/srcpkgs/sagemath/template
@@ -1,7 +1,7 @@
 # Template file for 'sagemath'
 pkgname=sagemath
 version=10.1
-revision=2
+revision=3
 build_wrksrc=pkgs/sagemath-standard
 build_style=python3-module
 _bindir=/usr/lib/sagemath/$version/bin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ecl: update to 23.9.9.
  2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
@ 2023-09-10 22:56 ` tornaria
  2023-09-11  5:19 ` knusbaum
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tornaria @ 2023-09-10 22:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/46003#issuecomment-1712962632

Comment:
@knusbaum are you still interested in void linux, or shall we orphan your packages?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ecl: update to 23.9.9.
  2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
  2023-09-10 22:56 ` tornaria
@ 2023-09-11  5:19 ` knusbaum
  2023-09-11 16:07 ` tornaria
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: knusbaum @ 2023-09-11  5:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

New comment by knusbaum on void-packages repository

https://github.com/void-linux/void-packages/pull/46003#issuecomment-1713182129

Comment:
@tornaria I still use Void Linux daily, however in recent times I've been unable to devote much time to package maintenance.

I'm not sure what's expected from package maintainers. If there is a clear expectation, I can try to meet it, as I still do want to contribute and may have more time upcoming.

I'm also ok with orphaning the packages if that will benefit the project, or if this package is particularly important to you, I can pass maintainership to you.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ecl: update to 23.9.9.
  2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
  2023-09-10 22:56 ` tornaria
  2023-09-11  5:19 ` knusbaum
@ 2023-09-11 16:07 ` tornaria
  2023-09-19 19:27 ` [PR PATCH] [Updated] " tornaria
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tornaria @ 2023-09-11 16:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/46003#issuecomment-1714183881

Comment:
Thanks for your quick answer!

> I'm not sure what's expected from package maintainers. If there is a clear expectation, I can try to meet it, as I still do want to contribute and may have more time upcoming.

I'm not sure either. I guess keep packages up to date when necessary, fix when there is breakage, etc. I think its quite useful that the maintainer is a frequent user of the package.

> I'm also ok with orphaning the packages if that will benefit the project, or if this package is particularly important to you, I can pass maintainership to you.

Only reason is because it is a core dependency of sagemath and maxima, but I'm not too much into lisp myself. I usually monitor some packages of interest like `ecl` and I don't mind doing updates and pinging you for feedback as here.

If you are a regular user of `ecl` you are definitely a better maintainer than me (I only use it indirectly via sagemath -> maxima -> ecl, and not a lot since I'm not a big user of symbolics in sagemath, which is the part that uses maxima).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] ecl: update to 23.9.9.
  2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
                   ` (2 preceding siblings ...)
  2023-09-11 16:07 ` tornaria
@ 2023-09-19 19:27 ` tornaria
  2023-09-22  0:38 ` tornaria
  2023-09-22 22:06 ` [PR PATCH] [Merged]: " Duncaen
  5 siblings, 0 replies; 7+ messages in thread
From: tornaria @ 2023-09-19 19:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages ecl
https://github.com/void-linux/void-packages/pull/46003

ecl: update to 23.9.9.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**


<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46003.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ecl-46003.patch --]
[-- Type: text/x-diff, Size: 9051 bytes --]

From 2e82387948ef342f5e90c5561724bc1fef096655 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:19:48 -0300
Subject: [PATCH 1/3] ecl: update to 23.9.9.

---
 common/shlibs                             |  2 +-
 srcpkgs/ecl/patches/fix-math_fenv_h.patch | 31 -----------------------
 srcpkgs/ecl/template                      |  5 ++--
 3 files changed, 4 insertions(+), 34 deletions(-)
 delete mode 100644 srcpkgs/ecl/patches/fix-math_fenv_h.patch

diff --git a/common/shlibs b/common/shlibs
index c9d59ef3b97ca..a4e8c6b6354b4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4048,7 +4048,7 @@ libcxsparse.so.4 SuiteSparse-6.0.1_1
 libspqr.so.3 SuiteSparse-6.0.1_1
 libsuitesparseconfig.so.7 SuiteSparse-7.0.1_1
 libumfpack.so.6 SuiteSparse-6.0.1_1
-libecl.so.21.2 ecl-21.2.1_1
+libecl.so.23.9 ecl-23.9.9_1
 libecm.so.1 ecm-7.0.4_3
 libcliquer.so.1 cliquer-1.22_1
 libomalloc-0.9.6.so singular-4.2.1_1
diff --git a/srcpkgs/ecl/patches/fix-math_fenv_h.patch b/srcpkgs/ecl/patches/fix-math_fenv_h.patch
deleted file mode 100644
index 9d10af8d573e6..0000000000000
--- a/srcpkgs/ecl/patches/fix-math_fenv_h.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Source: @pullmoll
-Upstream: https://gitlab.com/embeddable-common-lisp/ecl/-/issues/653#note_675299471
-Reason: Some architectures do not define all of the FE_.. constants
-Example: mips-musl needs this
-
-diff --git a/src/h/impl/math_fenv.h b/src/h/impl/math_fenv.h
-index ea13d87b4..2afbb9549 100644
---- a/src/h/impl/math_fenv.h
-+++ b/src/h/impl/math_fenv.h
-@@ -55,6 +55,21 @@
- #ifdef HAVE_FENV_H
- # define ECL_WITHOUT_FPE_BEGIN do { fenv_t env; feholdexcept(&env);
- # define ECL_WITHOUT_FPE_END        fesetenv(&env); } while (0)
-+# if !defined(FE_DIVBYZERO)
-+#  define FE_DIVBYZERO 0
-+# endif
-+# if !defined(FE_INVALID)
-+#  define FE_INVALID 0
-+# endif
-+# if !defined(FE_OVERFLOW)
-+#  define FE_OVERFLOW 0
-+# endif
-+# if !defined(FE_UNDERFLOW)
-+#  define FE_UNDERFLOW 0
-+# endif
-+# if !defined(FE_INEXACT)
-+#  define FE_INEXACT 0
-+# endif
- #else
- # define FE_INVALID 1
- # define FE_DIVBYZERO 2
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index dcfb6ff48a363..688cb1d0fd496 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -1,6 +1,6 @@
 # Template file for 'ecl'
 pkgname=ecl
-version=21.2.1
+version=23.9.9
 revision=1
 build_style=gnu-configure
 configure_args="--enable-gmp=system --enable-boehm=system
@@ -12,8 +12,9 @@ short_desc="Common-Lisp interpreter as described in the X3J13 Ansi specification
 maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
 license="LGPL-2.1-or-later"
 homepage="https://common-lisp.net/project/ecl/"
+changelog="https://gitlab.com/embeddable-common-lisp/ecl/-/raw/develop/CHANGELOG"
 distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
-checksum=b15a75dcf84b8f62e68720ccab1393f9611c078fcd3afdd639a1086cad010900
+checksum=c51bdab4ca6c1173dd3fe9cfe9727bcefb97bb0a3d6434b627ca6bdaeb33f880
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl

From 06c7b787fb00c05abd2300ad4b1c7df0f49a58a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:26:04 -0300
Subject: [PATCH 2/3] maxima: rebuild for ecl

---
 srcpkgs/maxima/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/maxima/template b/srcpkgs/maxima/template
index 04f732dbb0fec..4a9839b44f120 100644
--- a/srcpkgs/maxima/template
+++ b/srcpkgs/maxima/template
@@ -1,7 +1,7 @@
 # Template file for 'maxima'
 pkgname=maxima
 version=5.47.0
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="$(vopt_enable clisp) $(vopt_enable sbcl sbcl-exec) $(vopt_enable ecl)"
 hostmakedepends="python3 perl texinfo patchelf $(vopt_if ecl ecl)"

From 24cfac8980f00c71c0f4bb7c3fb09442ad9b57f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:26:04 -0300
Subject: [PATCH 3/3] sagemath: patch and rebuild for ecl-23.9.9

Also add a patch to support matplotlib 3.8.0
---
 .../sagemath/patches/36006-gmp_6.3.0.patch    |  2 +-
 .../sagemath/patches/36235-ecl_23.9.9.patch   | 39 +++++++++++++++++++
 .../patches/36279-matplotlib_3.8.0.patch      | 24 ++++++++++++
 srcpkgs/sagemath/patches/get_patches          | 10 ++++-
 srcpkgs/sagemath/template                     |  2 +-
 5 files changed, 74 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
 create mode 100644 srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch

diff --git a/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch b/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
index 91a77de342935..6a35ec3836550 100644
--- a/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
+++ b/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
@@ -24,7 +24,7 @@ index 1de6dedab82..b95130b19dd 100644
  AUTHORS:
  
 diff --git a/src/sage/rings/integer.pyx b/src/sage/rings/integer.pyx
-index 2cd080ddafa..090ab59cb28 100644
+index d5e87626d31..37ed9364845 100644
 --- a/src/sage/rings/integer.pyx
 +++ b/src/sage/rings/integer.pyx
 @@ -6654,7 +6654,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
diff --git a/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch b/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
new file mode 100644
index 0000000000000..684b62affaf5a
--- /dev/null
+++ b/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
@@ -0,0 +1,39 @@
+diff --git a/src/sage/libs/ecl.pyx b/src/sage/libs/ecl.pyx
+index 8f46570313d..a8e73e57b52 100644
+--- a/src/sage/libs/ecl.pyx
++++ b/src/sage/libs/ecl.pyx
+@@ -563,15 +563,15 @@ cdef class EclObject:
+     Floats in Python are IEEE double, which LISP has as well. However,
+     the printing of floating point types in LISP depends on settings::
+ 
+-        sage: a = EclObject(float(10^40))
++        sage: a = EclObject(float(1.234e40))
+         sage: ecl_eval("(setf *read-default-float-format* 'single-float)")
+         <ECL: SINGLE-FLOAT>
+         sage: a
+-        <ECL: 1.d40>
++        <ECL: 1.234d40>
+         sage: ecl_eval("(setf *read-default-float-format* 'double-float)")
+         <ECL: DOUBLE-FLOAT>
+         sage: a
+-        <ECL: 1.e40>
++        <ECL: 1.234e40>
+ 
+     Tuples are translated to dotted lists::
+ 
+diff --git a/src/sage/libs/eclsig.h b/src/sage/libs/eclsig.h
+index e249ccf6874..005b2d99d0b 100644
+--- a/src/sage/libs/eclsig.h
++++ b/src/sage/libs/eclsig.h
+@@ -45,7 +45,11 @@ static inline void ecl_sig_off(void)
+     sig_off();
+ }
+ 
++#if ECL_VERSION_NUMBER < 230909
+ #define ecl_mpz_from_bignum(obj) ((obj)->big.big_num)
++#else
++#define ecl_mpz_from_bignum(obj) ecl_bignum(obj)
++#endif
+ 
+ cl_object ecl_bignum_from_mpz(mpz_t num)
+ {
diff --git a/srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch b/srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch
new file mode 100644
index 0000000000000..e858f2fd4a445
--- /dev/null
+++ b/srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch
@@ -0,0 +1,24 @@
+diff --git a/src/sage/plot/graphics.py b/src/sage/plot/graphics.py
+index 59f10f6b13f..adcccff059b 100644
+--- a/src/sage/plot/graphics.py
++++ b/src/sage/plot/graphics.py
+@@ -36,6 +36,7 @@
+ # ****************************************************************************
+ 
+ import os
++from numbers import Integral
+ from collections.abc import Iterable
+ from math import isnan
+ import sage.misc.verbose
+@@ -2874,6 +2875,11 @@ def matplotlib(self, filename=None,
+                 weight=lopts.pop('font_weight', 'medium'),
+                 variant=lopts.pop('font_variant', 'normal'))
+             color = lopts.pop('back_color', 'white')
++            if 'loc' in lopts:
++                loc = lopts['loc']
++                if isinstance(loc, Integral):
++                    # matplotlib 3.8 doesn't support sage integers
++                    lopts['loc'] = int(loc)
+             leg = subplot.legend(prop=prop, **lopts)
+             if leg is None:
+                 from warnings import warn
diff --git a/srcpkgs/sagemath/patches/get_patches b/srcpkgs/sagemath/patches/get_patches
index c2c5aa1c7eccd..836d5bf7098fb 100755
--- a/srcpkgs/sagemath/patches/get_patches
+++ b/srcpkgs/sagemath/patches/get_patches
@@ -24,6 +24,14 @@ cd $(dirname "$0")
 #get_pr  36018   "singular 4.3.2p4" # included in #35934
 get_pr  36046   "fix memory leak"
 
-# positive review
+# merged in 10.2.beta1
 get_pr  35934   "singular 4.3.2p7"
+
+# merged in 10.2.beta2
 get_pr  36006   "gmp 6.3.0"
+
+# merged in 10.2.beta3
+get_pr  36235   "ecl 23.9.9"
+
+# positive review
+get_pr  36279   "matplotlib 3.8.0"
diff --git a/srcpkgs/sagemath/template b/srcpkgs/sagemath/template
index 019ad37cb3a70..e180eda47d342 100644
--- a/srcpkgs/sagemath/template
+++ b/srcpkgs/sagemath/template
@@ -1,7 +1,7 @@
 # Template file for 'sagemath'
 pkgname=sagemath
 version=10.1
-revision=2
+revision=3
 build_wrksrc=pkgs/sagemath-standard
 build_style=python3-module
 _bindir=/usr/lib/sagemath/$version/bin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] ecl: update to 23.9.9.
  2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
                   ` (3 preceding siblings ...)
  2023-09-19 19:27 ` [PR PATCH] [Updated] " tornaria
@ 2023-09-22  0:38 ` tornaria
  2023-09-22 22:06 ` [PR PATCH] [Merged]: " Duncaen
  5 siblings, 0 replies; 7+ messages in thread
From: tornaria @ 2023-09-22  0:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1323 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages ecl
https://github.com/void-linux/void-packages/pull/46003

ecl: update to 23.9.9.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**


Edit: I added a patch to sagemath, to support matplotlib 3.8.0 (see #46109).

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46003.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ecl-46003.patch --]
[-- Type: text/x-diff, Size: 9202 bytes --]

From ac86642c082a956c7d4c8894fb937fb8e7d35fac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:19:48 -0300
Subject: [PATCH 1/3] ecl: update to 23.9.9.

---
 common/shlibs                             |  2 +-
 srcpkgs/ecl/patches/fix-math_fenv_h.patch | 31 -----------------------
 srcpkgs/ecl/template                      |  9 ++++---
 3 files changed, 6 insertions(+), 36 deletions(-)
 delete mode 100644 srcpkgs/ecl/patches/fix-math_fenv_h.patch

diff --git a/common/shlibs b/common/shlibs
index 7d9715d79beb8..955a0cd83c454 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4049,7 +4049,7 @@ libcxsparse.so.4 SuiteSparse-6.0.1_1
 libspqr.so.3 SuiteSparse-6.0.1_1
 libsuitesparseconfig.so.7 SuiteSparse-7.0.1_1
 libumfpack.so.6 SuiteSparse-6.0.1_1
-libecl.so.21.2 ecl-21.2.1_1
+libecl.so.23.9 ecl-23.9.9_1
 libecm.so.1 ecm-7.0.4_3
 libcliquer.so.1 cliquer-1.22_1
 libomalloc-0.9.6.so singular-4.2.1_1
diff --git a/srcpkgs/ecl/patches/fix-math_fenv_h.patch b/srcpkgs/ecl/patches/fix-math_fenv_h.patch
deleted file mode 100644
index 9d10af8d573e6..0000000000000
--- a/srcpkgs/ecl/patches/fix-math_fenv_h.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Source: @pullmoll
-Upstream: https://gitlab.com/embeddable-common-lisp/ecl/-/issues/653#note_675299471
-Reason: Some architectures do not define all of the FE_.. constants
-Example: mips-musl needs this
-
-diff --git a/src/h/impl/math_fenv.h b/src/h/impl/math_fenv.h
-index ea13d87b4..2afbb9549 100644
---- a/src/h/impl/math_fenv.h
-+++ b/src/h/impl/math_fenv.h
-@@ -55,6 +55,21 @@
- #ifdef HAVE_FENV_H
- # define ECL_WITHOUT_FPE_BEGIN do { fenv_t env; feholdexcept(&env);
- # define ECL_WITHOUT_FPE_END        fesetenv(&env); } while (0)
-+# if !defined(FE_DIVBYZERO)
-+#  define FE_DIVBYZERO 0
-+# endif
-+# if !defined(FE_INVALID)
-+#  define FE_INVALID 0
-+# endif
-+# if !defined(FE_OVERFLOW)
-+#  define FE_OVERFLOW 0
-+# endif
-+# if !defined(FE_UNDERFLOW)
-+#  define FE_UNDERFLOW 0
-+# endif
-+# if !defined(FE_INEXACT)
-+#  define FE_INEXACT 0
-+# endif
- #else
- # define FE_INVALID 1
- # define FE_DIVBYZERO 2
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index dcfb6ff48a363..c657934737ea4 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -1,6 +1,6 @@
 # Template file for 'ecl'
 pkgname=ecl
-version=21.2.1
+version=23.9.9
 revision=1
 build_style=gnu-configure
 configure_args="--enable-gmp=system --enable-boehm=system
@@ -11,9 +11,10 @@ depends="$makedepends"
 short_desc="Common-Lisp interpreter as described in the X3J13 Ansi specification"
 maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
 license="LGPL-2.1-or-later"
-homepage="https://common-lisp.net/project/ecl/"
-distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
-checksum=b15a75dcf84b8f62e68720ccab1393f9611c078fcd3afdd639a1086cad010900
+homepage="https://ecl.common-lisp.dev/"
+changelog="https://gitlab.com/embeddable-common-lisp/ecl/-/raw/develop/CHANGELOG"
+distfiles="https://ecl.common-lisp.dev/static/files/release/ecl-${version}.tgz"
+checksum=c51bdab4ca6c1173dd3fe9cfe9727bcefb97bb0a3d6434b627ca6bdaeb33f880
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl

From 0451ef52fc82159e528ced7d77f9072a4604b2c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:26:04 -0300
Subject: [PATCH 2/3] maxima: rebuild for ecl

---
 srcpkgs/maxima/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/maxima/template b/srcpkgs/maxima/template
index 04f732dbb0fec..4a9839b44f120 100644
--- a/srcpkgs/maxima/template
+++ b/srcpkgs/maxima/template
@@ -1,7 +1,7 @@
 # Template file for 'maxima'
 pkgname=maxima
 version=5.47.0
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="$(vopt_enable clisp) $(vopt_enable sbcl sbcl-exec) $(vopt_enable ecl)"
 hostmakedepends="python3 perl texinfo patchelf $(vopt_if ecl ecl)"

From 47c3fa793c22700e494cecb0d1bb649b7c6cd174 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sat, 9 Sep 2023 21:26:04 -0300
Subject: [PATCH 3/3] sagemath: patch and rebuild for ecl-23.9.9

Also add a patch to support matplotlib 3.8.0
---
 .../sagemath/patches/36006-gmp_6.3.0.patch    |  2 +-
 .../sagemath/patches/36235-ecl_23.9.9.patch   | 39 +++++++++++++++++++
 .../patches/36279-matplotlib_3.8.0.patch      | 24 ++++++++++++
 srcpkgs/sagemath/patches/get_patches          | 10 ++++-
 srcpkgs/sagemath/template                     |  2 +-
 5 files changed, 74 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
 create mode 100644 srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch

diff --git a/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch b/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
index 91a77de342935..6a35ec3836550 100644
--- a/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
+++ b/srcpkgs/sagemath/patches/36006-gmp_6.3.0.patch
@@ -24,7 +24,7 @@ index 1de6dedab82..b95130b19dd 100644
  AUTHORS:
  
 diff --git a/src/sage/rings/integer.pyx b/src/sage/rings/integer.pyx
-index 2cd080ddafa..090ab59cb28 100644
+index d5e87626d31..37ed9364845 100644
 --- a/src/sage/rings/integer.pyx
 +++ b/src/sage/rings/integer.pyx
 @@ -6654,7 +6654,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
diff --git a/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch b/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
new file mode 100644
index 0000000000000..684b62affaf5a
--- /dev/null
+++ b/srcpkgs/sagemath/patches/36235-ecl_23.9.9.patch
@@ -0,0 +1,39 @@
+diff --git a/src/sage/libs/ecl.pyx b/src/sage/libs/ecl.pyx
+index 8f46570313d..a8e73e57b52 100644
+--- a/src/sage/libs/ecl.pyx
++++ b/src/sage/libs/ecl.pyx
+@@ -563,15 +563,15 @@ cdef class EclObject:
+     Floats in Python are IEEE double, which LISP has as well. However,
+     the printing of floating point types in LISP depends on settings::
+ 
+-        sage: a = EclObject(float(10^40))
++        sage: a = EclObject(float(1.234e40))
+         sage: ecl_eval("(setf *read-default-float-format* 'single-float)")
+         <ECL: SINGLE-FLOAT>
+         sage: a
+-        <ECL: 1.d40>
++        <ECL: 1.234d40>
+         sage: ecl_eval("(setf *read-default-float-format* 'double-float)")
+         <ECL: DOUBLE-FLOAT>
+         sage: a
+-        <ECL: 1.e40>
++        <ECL: 1.234e40>
+ 
+     Tuples are translated to dotted lists::
+ 
+diff --git a/src/sage/libs/eclsig.h b/src/sage/libs/eclsig.h
+index e249ccf6874..005b2d99d0b 100644
+--- a/src/sage/libs/eclsig.h
++++ b/src/sage/libs/eclsig.h
+@@ -45,7 +45,11 @@ static inline void ecl_sig_off(void)
+     sig_off();
+ }
+ 
++#if ECL_VERSION_NUMBER < 230909
+ #define ecl_mpz_from_bignum(obj) ((obj)->big.big_num)
++#else
++#define ecl_mpz_from_bignum(obj) ecl_bignum(obj)
++#endif
+ 
+ cl_object ecl_bignum_from_mpz(mpz_t num)
+ {
diff --git a/srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch b/srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch
new file mode 100644
index 0000000000000..e858f2fd4a445
--- /dev/null
+++ b/srcpkgs/sagemath/patches/36279-matplotlib_3.8.0.patch
@@ -0,0 +1,24 @@
+diff --git a/src/sage/plot/graphics.py b/src/sage/plot/graphics.py
+index 59f10f6b13f..adcccff059b 100644
+--- a/src/sage/plot/graphics.py
++++ b/src/sage/plot/graphics.py
+@@ -36,6 +36,7 @@
+ # ****************************************************************************
+ 
+ import os
++from numbers import Integral
+ from collections.abc import Iterable
+ from math import isnan
+ import sage.misc.verbose
+@@ -2874,6 +2875,11 @@ def matplotlib(self, filename=None,
+                 weight=lopts.pop('font_weight', 'medium'),
+                 variant=lopts.pop('font_variant', 'normal'))
+             color = lopts.pop('back_color', 'white')
++            if 'loc' in lopts:
++                loc = lopts['loc']
++                if isinstance(loc, Integral):
++                    # matplotlib 3.8 doesn't support sage integers
++                    lopts['loc'] = int(loc)
+             leg = subplot.legend(prop=prop, **lopts)
+             if leg is None:
+                 from warnings import warn
diff --git a/srcpkgs/sagemath/patches/get_patches b/srcpkgs/sagemath/patches/get_patches
index c2c5aa1c7eccd..836d5bf7098fb 100755
--- a/srcpkgs/sagemath/patches/get_patches
+++ b/srcpkgs/sagemath/patches/get_patches
@@ -24,6 +24,14 @@ cd $(dirname "$0")
 #get_pr  36018   "singular 4.3.2p4" # included in #35934
 get_pr  36046   "fix memory leak"
 
-# positive review
+# merged in 10.2.beta1
 get_pr  35934   "singular 4.3.2p7"
+
+# merged in 10.2.beta2
 get_pr  36006   "gmp 6.3.0"
+
+# merged in 10.2.beta3
+get_pr  36235   "ecl 23.9.9"
+
+# positive review
+get_pr  36279   "matplotlib 3.8.0"
diff --git a/srcpkgs/sagemath/template b/srcpkgs/sagemath/template
index 019ad37cb3a70..e180eda47d342 100644
--- a/srcpkgs/sagemath/template
+++ b/srcpkgs/sagemath/template
@@ -1,7 +1,7 @@
 # Template file for 'sagemath'
 pkgname=sagemath
 version=10.1
-revision=2
+revision=3
 build_wrksrc=pkgs/sagemath-standard
 build_style=python3-module
 _bindir=/usr/lib/sagemath/$version/bin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Merged]: ecl: update to 23.9.9.
  2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
                   ` (4 preceding siblings ...)
  2023-09-22  0:38 ` tornaria
@ 2023-09-22 22:06 ` Duncaen
  5 siblings, 0 replies; 7+ messages in thread
From: Duncaen @ 2023-09-22 22:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

There's a merged pull request on the void-packages repository

ecl: update to 23.9.9.
https://github.com/void-linux/void-packages/pull/46003

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**


Edit: I added a patch to sagemath, to support matplotlib 3.8.0 (see #46109).

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-22 22:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-10 15:09 [PR PATCH] ecl: update to 23.9.9 tornaria
2023-09-10 22:56 ` tornaria
2023-09-11  5:19 ` knusbaum
2023-09-11 16:07 ` tornaria
2023-09-19 19:27 ` [PR PATCH] [Updated] " tornaria
2023-09-22  0:38 ` tornaria
2023-09-22 22:06 ` [PR PATCH] [Merged]: " Duncaen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).