public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/erlang-jsx] rawhide: Fix TBFS with Erlang 27
Date: Fri, 07 Aug 2026 11:11:20 GMT	[thread overview]
Message-ID: <178610108096.1.12250844851457243151.rpms-erlang-jsx-3115676bf01b@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-08-07 11:11 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=178610108096.1.12250844851457243151.rpms-erlang-jsx-3115676bf01b@fedoraproject.org \
    --to=lemenkov@gmail.com \
    --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