[josm-plugins] 10/369: Add patch for validator plugin to compile with gcj.

Bas Couwenberg sebastic at xs4all.nl
Sat Oct 18 12:03:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository josm-plugins.

commit 89d840ffe359c3af09af655d17371a546e3b61d9
Author: Andreas Putzo <andreas at putzo.net>
Date:   Thu Mar 27 18:31:07 2008 +0000

    Add patch for validator plugin to compile with gcj.
---
 debian/patches/00list              |  1 +
 debian/patches/21_validator.dpatch | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/00list b/debian/patches/00list
index 60883a4..8563860 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -1,5 +1,6 @@
 10_build
 20_validator
+21_validator
 30_utilsplugin
 40_wmsplugin
 50_livegps
diff --git a/debian/patches/21_validator.dpatch b/debian/patches/21_validator.dpatch
new file mode 100755
index 0000000..5083da6
--- /dev/null
+++ b/debian/patches/21_validator.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 21_validator.dpatch by Andreas Putzo <andreas at putzo.net>
+##
+## DP: Add cast operator for OsmPrimitive.
+## DP: This is necessary to compile with gcj.
+
+ at DPATCH@
+diff -urNad josm-plugins-0.0.0.20080326~/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java josm-plugins-0.0.0.20080326/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java
+--- josm-plugins-0.0.0.20080326~/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java	2008-01-14 11:16:12.000000000 +0000
++++ josm-plugins-0.0.0.20080326/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java	2008-03-27 18:26:55.000000000 +0000
+@@ -504,7 +504,7 @@
+ 				String key = prop.getKey();
+ 				String value = prop.getValue();
+ 				if( value == null || value.trim().length() == 0 )
+-					commands.add( new ChangePropertyCommand(Collections.singleton(primitives.get(i)), key, null) );
++					commands.add( new ChangePropertyCommand(Collections.singleton((OsmPrimitive)primitives.get(i)), key, null) );
+ 				else
+ 				{
+ 					String replacementKey = spellCheckKeyData.get(key);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/josm-plugins.git



More information about the Pkg-grass-devel mailing list