public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/e-antic] rawhide: Version 2.1.1
@ 2026-06-15 17:38 Jerry James
0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-06-15 17:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/e-antic
Branch : rawhide
Commit : 6d650eb9892c6006efaf83432097b9ef83e1fc77
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-06-15T11:38:01-06:00
Stats : +4/-127 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/e-antic/c/6d650eb9892c6006efaf83432097b9ef83e1fc77?branch=rawhide
Log:
Version 2.1.1
- Drop upstreamed Sturm sign change count patch
---
diff --git a/302.patch b/302.patch
deleted file mode 100644
index eca3167..0000000
--- a/302.patch
+++ /dev/null
@@ -1,123 +0,0 @@
-From 4b2cabdfb83b64ad9440400d1128ae440ff0aa69 Mon Sep 17 00:00:00 2001
-From: Doug Torrance <dtorrance@piedmont.edu>
-Date: Wed, 6 May 2026 22:35:38 -0400
-Subject: [PATCH 1/3] Don't increment Sturm sign change count twice at each 0
-
-Previously, if 0 appeared in the values of the elements of Sturm
-sequence at an endpoint, we counted two sign changes instead of one,
-e.g., {1, 0, -1, 0, 1, -1, 0} -> 5 changes instead of 3.
----
- .../num_real_roots_0_1_sturm.c | 24 +++++++++----------
- 1 file changed, 12 insertions(+), 12 deletions(-)
-
-diff --git a/libeantic/src/fmpz_poly_extra/num_real_roots_0_1_sturm.c b/libeantic/src/fmpz_poly_extra/num_real_roots_0_1_sturm.c
-index 5645eaf6..eeb887fc 100644
---- a/libeantic/src/fmpz_poly_extra/num_real_roots_0_1_sturm.c
-+++ b/libeantic/src/fmpz_poly_extra/num_real_roots_0_1_sturm.c
-@@ -40,30 +40,30 @@ slong fmpz_poly_num_real_roots_0_1_sturm(fmpz_poly_t pol)
- fmpz_poly_evaluate_at_one(c, pol->coeffs, pol->length);
- s0b = fmpz_sgn(c);
-
-- t = 0;
-+ /* Sturm's theorem counts roots in (0, 1], so count if there's one at 0 */
-+ if (s0a == 0)
-+ t = 1;
-+ else
-+ t = 0;
-+
- while (!fmpz_poly_is_zero(p1))
- {
- /* sign change at 0 */
- s = fmpz_sgn(p1->coeffs);
-- if (s0a == 0)
-+ if (s != 0)
- {
-- t++;
-- s0a = s;
-- }
-- else if (s != s0a)
-- {
-- t++;
-+ if (s0a != 0 && s != s0a)
-+ t++;
- s0a = s;
- }
-
- /* sign change at 1 */
- fmpz_poly_evaluate_at_one(c, p1->coeffs, p1->length);
- s = fmpz_sgn(c);
-- if (s0b == 0)
-- s0b = s;
-- else if (s != s0b)
-+ if (s != 0)
- {
-- t--;
-+ if (s0b != 0 && s != s0b)
-+ t--;
- s0b = s;
- }
-
-
-From 2146b1b2928e4eb76a4afde9afa6f0c342952b16 Mon Sep 17 00:00:00 2001
-From: Doug Torrance <dtorrance@piedmont.edu>
-Date: Wed, 6 May 2026 23:45:48 -0400
-Subject: [PATCH 2/3] Add one more fmpz_poly_num_real_roots_0_1 test
-
-In addition to the 10 random polynomials, we test one specific one
-where the previous algorithm miscounted the number of sign changes.
----
- .../test/fmpz_poly_extra/t-num_real_roots_0_1.c | 14 +++++++++++---
- 1 file changed, 11 insertions(+), 3 deletions(-)
-
-diff --git a/libeantic/test/fmpz_poly_extra/t-num_real_roots_0_1.c b/libeantic/test/fmpz_poly_extra/t-num_real_roots_0_1.c
-index 5d8d93da..959bc3fb 100644
---- a/libeantic/test/fmpz_poly_extra/t-num_real_roots_0_1.c
-+++ b/libeantic/test/fmpz_poly_extra/t-num_real_roots_0_1.c
-@@ -22,15 +22,23 @@ int main(void)
-
- printf("fmpz_poly_num_real_roots_0_1....");
-
-- for (iter = 0; iter < 10; iter++)
-+ for (iter = 0; iter < 11; iter++)
- {
- fmpz_poly_t p;
- slong k1, k2;
-
- fmpz_poly_init(p);
-- do{
-+
-+ if (iter < 10) {
-+ do{
- fmpz_poly_randtest(p, state, 10, 10);
-- }while (fmpz_poly_is_zero(p) || !fmpz_poly_is_squarefree(p));
-+ } while (fmpz_poly_is_zero(p) || !fmpz_poly_is_squarefree(p));
-+ } else {
-+ // issue #301
-+ fmpz_poly_set_coeff_si(p, 0, 52);
-+ fmpz_poly_set_coeff_si(p, 3, -304);
-+ fmpz_poly_set_coeff_si(p, 8, -23);
-+ }
-
- k1 = fmpz_poly_num_real_roots_0_1_vca(p);
- k2 = fmpz_poly_num_real_roots_0_1_sturm(p);
-
-From c60de586bb2374bfbc9a0f058c017468eb873b7e Mon Sep 17 00:00:00 2001
-From: Doug Torrance <dtorrance@piedmont.edu>
-Date: Wed, 6 May 2026 23:47:31 -0400
-Subject: [PATCH 3/3] Document fmpz_poly_num_real_roots_0_1 fix
-
----
- doc/news/sturm-count.rst | 4 ++++
- 1 file changed, 4 insertions(+)
- create mode 100644 doc/news/sturm-count.rst
-
-diff --git a/doc/news/sturm-count.rst b/doc/news/sturm-count.rst
-new file mode 100644
-index 00000000..667331b4
---- /dev/null
-+++ b/doc/news/sturm-count.rst
-@@ -0,0 +1,4 @@
-+**Fixed:**
-+
-+* Fixed an issue in fmpz_poly_num_real_roots_0_1_sturm where sometimes
-+ the number of sign changes in the Sturm sequence was miscounted.
diff --git a/e-antic.spec b/e-antic.spec
index 2ed1ee4..75bc2e8 100644
--- a/e-antic.spec
+++ b/e-antic.spec
@@ -1,7 +1,7 @@
%global giturl https://github.com/flatsurf/e-antic
Name: e-antic
-Version: 2.1.0
+Version: 2.1.1
Release: %autorelease
Summary: Real Embedded Algebraic Number Theory In C
@@ -13,12 +13,12 @@ Source: %{giturl}/archive/%{version}/%{name}-%{version}.tar.gz
# been incorporated into the Fedora versions. Make e-antic skip attempts to
# build the patched files.
Patch: %{name}-unpatch.patch
-# Fix the Sturm sign change count
-Patch: %{giturl}/pull/302.patch
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: catch2-devel
BuildRequires: cereal-devel
diff --git a/sources b/sources
index 41afcb3..461d6b9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (e-antic-2.1.0.tar.gz) = b7bdddc379d2aa8685b391065d8cce53726dc97584f720151b9d230a63309a6a599276f20e5a95944f2decdf444cd10bed2df7c89c9455d153d636de706e16c0
+SHA512 (e-antic-2.1.1.tar.gz) = 9b209ed17055fd231998c1631c25f9c0e9b1e92a2480458abdcf976bea43906b0ce6e17835c1850acb2c02c085210c7bb3a7c5f2104e84da7d00ec6834f982b7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 17:38 [rpms/e-antic] rawhide: Version 2.1.1 Jerry James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox