[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72508] [PATCH v2 1/5] gnu: erlang-jsx: Fix tests under Erlang 27+.
From: |
Igor Goryachev |
Subject: |
[bug#72508] [PATCH v2 1/5] gnu: erlang-jsx: Fix tests under Erlang 27+. |
Date: |
Wed, 7 Aug 2024 19:32:09 +0300 |
* gnu/packages/erlang.scm (erlang-jsx): Fix tests under Erlang 27+.
Change-Id: Iaade94de64b5e5837a6a54376ba946c20d7107b9
---
gnu/packages/erlang.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
index b6a31f26e9..60d644ab8d 100644
--- a/gnu/packages/erlang.scm
+++ b/gnu/packages/erlang.scm
@@ -541,6 +541,16 @@ (define-public erlang-jsx
(base32
"1wr7jkxm6nlgvd52xhniav64xr9rml2ngb35rwjwqlqvq7ywhp0c"))))
(build-system rebar-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; Fix tests for running under Erlang 27+.
+ (add-after 'unpack 'fix-tests-for-erlang-27
+ (lambda _
+ (substitute* "src/jsx_decoder.erl"
+ (("\\{\"-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\">>},")))))))
(synopsis "Streaming, evented JSON parsing toolkit")
(description
"An Erlang application for consuming, producing and manipulating json.")
base-commit: 5e567587dd4abf51f9a6fa44f5a852dde1115ce9
--
2.45.2
- [bug#72508] [PATCH 0/5] Erlang update to 27.0.1., Igor Goryachev, 2024/08/07
- [bug#72508] [PATCH 2/5] gnu: erlang-yamerl: Update to 0.10.0.a24f448., Igor Goryachev, 2024/08/07
- [bug#72508] [PATCH 5/5] gnu: erlang: Update to 27.0.1., Igor Goryachev, 2024/08/07
- [bug#72508] [PATCH 4/5] gnu: ejabberd: Include jiffy dependence under Erlang 27., Igor Goryachev, 2024/08/07
- [bug#72508] [PATCH 1/5] gnu: erlang-jsx: Fix tests under Erlang 27+., Igor Goryachev, 2024/08/07
- [bug#72508] [PATCH 3/5] gnu: erlang-jose: Relax build options., Igor Goryachev, 2024/08/07
- [bug#72508] [PATCH v2 1/5] gnu: erlang-jsx: Fix tests under Erlang 27+.,
Igor Goryachev <=
- [bug#72508] [PATCH 0/5] Erlang update to 27.0.1., Andrew Tropin, 2024/08/08