public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/earcut-hpp] f45: Update to 3.2.4 (close RHBZ#2542400)
Date: Mon, 28 Sep 2026 13:06:30 GMT [thread overview]
Message-ID: <179060079080.1.4352253542749865724.rpms-earcut-hpp-b6a478f701f9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/earcut-hpp
Branch : f45
Commit : b6a478f701f96f4ce4e86826ec7d4614ddb11de4
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-28T14:02:56+01:00
Stats : +2/-37 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/earcut-hpp/c/b6a478f701f96f4ce4e86826ec7d4614ddb11de4?branch=f45
Log:
Update to 3.2.4 (close RHBZ#2542400)
---
diff --git a/c0c5ecb6bd1f43ad1f5b005e846221e524d9214d.patch b/c0c5ecb6bd1f43ad1f5b005e846221e524d9214d.patch
deleted file mode 100644
index 2b39749..0000000
--- a/c0c5ecb6bd1f43ad1f5b005e846221e524d9214d.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From c0c5ecb6bd1f43ad1f5b005e846221e524d9214d Mon Sep 17 00:00:00 2001
-From: Neil Chatterjee <55393285+skeptopic@users.noreply.github.com>
-Date: Tue, 7 Jul 2026 10:07:38 +0200
-Subject: [PATCH] Guard against degenerate edges (#134)
-
-JS Array#Sort doesn't bomb on NaN, but std::sort does
----
- include/mapbox/earcut.hpp | 9 ++++++---
- 1 file changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/include/mapbox/earcut.hpp b/include/mapbox/earcut.hpp
-index 2bd03b4..b4450db 100644
---- a/include/mapbox/earcut.hpp
-+++ b/include/mapbox/earcut.hpp
-@@ -561,9 +561,12 @@ typename Earcut<N>::Node* Earcut<N>::eliminateHoles(const Polygon& points, Node*
- std::sort(holeQueue.begin(), holeQueue.end(), [](const Node* a, const Node* b) {
- if (a->x != b->x) return a->x < b->x;
- if (a->y != b->y) return a->y < b->y;
-- const double aSlope = (a->next->y - a->y) / (a->next->x - a->x);
-- const double bSlope = (b->next->y - b->y) / (b->next->x - b->x);
-- return aSlope < bSlope;
-+ const double adx = a->next->x - a->x, ady = a->next->y - a->y;
-+ const double bdx = b->next->x - b->x, bdy = b->next->y - b->y;
-+ const bool aDegenerate = adx == 0 && ady == 0;
-+ const bool bDegenerate = bdx == 0 && bdy == 0;
-+ if (aDegenerate != bDegenerate) return aDegenerate;
-+ return ady * bdx < bdy * adx;
- });
-
- // block-bbox index for findHoleBridge, grown append-only as holes merge. Seed it with the
diff --git a/earcut-hpp.spec b/earcut-hpp.spec
index 9e3351c..fbebcf9 100644
--- a/earcut-hpp.spec
+++ b/earcut-hpp.spec
@@ -2,7 +2,7 @@
Name: earcut-hpp
Summary: Fast, header-only polygon triangulation
-Version: 3.2.3
+Version: 3.2.4
Release: %autorelease
# SPDX
@@ -18,10 +18,6 @@ Source1: https://github.com/mapbox/earcut/archive/v%{version}/earcut-%{ve
# Include `type_traits` header for `std::decay`
# https://github.com/mapbox/earcut.hpp/pull/136
Patch: %{url}/pull/136.patch
-# Guard against degenerate edges
-# https://github.com/mapbox/earcut.hpp/commit/c0c5ecb6bd1f43ad1f5b005e846221e524d9214d
-# See discussion in https://github.com/skogler/mapbox_earcut_python/pull/32.
-Patch: %{url}/commit/c0c5ecb6bd1f43ad1f5b005e846221e524d9214d.patch
BuildSystem: cmake
# We do want to build the tests, but we have no use for the benchmarks or the
diff --git a/sources b/sources
index 5e5848e..34b06dc 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (earcut.hpp-3.2.3.tar.gz) = 15f5ea72bddf63549bc7a178009ccc949bf078f45f527bd9d41d4e40b5972e09f5c61dd25375bf12dd7a623f9ad0df556733aa1492153c214715ad4319cb21ed
-SHA512 (earcut-3.2.3.tar.gz) = 7d870c63a595600b6b2fcaafcc5a52c580b1018730fa146db4e4996d7db72bd391844c7f47db9c40f9175464fd5409ac30ec8e6bc6526815c00aba5f62dfb310
+SHA512 (earcut-3.2.4.tar.gz) = 3af3654814847bffdc56842ba8602c553069aafc7386600b9587e3ca25ca1f42269cb0624a98062df7110b7d9552e4a8bebe7747cfee10cfffe876a09a8aa1a9
reply other threads:[~2026-09-28 13:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179060079080.1.4352253542749865724.rpms-earcut-hpp-b6a478f701f9@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.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