Fix build for Erlang 27+ #1
26
0001-Fix-tests-under-Erlang-27.patch
Normal file
26
0001-Fix-tests-under-Erlang-27.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From 175fe083dac92df581c21c6efa9a254778638904 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+
|
||||
|
||||
---
|
||||
src/jsx_decoder.erl | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/jsx_decoder.erl b/src/jsx_decoder.erl
|
||||
index 05c5732..1eeee37 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">>},
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 26 12:36:53 UTC 2025 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||
|
||||
- Add 0001-Fix-tests-under-Erlang-27.patch:
|
||||
fix build for Erlang 27+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 12 09:46:50 UTC 2022 - matwey.kornilov@gmail.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package erlang-jsx
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,13 +26,14 @@ Group: Development/Libraries/Other
|
||||
URL: https://github.com/talentdeficit/jsx
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source0: jsx-%{version}.tar.xz
|
||||
Patch0: 0001-Fix-tests-under-Erlang-27.patch
|
||||
BuildRequires: erlang-rebar
|
||||
|
||||
%description
|
||||
Jsx is an erlang application for consuming, producing and manipulating json.
|
||||
|
||||
%prep
|
||||
%setup -q -n jsx-%{version}
|
||||
%autosetup -p1 -n jsx-%{version}
|
||||
|
||||
%build
|
||||
%__rebar compile
|
||||
|
||||
Reference in New Issue
Block a user