public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/erlang-jsx] rawhide: Fix TBFS with Erlang 27
@ 2026-08-07 11:11 Peter Lemenkov
0 siblings, 0 replies; only message in thread
From: Peter Lemenkov @ 2026-08-07 11:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/erlang-jsx
Branch : rawhide
Commit : 3115676bf01be66b57f0a7d60d98934ea63d710c
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2026-08-07T13:11:10+02:00
Stats : +23/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/erlang-jsx/c/3115676bf01be66b57f0a7d60d98934ea63d710c?branch=rawhide
Log:
Fix TBFS with Erlang 27
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/erlang-jsx-0001-Adapt-to-OTP-24.patch b/erlang-jsx-0001-Adapt-to-OTP-24.patch
index 4e49117..3305bcc 100644
--- a/erlang-jsx-0001-Adapt-to-OTP-24.patch
+++ b/erlang-jsx-0001-Adapt-to-OTP-24.patch
@@ -1,3 +1,4 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Paulo F. Oliveira" <paulo.ferraz.oliveira@gmail.com>
Date: Fri, 14 May 2021 10:42:35 +0100
Subject: [PATCH] Adapt to OTP 24
diff --git a/erlang-jsx-0002-Fix-tests-under-Erlang-27.patch b/erlang-jsx-0002-Fix-tests-under-Erlang-27.patch
new file mode 100644
index 0000000..60eea14
--- /dev/null
+++ b/erlang-jsx-0002-Fix-tests-under-Erlang-27.patch
@@ -0,0 +1,20 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Igor Goryachev <igor@goryachev.org>
+Date: Wed, 26 Jun 2024 18:34:51 +0300
+Subject: [PATCH] Fix tests under Erlang 27+
+
+
+diff --git a/src/jsx_decoder.erl b/src/jsx_decoder.erl
+index a706c89..6f04830 100644
+--- a/src/jsx_decoder.erl
++++ b/src/jsx_decoder.erl
+@@ -1102,7 +1102,8 @@ special_number_test_() ->
+ Cases = [
+ % {title, test form, json, opt flags}
+ {"-0", [{integer, 0}, end_json], <<"-0">>},
+- {"-0.0", [{float, 0.0}, end_json], <<"-0.0">>},
++ {"0.0", [{float, 0.0}, end_json], <<"0.0">>},
++ {"-0.0", [{float, -0.0}, end_json], <<"-0.0">>},
+ {"0e0", [{float, 0.0}, end_json], <<"0e0">>},
+ {"0e4", [{float, 0.0}, end_json], <<"0e4">>},
+ {"1e0", [{float, 1.0}, end_json], <<"1e0">>},
diff --git a/erlang-jsx.spec b/erlang-jsx.spec
index 34a32b8..d8e2f1f 100644
--- a/erlang-jsx.spec
+++ b/erlang-jsx.spec
@@ -8,8 +8,9 @@ Summary: A streaming, evented json parsing toolkit
License: MIT
URL: https://github.com/talentdeficit/%{realname}
VCS: git:%{url}.git
-Source0: %{url}/archive/v%{version}/%{realname}-%{version}.tar.gz
+Source: %{url}/archive/v%{version}/%{realname}-%{version}.tar.gz
Patch: erlang-jsx-0001-Adapt-to-OTP-24.patch
+Patch: erlang-jsx-0002-Fix-tests-under-Erlang-27.patch
BuildSystem: rebar3
%description
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 11:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 11:11 [rpms/erlang-jsx] rawhide: Fix TBFS with Erlang 27 Peter Lemenkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox