Package: release.debian.org Severity: normal Tags: bullseye User: release.debian....@packages.debian.org Usertags: pu X-Debbugs-Cc: a...@debian.org
Hello, I would like to update jersey1 in Bullseye. The package currently FTBFS because of the latest security update of libjettison-java. The fix is trivial. Please find attached the debdiff. Regards, Markus
diff -Nru jersey1-1.19.3/debian/changelog jersey1-1.19.3/debian/changelog --- jersey1-1.19.3/debian/changelog 2019-03-02 02:04:24.000000000 +0100 +++ jersey1-1.19.3/debian/changelog 2022-12-31 16:49:13.000000000 +0100 @@ -1,3 +1,10 @@ +jersey1 (1.19.3-6+deb11u1) bullseye; urgency=medium + + * Team upload. + * Fix FTBFS with libjettison-java 1.5.3. + + -- Markus Koschany <a...@debian.org> Sat, 31 Dec 2022 16:49:13 +0100 + jersey1 (1.19.3-6) unstable; urgency=medium * Fixed the build failure with librome-java >= 1.6 diff -Nru jersey1-1.19.3/debian/control jersey1-1.19.3/debian/control --- jersey1-1.19.3/debian/control 2019-03-02 02:04:14.000000000 +0100 +++ jersey1-1.19.3/debian/control 2022-12-31 16:49:13.000000000 +0100 @@ -19,7 +19,7 @@ libjackson-json-java, libjaxb-java, libjdom1-java, - libjettison-java, + libjettison-java (>= 1.5.3), libjsr311-api-java, libmail-java, libmaven-bundle-plugin-java, diff -Nru jersey1-1.19.3/debian/patches/libjettison-java-1.5.3.patch jersey1-1.19.3/debian/patches/libjettison-java-1.5.3.patch --- jersey1-1.19.3/debian/patches/libjettison-java-1.5.3.patch 1970-01-01 01:00:00.000000000 +0100 +++ jersey1-1.19.3/debian/patches/libjettison-java-1.5.3.patch 2022-12-31 16:49:13.000000000 +0100 @@ -0,0 +1,27 @@ +From: Markus Koschany <a...@debian.org> +Date: Sat, 31 Dec 2022 11:56:31 +0100 +Subject: libjettison-java 1.5.3 + +Fix FTBFS with libjettison-java 1.5.3. +--- + .../src/main/java/com/sun/jersey/json/impl/JSONTransformer.java | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/jersey-json/src/main/java/com/sun/jersey/json/impl/JSONTransformer.java b/jersey-json/src/main/java/com/sun/jersey/json/impl/JSONTransformer.java +index e7c001f..46c7361 100644 +--- a/jersey-json/src/main/java/com/sun/jersey/json/impl/JSONTransformer.java ++++ b/jersey-json/src/main/java/com/sun/jersey/json/impl/JSONTransformer.java +@@ -85,11 +85,11 @@ final class JSONTransformer { + return result; + } + +- static String asJsonArray(Collection<? extends Object> collection) { ++ static String asJsonArray(Collection<? extends Object> collection) throws JSONException { + return (null == collection) ? "[]" : (new JSONArray(collection)).toString(); + } + +- static String asJsonObject(Map map) { ++ static String asJsonObject(Map map) throws JSONException { + return (null == map) ? "{}" : (new JSONObject(map)).toString(); + } + } diff -Nru jersey1-1.19.3/debian/patches/series jersey1-1.19.3/debian/patches/series --- jersey1-1.19.3/debian/patches/series 2019-03-02 01:54:20.000000000 +0100 +++ jersey1-1.19.3/debian/patches/series 2022-12-31 16:49:13.000000000 +0100 @@ -2,3 +2,4 @@ 02-disable-moxy-support.patch 03-add-enterprise-dependencies.patch 04-rome-compatibility.patch +libjettison-java-1.5.3.patch