Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] ecl: update to 23.9.9.
Date: Tue, 19 Sep 2023 21:27:59 +0200	[thread overview]
Message-ID: <20230919192759.91KJv6bQyk4gIUQ4RijafrP7f_PZNdwKKFOVM4pkwpM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46003@inbox.vuxu.org>

[-- 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

  parent reply	other threads:[~2023-09-19 19:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-10 15:09 [PR PATCH] " tornaria
2023-09-10 22:56 ` tornaria
2023-09-11  5:19 ` knusbaum
2023-09-11 16:07 ` tornaria
2023-09-19 19:27 ` tornaria [this message]
2023-09-22  0:38 ` [PR PATCH] [Updated] " tornaria
2023-09-22 22:06 ` [PR PATCH] [Merged]: " Duncaen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230919192759.91KJv6bQyk4gIUQ4RijafrP7f_PZNdwKKFOVM4pkwpM@z \
    --to=tornaria@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).