Source: resteasy Version: 3.6.2-3 Severity: important Tags: ftbfs patch User: [email protected] Usertags: ftbfs-snakeyaml2
Dear Maintainer,resteasy 3.6.2-3 FTBFS against snakeyaml/2.5+ds-1 currently in experimental. I solved this with the enclosed patch.
I am planning to upload snakeyaml/2.5+ds-2 to unstable on the 27th of October or a bit later. Then I will team-upload openhft-chronicle-wire to unstable with the attached patch.
Best regards, -- Pierre
diff -Nru resteasy-3.6.2/debian/changelog resteasy-3.6.2/debian/changelog --- resteasy-3.6.2/debian/changelog 2024-12-09 14:12:40.000000000 +0100 +++ resteasy-3.6.2/debian/changelog 2025-10-06 23:12:12.000000000 +0200 @@ -1,3 +1,9 @@ +resteasy (3.6.2-4) UNRELEASED; urgency=medium + + * Building against snakeyaml 2.x + + -- Pierre Gruet <[email protected]> Mon, 06 Oct 2025 23:12:12 +0200 + resteasy (3.6.2-3) unstable; urgency=medium * Team upload. diff -Nru resteasy-3.6.2/debian/control resteasy-3.6.2/debian/control --- resteasy-3.6.2/debian/control 2024-12-09 14:12:13.000000000 +0100 +++ resteasy-3.6.2/debian/control 2025-10-06 23:12:12.000000000 +0200 @@ -27,7 +27,7 @@ libscannotation-java, libservlet-api-java, libslf4j-java, - libyaml-snake-java, + libyaml-snake-java (>= 2.5+ds), maven-debian-helper (>= 1.5) Standards-Version: 4.7.0 Vcs-Git: https://salsa.debian.org/java-team/resteasy.git diff -Nru resteasy-3.6.2/debian/maven.rules resteasy-3.6.2/debian/maven.rules --- resteasy-3.6.2/debian/maven.rules 2024-12-09 14:09:52.000000000 +0100 +++ resteasy-3.6.2/debian/maven.rules 2025-10-06 23:11:53.000000000 +0200 @@ -5,7 +5,7 @@ com.fasterxml.jackson.core jackson-databind jar s/2\..*/2.x/ * * junit junit jar s/.*/4.x/ * * org.codehaus.jettison jettison s/bundle/jar/ s/.*/debian/ * * -org.yaml snakeyaml * s/.*/1.x/ * * +org.yaml snakeyaml * s/.*/2.x/ * * com.sun.istack istack-commons-runtime * s/debian/2.17/ * * s/jboss/javassist/ javassist * s/.*/debian/ * * log4j log4j * s/.*/1.2.x/ * * diff -Nru resteasy-3.6.2/debian/patches/series resteasy-3.6.2/debian/patches/series --- resteasy-3.6.2/debian/patches/series 2019-01-02 00:53:23.000000000 +0100 +++ resteasy-3.6.2/debian/patches/series 2025-10-06 23:12:12.000000000 +0200 @@ -1,2 +1,3 @@ 01-ignore-tjws.patch jaxb-api-compatibility.diff +snakeyaml2.patch diff -Nru resteasy-3.6.2/debian/patches/snakeyaml2.patch resteasy-3.6.2/debian/patches/snakeyaml2.patch --- resteasy-3.6.2/debian/patches/snakeyaml2.patch 1970-01-01 01:00:00.000000000 +0100 +++ resteasy-3.6.2/debian/patches/snakeyaml2.patch 2025-10-06 23:12:12.000000000 +0200 @@ -0,0 +1,25 @@ +Description: constructing CustomClassLoaderConstructor with default + LoaderOptions to comply with the interface of snakeyaml 2.x +Author: Pierre Gruet <[email protected]> +Forwarded: no +Last-Update: 2025-10-08 + +--- a/providers/yaml/src/main/java/org/jboss/resteasy/plugins/providers/YamlProvider.java ++++ b/providers/yaml/src/main/java/org/jboss/resteasy/plugins/providers/YamlProvider.java +@@ -5,6 +5,7 @@ + import org.jboss.resteasy.plugins.providers.yaml.i18n.Messages; + import org.jboss.resteasy.spi.ReaderException; + import org.jboss.resteasy.spi.WriterException; ++import org.yaml.snakeyaml.LoaderOptions; + import org.yaml.snakeyaml.Yaml; + import org.yaml.snakeyaml.constructor.CustomClassLoaderConstructor; + +@@ -54,7 +55,7 @@ + if (isValidInternalType(type)) { + return new Yaml().load(entityStream); + } else { +- CustomClassLoaderConstructor customClassLoaderConstructor = new CustomClassLoaderConstructor(type.getClassLoader()); ++ CustomClassLoaderConstructor customClassLoaderConstructor = new CustomClassLoaderConstructor(type.getClassLoader(), new LoaderOptions()); + return new Yaml(customClassLoaderConstructor).loadAs(entityStream, type); + } + } catch (Exception e) {
OpenPGP_signature.asc
Description: OpenPGP digital signature
__ This is the maintainer address of Debian's Java team <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.
