Source: jruby-maven-plugins Version: 3.0.1-2 Severity: important Tags: ftbfs patch User: [email protected] Usertags: ftbfs-snakeyaml2
Dear Maintainer,jruby-maven-plugins 3.0.1-2 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 jruby-maven-plugins-3.0.1/debian/changelog jruby-maven-plugins-3.0.1/debian/changelog --- jruby-maven-plugins-3.0.1/debian/changelog 2023-11-26 23:09:50.000000000 +0100 +++ jruby-maven-plugins-3.0.1/debian/changelog 2025-10-11 23:18:37.000000000 +0200 @@ -1,3 +1,9 @@ +jruby-maven-plugins (3.0.1-3) UNRELEASED; urgency=medium + + * Building against snakeyaml 2.x + + -- Pierre Gruet <[email protected]> Sat, 11 Oct 2025 23:18:37 +0200 + jruby-maven-plugins (3.0.1-2) unstable; urgency=medium * d/copyright: update source url diff -Nru jruby-maven-plugins-3.0.1/debian/control jruby-maven-plugins-3.0.1/debian/control --- jruby-maven-plugins-3.0.1/debian/control 2023-11-26 23:09:50.000000000 +0100 +++ jruby-maven-plugins-3.0.1/debian/control 2025-10-11 23:18:37.000000000 +0200 @@ -13,7 +13,7 @@ libmaven-install-plugin-java, libmaven-source-plugin-java, libplexus-archiver-java (>= 3.5), - libyaml-snake-java, + libyaml-snake-java (>= 2.5+ds), maven-debian-helper (>= 2.0~), maven-repo-helper (>= 1.5), Standards-Version: 4.6.2 diff -Nru jruby-maven-plugins-3.0.1/debian/maven.rules jruby-maven-plugins-3.0.1/debian/maven.rules --- jruby-maven-plugins-3.0.1/debian/maven.rules 2023-11-26 23:09:50.000000000 +0100 +++ jruby-maven-plugins-3.0.1/debian/maven.rules 2025-10-11 23:18:35.000000000 +0200 @@ -22,7 +22,7 @@ org.apache.maven maven-core jar s/.*/3.x/ * * org.apache.maven maven-model jar s/.*/3.x/ * * org.apache.maven maven-plugin-api jar s/.*/3.x/ * * -org.yaml snakeyaml jar s/.*/1.x/ * * +org.yaml snakeyaml jar s/.*/2.x/ * * junit junit jar s/4\..*/4.x/ * * org.codehaus.plexus plexus-component-annotations * s/.*/1.5.5/ * * org.codehaus.plexus plexus-container-default * s/.*/1.5.5/ * * diff -Nru jruby-maven-plugins-3.0.1/debian/patches/series jruby-maven-plugins-3.0.1/debian/patches/series --- jruby-maven-plugins-3.0.1/debian/patches/series 2023-11-26 23:09:50.000000000 +0100 +++ jruby-maven-plugins-3.0.1/debian/patches/series 2025-10-11 23:18:37.000000000 +0200 @@ -1,3 +1,4 @@ disable-rubygems-repo.diff fix-assertion.patch fix-jruby-execution.patch +snakeyaml2.patch diff -Nru jruby-maven-plugins-3.0.1/debian/patches/snakeyaml2.patch jruby-maven-plugins-3.0.1/debian/patches/snakeyaml2.patch --- jruby-maven-plugins-3.0.1/debian/patches/snakeyaml2.patch 1970-01-01 01:00:00.000000000 +0100 +++ jruby-maven-plugins-3.0.1/debian/patches/snakeyaml2.patch 2025-10-11 23:18:37.000000000 +0200 @@ -0,0 +1,42 @@ +Description: constructing Constructor and Representer derivatives with default + LoaderOptions and DumperOptions to comply with the interface of snakeyaml 2.x +Author: Pierre Gruet <[email protected]> +Forwarded: no +Last-Update: 2025-10-12 + +--- a/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/MappingConstructor.java ++++ b/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/MappingConstructor.java +@@ -1,5 +1,6 @@ + package de.saumya.mojo.gems.spec.yaml; + ++import org.yaml.snakeyaml.LoaderOptions; + import org.yaml.snakeyaml.TypeDescription; + import org.yaml.snakeyaml.constructor.Constructor; + import org.yaml.snakeyaml.nodes.Tag; +@@ -16,7 +17,7 @@ + */ + public class MappingConstructor extends Constructor { + public MappingConstructor() { +- super(); ++ super(new LoaderOptions()); + + this.addTypeDescription(new TypeDescription(GemSpecification.class, + new Tag("!ruby/object:Gem::Specification"))); +--- a/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/MappingRepresenter.java ++++ b/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/MappingRepresenter.java +@@ -1,5 +1,6 @@ + package de.saumya.mojo.gems.spec.yaml; + ++import org.yaml.snakeyaml.DumperOptions; + import org.yaml.snakeyaml.nodes.Node; + import org.yaml.snakeyaml.nodes.Tag; + import org.yaml.snakeyaml.representer.Represent; +@@ -17,7 +18,7 @@ + */ + public class MappingRepresenter extends Representer { + public MappingRepresenter() { +- super(); ++ super(new DumperOptions()); + + this.nullRepresenter = new RepresentNull(); +
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.
