[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: gnu: java-simple-xml: Fix java8 test failures.
From: |
Ludovic Courtès |
Subject: |
01/09: gnu: java-simple-xml: Fix java8 test failures. |
Date: |
Sat, 17 Mar 2018 19:02:37 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3c274149688472cca4f506483b82d0b7865481b3
Author: Gábor Boskovits <address@hidden>
Date: Tue Mar 13 22:55:10 2018 +0100
gnu: java-simple-xml: Fix java8 test failures.
* gnu/packages/patches/javas-simple-xml-fix-tests.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/java.scm (java-simple-xml)[source](patches): Add it.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/local.mk | 1 +
.../patches/java-simple-xml-fix-tests.patch | 37 ++++++++++++++++++++++
gnu/packages/xml.scm | 3 +-
3 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 788b260..f27565b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -789,6 +789,7 @@ dist_patch_DATA =
\
%D%/packages/patches/jacal-fix-texinfo.patch \
%D%/packages/patches/java-jeromq-fix-tests.patch \
%D%/packages/patches/java-powermock-fix-java-files.patch \
+ %D%/packages/patches/java-simple-xml-fix-tests.patch \
%D%/packages/patches/java-xerces-bootclasspath.patch \
%D%/packages/patches/java-xerces-build_dont_unzip.patch \
%D%/packages/patches/java-xerces-xjavac_taskdef.patch \
diff --git a/gnu/packages/patches/java-simple-xml-fix-tests.patch
b/gnu/packages/patches/java-simple-xml-fix-tests.patch
new file mode 100644
index 0000000..6270b87
--- /dev/null
+++ b/gnu/packages/patches/java-simple-xml-fix-tests.patch
@@ -0,0 +1,37 @@
+From b3b7a305f1278ec414500bf96c4c7a7f634c941b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jens=20Thee=C3=9F?= <address@hidden>
+Date: Thu, 15 Sep 2016 13:08:26 +0200
+Subject: [PATCH] Dictionary uses stable order. This fixes unit tests.
+
+This is upstream pull request #15:
+https://github.com/ngallagher/simplexml/pull/15
+This software is unmaintained, this pull request will no get merged.
+The patch is modified, to match the directory layout of the tarball.
+
+---
+ src/main/java/org/simpleframework/xml/util/Dictionary.java | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/main/java/org/simpleframework/xml/util/Dictionary.java
b/src/main/java/org/simpleframework/xml/util/Dictionary.java
+index 077d2514..c7327426 100644
+--- a/src/org/simpleframework/xml/util/Dictionary.java
++++ b/src/org/simpleframework/xml/util/Dictionary.java
+@@ -19,8 +19,8 @@
+ package org.simpleframework.xml.util;
+
+ import java.util.AbstractSet;
+-import java.util.HashMap;
+ import java.util.Iterator;
++import java.util.LinkedHashMap;
+
+ /**
+ * The <code>Dictionary</code> object represents a mapped set of entry
+@@ -134,7 +134,7 @@ public T remove(String name) {
+ *
+ * @see org.simpleframework.xml.util.Entry
+ */
+- private static class Table<T> extends HashMap<String, T> {
++ private static class Table<T> extends LinkedHashMap<String, T> {
+
+ /**
+ * Constructor for the <code>Table</code> object. This will
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 6c1d2a7..212b1c8 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1309,7 +1309,8 @@ SAX2 APIs.")
version ".zip"))
(sha256
(base32
- "0w19k1awslmihpwsxwjbg89hv0vjhk4k3i0vrfchy3mqknd988y5"))))
+ "0w19k1awslmihpwsxwjbg89hv0vjhk4k3i0vrfchy3mqknd988y5"))
+ (patches (search-patches "java-simple-xml-fix-tests.patch"))))
(build-system ant-build-system)
(arguments
`(#:build-target "build"
- branch master updated (5983b78 -> 95bd9f6), Ludovic Courtès, 2018/03/17
- 02/09: services: openssh: Add 'accepted-environment' field., Ludovic Courtès, 2018/03/17
- 03/09: import: elpa: use https in download URLs, Ludovic Courtès, 2018/03/17
- 04/09: import: elpa: Fix typos in documentation strings, Ludovic Courtès, 2018/03/17
- 06/09: gnu: datamash: Update to 1.3., Ludovic Courtès, 2018/03/17
- 07/09: gnu: nss-mdns: Adjust Avahi socket file name., Ludovic Courtès, 2018/03/17
- 05/09: gnu: fvwm: Add '.desktop' file., Ludovic Courtès, 2018/03/17
- 08/09: gnu: guile-git: Update to 2bb9fbb., Ludovic Courtès, 2018/03/17
- 01/09: gnu: java-simple-xml: Fix java8 test failures.,
Ludovic Courtès <=
- 09/09: git: 'switch-to-ref' accepts short commit IDs., Ludovic Courtès, 2018/03/17