aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/antlr3-3_3-fix-java8-compilation.patch
blob: a7d6be9b6b6261c7734fc54942579919ebfc7f3b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Based on the upstream fix for the java8 compilation issue.
Simplified patch.
Upstream version of patch does not work with this source tree.

The issue is that in java8 it is an error to pass null to
removeAll. Results in null pointer exception. java7
behaviour was to return the list unmodified.

From 43867d50c05d1c06ab7220eb974a8874ae10c308 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Boskovits?= <boskovits@gmail.com>
Date: Fri, 5 Jan 2018 19:08:24 +0100
Subject: [PATCH] Fix java8 complilation error.

---
 tool/src/main/java/org/antlr/tool/CompositeGrammar.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tool/src/main/java/org/antlr/tool/CompositeGrammar.java b/tool/src/main/java/org/antlr/tool/CompositeGrammar.java
index f34ea73..63740a6 100644
--- a/tool/src/main/java/org/antlr/tool/CompositeGrammar.java
+++ b/tool/src/main/java/org/antlr/tool/CompositeGrammar.java
@@ -226,7 +226,9 @@ public class CompositeGrammar {
 	public List<Grammar> getIndirectDelegates(Grammar g) {
 		List<Grammar> direct = getDirectDelegates(g);
 		List<Grammar> delegates = getDelegates(g);
-		delegates.removeAll(direct);
+		if(direct != null) {
+		        delegates.removeAll(direct);
+		}
 		return delegates;
 	}
 
-- 
2.15.1

elying on an exception instead of relying on its return value is a false positive. * gnu/tests/base.scm (run-nss-mdns-test): Split tests so to check the return value of 'start-service'. (run-mcron-test, run-nss-mdns-test): Use 'test-assert' with the return value of 'start-service'. * gnu/tests/admin.scm (run-tailon-test): Idem. * gnu/tests/dict.scm (run-dicod-test): Idem. * gnu/tests/mail.scm (run-opensmtpd-test, run-exim-test, run-dovecot-test): Idem. * gnu/tests/messaging.scm (run-xmpp-test, run-bitlbee-test): Idem. * gnu/tests/nfs.scm (run-nfs-test): Idem. * gnu/tests/rsync.scm (run-rsync-test): Idem. * gnu/tests/ssh.scm (run-ssh-test): Idem. * gnu/tests/version-control.scm (run-cgit-test, run-git-http-test): Idem. * gnu/tests/web.scm (run-php-fpm-test): Idem. 2018-06-01tests: ssh: Use 'with-extensions'.Ludovic Courtès * gnu/tests/ssh.scm (run-ssh-test)[test]: Wrap body in 'with-extensions'. Remove %load-path manipulation code. an>Kyle Meyer 2020-12-12gnu: Add ebook-tools....* gnu/packages/ebook.scm (ebook-tools): New variable. Signed-off-by: Leo Famulari <leo@famulari.name> Zheng Junjie 2020-11-28gnu: calibre: Fix QTWEBENGINEPROCESS_PATH wrapping....Even thought this is named PATH, it's not a search path, instead the value is assumed to be the location of the executable. * gnu/packages/ebook.scm (calibre)[arguments]: Fix QTWEBENGINEPROCESS_PATH wrapping. Signed-off-by: Christopher Baines <mail@cbaines.net> Sergey Trofimov 2020-11-26gnu: cozy: Update to 0.7.6....* gnu/packages/ebook.scm (cozy): Update to 0.7.6. [arguments]: Adjust 'patch-desktop-file phase. [inputs]: Add libhandy. Remove python-apsw. Tobias Geerinckx-Rice 2020-10-01gnu: cozy: Update to 0.7.2....* gnu/packages/ebook.scm (cozy): Update to 0.7.2. [inputs]: Add python-packaging. Tobias Geerinckx-Rice 2020-09-26gnu: cozy: Update to 0.7.1....* gnu/packages/ebook.scm (cozy): Update to 0.7.1. [arguments]: Substitute only the Exec line in the desktop file. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Vinicius Monego 2020-09-18gnu: calibre: Clean up 'wrap phase....Based on the suggestion of the author, this commit cleans up the changes introduced by fd3eac4dd774597d493e6d8aae7b1c2653070bc7 For more information, see: https://issues.guix.gnu.org/43249 * gnu/packages/e-book.scm (calibre): [arguments]: Remove the manual 'wrap phase replacement and add a 'wrap-program phase after standard 'wrap phase to make the runtime dependency QtWebEngineProcess available to the binaries. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Prafulla Giri 2020-09-18gnu: Add cozy....* gnu/packages/ebook.scm (cozy): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Vinicius Monego 2020-09-08gnu: calibre: Wrap QTWEBENGINEPROCESS_PATH....* gnu/packages/ebook.scm (calibre): Wrap QTWEBENGINEPROCESS_PATH in addition to wrapping PYTHONPATH as python-build-system does. Signed-off-by: Andreas Enge <andreas@enge.fr> Brendan Tildesley 2020-08-23gnu: ebook.scm: Remove duplicate module import....Signed-off-by: Leo Famulari <leo@famulari.name> Brendan Tildesley 2020-06-08gnu: calibre: Update to 4.18.0....* gnu/packages/patches/calibre-remove-test-bs4.patch, gnu/packages/patches/calibre-msgpack-compat.patch: Delete files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/ebook.scm (calibre): Update to 4.18.0. [source](patches): Remove obsolete patches. [source](snippet): Disable test for bundled odfpy. [inputs]: Add HUNSPELL, HYPHEN, PYTHON2-BEAUTIFULSOUP4, PYTHON2-PYQTWEBENGINE, and QTWEBENGINE. [arguments]: Add phase 'patch-more-shebangs'. Adjust configure phase to set HOME and make fonts available. Simplify one substitution, and provide the absolute file name of 'sip'. Marius Bakke