Your message dated Fri, 15 May 2020 09:49:00 +0000
with message-id <[email protected]>
and subject line Bug#960654: fixed in biojava4-live 4.2.12+dfsg-3
has caused the Debian Bug report #960654,
regarding src:biojava4-live: Please add support to build against 
libjson-simple-java >= 3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
960654: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960654
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:biojava4-live
Version: 4.2.12+dfsg-2
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I'd like to transition json-simple 3.1.1 to unstable, but biojava4-live is a 
blocker since it builds against libjson-simple-java << 3 only.

The json-simple classes used by biojava4-live were deprecated in version 2.0.0 
[1]. There were removed in versions 3.x [2].

[1] https://github.com/cliftonlabs/json-simple/blob/json-simple-2.0.0/README.txt
[2] https://github.com/cliftonlabs/json-simple/blob/json-simple-3.0.1/CHANGELOG

Please find attached a patch proposal to use the current json-simple classes. 
I've tested that the package builds correctly against libjson-simple-java 
version 2.3.0-1 from unstable and version 3.1.1-1~exp2 currently in 
experimental, and the build time test cases report no errors.

Thanks in advance for considering.

_g.

- -- System Information:
Debian Release: buster/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAl6+R5UACgkQ7+hsbH/+
z4OOnQgApJ5lITTg7Gdl45fmVHMuVZ7EO8F30UQ8b11IjqC9Jvy5Smxe6QpBr1XO
eeSY1QI8GVFd5OHk31AijdMC/JZTkSwjHAV+R5YODf96D5nnNLb+Se5w3hrzf+hg
/sa/tgya1+1551eK+BJoJX6upyo8Eu1ZWcM4X/2gTqJMuV9yI0u6d2w5pUpfF3Dq
3oVPO+0ZdKuI26roUXLiZUyu7W5DVctqt+JHWYHAxxdiQ2DoxhStK40haZ6km6Ee
xJnSPX472CxArpHZWWeUFOl+9GPT7kN6WGfSgfgzVoAnq5kw0DwspegXykFlLSNT
7VQX8vBOKadHyKQ9QM8DJK+RWJNW5w==
=H6WS
-----END PGP SIGNATURE-----
diff -Nru biojava4-live-4.2.12+dfsg/debian/changelog 
biojava4-live-4.2.12+dfsg/debian/changelog
--- biojava4-live-4.2.12+dfsg/debian/changelog  2019-01-18 20:47:46.000000000 
+0100
+++ biojava4-live-4.2.12+dfsg/debian/changelog  2020-05-15 08:50:46.000000000 
+0200
@@ -1,3 +1,10 @@
+biojava4-live (4.2.12+dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Tentative fix to build against json-simple 3
+
+ -- Gilles Filippini <[email protected]>  Fri, 15 May 2020 08:50:46 +0200
+
 biojava4-live (4.2.12+dfsg-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru biojava4-live-4.2.12+dfsg/debian/patches/use_simple_json 
biojava4-live-4.2.12+dfsg/debian/patches/use_simple_json
--- biojava4-live-4.2.12+dfsg/debian/patches/use_simple_json    2019-01-18 
15:58:37.000000000 +0100
+++ biojava4-live-4.2.12+dfsg/debian/patches/use_simple_json    2020-05-15 
08:50:46.000000000 +0200
@@ -2,24 +2,42 @@
 Author: Olivier Sallou <[email protected]>
 Description: json.org library is not "free", use simple_json
  library and update according to API
-Last-Updated: 2012-12-02
-
---- a/biojava-ws/src/main/java/org/biojava/nbio/ws/hmmer/RemoteHmmerScan.java
-+++ b/biojava-ws/src/main/java/org/biojava/nbio/ws/hmmer/RemoteHmmerScan.java
+ .
+ [ Gilles Filippini <[email protected]> ]
+ Patche updated to migrate away from deprecated json-simple 1.x classes
+ See json-simple 2.0.0 changelog:
+ > * Deprecated JSONParse and JSONValue in favor of Jsoner.
+ > * Deprecated JSONStreamAware and JSONAware in favor of Jsonable.
+ > * Deprecated JSONObject in favor of JsonObject.
+ > * Deprecated JSONArray in favor of JsonArray.
+ .
+ This patch now uses the new json-simple Json* classes. It is compatible
+ with both 2.x and 3.x json-simple releases, with a few ajustments
+ regarding backward incompatible changes in json-simple 3.x:
+ - The package name, changed to com.github.cliftonlabs.json_simple
+ This change is handled using place-holders @JSON_SIMPLE_PACKAGE@ which
+ are substituted at build time by debian/rules.
+ .
+ With this trick the package is compatible with json-simple 2.x and 3.x.
+Last-Updated: 2020-05-15
+Index: 
biojava4-live-4.2.12+dfsg/biojava-ws/src/main/java/org/biojava/nbio/ws/hmmer/RemoteHmmerScan.java
+===================================================================
+--- 
biojava4-live-4.2.12+dfsg.orig/biojava-ws/src/main/java/org/biojava/nbio/ws/hmmer/RemoteHmmerScan.java
++++ 
biojava4-live-4.2.12+dfsg/biojava-ws/src/main/java/org/biojava/nbio/ws/hmmer/RemoteHmmerScan.java
 @@ -20,8 +20,10 @@
   */
  package org.biojava.nbio.ws.hmmer;
  
 -import net.sf.json.JSONArray;
 -import net.sf.json.JSONObject;
-+import org.json.simple.JSONArray;
-+import org.json.simple.JSONObject;
-+import org.json.simple.JSONValue;
++import @[email protected];
++import @[email protected];
++import @[email protected];
 +
  import org.biojava.nbio.core.sequence.ProteinSequence;
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
-@@ -136,15 +138,13 @@
+@@ -136,15 +138,13 @@ public class RemoteHmmerScan implements
  
                SortedSet<HmmerResult> results = new TreeSet<HmmerResult>();
                try {
@@ -27,29 +45,29 @@
 -
 -                      JSONObject hmresults = json.getJSONObject("results");
 -
-+                      JSONObject json= (JSONObject) 
JSONValue.parse(result.toString());
-+                      JSONObject hmresults = (JSONObject) json.get("results");
++                      JsonObject json= Jsoner.deserialize(result.toString(), 
(JsonObject) null);
++                      JsonObject hmresults = (JsonObject) json.get("results");
  
 -                      JSONArray hits = hmresults.getJSONArray("hits");
-+                      JSONArray hits = (JSONArray) hmresults.get("hits");
++                      JsonArray hits = (JsonArray) hmresults.get("hits");
  
                        for(int i =0 ; i < hits.size() ; i++){
 -                              JSONObject hit = hits.getJSONObject(i);
-+                              JSONObject hit = (JSONObject) hits.get(i);
++                              JsonObject hit = (JsonObject) hits.get(i);
  
                                HmmerResult hmmResult = new HmmerResult();
  
-@@ -168,11 +168,11 @@
+@@ -168,11 +168,11 @@ public class RemoteHmmerScan implements
                                hmmResult.setPvalue((Double)hit.get("pvalue"));
                                
hmmResult.setScore(Float.parseFloat((String)hit.get("score")));
  
 -                              JSONArray hmmdomains = 
hit.getJSONArray("domains");
-+                              JSONArray hmmdomains = (JSONArray) 
hit.get("domains");
++                              JsonArray hmmdomains = (JsonArray) 
hit.get("domains");
  
                                SortedSet<HmmerDomain> domains = new 
TreeSet<HmmerDomain>();
                                for ( int j= 0 ; j < hmmdomains.size() ; j++){
 -                                      JSONObject d = 
hmmdomains.getJSONObject(j);
-+                                      JSONObject d = (JSONObject) 
hmmdomains.get(j);
++                                      JsonObject d = (JsonObject) 
hmmdomains.get(j);
                                        Integer is_included = 
getInteger(d.get("is_included"));
                                        if ( is_included == 0) {
                                                continue;
diff -Nru biojava4-live-4.2.12+dfsg/debian/rules 
biojava4-live-4.2.12+dfsg/debian/rules
--- biojava4-live-4.2.12+dfsg/debian/rules      2019-01-18 18:13:50.000000000 
+0100
+++ biojava4-live-4.2.12+dfsg/debian/rules      2020-05-15 08:50:46.000000000 
+0200
@@ -8,6 +8,14 @@
 
 JAVA_HOME=/usr/lib/jvm/default-java
 
+JSON_SIMPLE_VERSION = $(shell dpkg -l libjson-simple-java | grep '^ii' | awk 
'{print $$3}')
+JSON_SIMPLE_3 = $(shell dpkg --compare-versions '$(JSON_SIMPLE_VERSION)' '>' 
'3.1.1-1~' && echo yes || echo no)
+ifeq (yes,$(JSON_SIMPLE_3))
+JSON_SIMPLE_PACKAGE = com.github.cliftonlabs.json_simple
+else
+JSON_SIMPLE_PACKAGE = org.json.simple
+endif
+
 %:
        dh $@  --with javahelper
 
@@ -31,6 +39,10 @@
        sed -e 's/BJLIB/biojava4-jcolorbrewer/g' debian/build.xml > 
biojava-jcolorbrewer/build.xml
 
 override_dh_auto_build:
+       find . -type f -name \*.java -exec grep -q 'import 
@JSON_SIMPLE_PACKAGE@' {} \; \
+         -exec sed -i.json-simple \
+                   -e 's,@JSON_SIMPLE_PACKAGE@,$(JSON_SIMPLE_PACKAGE),' \
+                   {} \; -print
        cd biojava-jcolorbrewer && ant jar
        cd biojava-forester && ant jar
        cd biojava-core && ant jar
@@ -102,6 +114,8 @@
        rm -rf doc
        find . -name "*.class" -delete
        rm -rf buildtest
+       find . -type f -name \*.java.json-simple \
+         -exec sh -c 'file={} && mv $$file $${file%.json-simple}' \; -print
 
 get-orig-source:
        debian/get-orig-source

--- End Message ---
--- Begin Message ---
Source: biojava4-live
Source-Version: 4.2.12+dfsg-3
Done: Olivier Sallou <[email protected]>

We believe that the bug you reported is fixed in the latest version of
biojava4-live, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Olivier Sallou <[email protected]> (supplier of updated biojava4-live package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 15 May 2020 09:04:30 +0000
Source: biojava4-live
Binary: libbiojava4-java libbiojava4-java-doc libbiojava4.0-java
Architecture: source all
Version: 4.2.12+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<[email protected]>
Changed-By: Olivier Sallou <[email protected]>
Description:
 libbiojava4-java - Java API to biological data and applications (default 
version)
 libbiojava4-java-doc - [Biology] Documentation for BioJava
 libbiojava4.0-java - Java API to biological data and applications (version 4)
Closes: 960654
Changes:
 biojava4-live (4.2.12+dfsg-3) unstable; urgency=medium
 .
   [ Michael R. Crusoe ]
   * Don't hardcode openjdk-11 path in debian/rules
 .
   [ Gilles Filippini <[email protected]> ]
   * Tentative fix to build against json-simple 3 Closes: #960654
Checksums-Sha1:
 037ba95d844bbe6b86ec71ea827f78edb6adc7b5 2728 biojava4-live_4.2.12+dfsg-3.dsc
 f220bc573e5f59fe39cc8fd394a2e3960ef01dfc 15712 
biojava4-live_4.2.12+dfsg-3.debian.tar.xz
 1d16c99ff2d2ceb776debc05d806a54f4c23997c 12969 
biojava4-live_4.2.12+dfsg-3_amd64.buildinfo
 11d7caab86017b16efb3e7e8d3ccc23b208a4a36 1979284 
libbiojava4-java-doc_4.2.12+dfsg-3_all.deb
 527566370c0312f827ba6421356dd5442852b418 4668 
libbiojava4-java_4.2.12+dfsg-3_all.deb
 98b3762abd0d4bd7e2fe4a1bbacbf80536fae91b 5452056 
libbiojava4.0-java_4.2.12+dfsg-3_all.deb
Checksums-Sha256:
 28e8016b39a78efd229b9767cb697efd8a6a208e28e17d15316f21d58297913b 2728 
biojava4-live_4.2.12+dfsg-3.dsc
 f105dd805c89b563181ad0d22f449b46b210f34aaf79162707d3bb5976415ccb 15712 
biojava4-live_4.2.12+dfsg-3.debian.tar.xz
 4e01db02f8cc0c9e2ad83a8369f11f01d414836d2bda2e89ac1982ccb6a7f43d 12969 
biojava4-live_4.2.12+dfsg-3_amd64.buildinfo
 60436a2a500936c0c61401178074ad35fc35cd6df5801b4db15799dfe8b927f3 1979284 
libbiojava4-java-doc_4.2.12+dfsg-3_all.deb
 a16e569fec34b255b7ccd340dcaabd07ef6a48de1efdc60f6360d2d8e1a853c7 4668 
libbiojava4-java_4.2.12+dfsg-3_all.deb
 5e81917b121e6afaa40fea3e2ade5d0079a024327b49c4f48cd6f86ac7e07d0d 5452056 
libbiojava4.0-java_4.2.12+dfsg-3_all.deb
Files:
 7284560b2a5a9a5528b8e59291c03bfb 2728 java optional 
biojava4-live_4.2.12+dfsg-3.dsc
 b5e5069d902a1bf4aad76c2fdf2c1ef2 15712 java optional 
biojava4-live_4.2.12+dfsg-3.debian.tar.xz
 ce22c84cbdc1d6b2d725560df7bf299b 12969 java optional 
biojava4-live_4.2.12+dfsg-3_amd64.buildinfo
 8d30e63e632205dad873f6e94171616d 1979284 doc optional 
libbiojava4-java-doc_4.2.12+dfsg-3_all.deb
 907a95b12473982bae7a228950b0debf 4668 java optional 
libbiojava4-java_4.2.12+dfsg-3_all.deb
 37cf1659677fa9ca29badb6af2db9dd6 5452056 java optional 
libbiojava4.0-java_4.2.12+dfsg-3_all.deb

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCAAxFiEEX7Rvg9O5UgRjNdJteNxo2zJthDgFAl6+X/QTHG9zYWxsb3VA
ZGViaWFuLm9yZwAKCRB43GjbMm2EOHwjD/9A3O8Hrx3LEWMVDN2cg+UD47MqLUtb
QLZ2cfQhnH/uJS9835dy4u9vSOHNfs9DOF2s+1roWzifNU4O2hLCl/+IUrDVUACS
hQi0H+Zbqf4oRFurPSNWUU9Z4CrKTYamQFj7PrDEc/tbUD03GKchrKyby3lFr/9f
DGFr57gZHos1yFoWDf+gjOgyDWPOcfFzf3TNx4zorizXAaeVUwuQ5Xicp72hFOcO
cAF1Ck/DZtGQGGUSW7gO3N6AuyiGYyYzhbzFJ+cSGg7nzzOp6/D4ePhGwbbzOnIs
Y6rZTUPyYr3yefk0xIThQ67u/DT1x3xlUy76UxjcNzeYSqF0e1XuF9f66jSbkHnT
A81EM/jMyISLnfoCySgWPJlPbst3frDfF5OlgWneNb8XOlJfUotFlXHvmRQKQGAx
XO66R4i4J5BGPWvTquA7e7n8MRRTLPllZgbGvt2X9QgWDGy9LKExYIJf50osdH8r
NsaE707WpBWc8mKOyb+UtScz4h4LnSK8xrvfG7eElmwM859QLb1CHIr77NvElKMS
aAw3NKQdgIidNWjG/cKOGLRvVv01MtBKiCGg5Jq1ahiJOC6qqf3BkN4YOzegXebQ
fttaeoUP4m9pRNGw2r6O+GFfTFEzBCpItmMeIKs6UvEiSK7wzhzwk6oWDX+9MsT+
xBlZ61X0jNRtLw==
=zq1/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to