Source: jackson-dataformat-yaml Version: 2.8.11-4 Severity: important Tags: ftbfs patch User: [email protected] Usertags: ftbfs-snakeyaml2
Dear Maintainer,jackson-dataformat-yaml 2.8.11-4 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 jackson-dataformat-yaml-2.8.11/debian/changelog jackson-dataformat-yaml-2.8.11/debian/changelog --- jackson-dataformat-yaml-2.8.11/debian/changelog 2023-01-22 22:49:36.000000000 +0100 +++ jackson-dataformat-yaml-2.8.11/debian/changelog 2025-10-11 22:55:50.000000000 +0200 @@ -1,3 +1,9 @@ +jackson-dataformat-yaml (2.8.11-5) UNRELEASED; urgency=medium + + * Building against snakeyaml 2.x + + -- Pierre Gruet <[email protected]> Sat, 11 Oct 2025 22:55:50 +0200 + jackson-dataformat-yaml (2.8.11-4) unstable; urgency=medium * Team upload diff -Nru jackson-dataformat-yaml-2.8.11/debian/control jackson-dataformat-yaml-2.8.11/debian/control --- jackson-dataformat-yaml-2.8.11/debian/control 2023-01-22 22:26:55.000000000 +0100 +++ jackson-dataformat-yaml-2.8.11/debian/control 2025-10-11 22:55:50.000000000 +0200 @@ -16,7 +16,7 @@ libmaven-enforcer-plugin-java, libmaven-shade-plugin-java, libreplacer-java, - libyaml-snake-java, + libyaml-snake-java (>= 2.5+ds), maven-debian-helper, xmlstarlet Standards-Version: 4.6.2 diff -Nru jackson-dataformat-yaml-2.8.11/debian/maven.rules jackson-dataformat-yaml-2.8.11/debian/maven.rules --- jackson-dataformat-yaml-2.8.11/debian/maven.rules 2023-01-22 18:47:00.000000000 +0100 +++ jackson-dataformat-yaml-2.8.11/debian/maven.rules 2025-10-11 22:55:47.000000000 +0200 @@ -7,6 +7,6 @@ com.fasterxml.jackson.core jackson-databind jar s/.*/2.x/ * * com.fasterxml.jackson.dataformat jackson-dataformat-yaml * s/.*/2.x/ * * junit junit jar s/.*/4.x/ * * -org.yaml snakeyaml bundle s/1\..*/1.x/ * * -org.yaml snakeyaml s/jar/bundle/ s/1\..*/1.x/ * * +org.yaml snakeyaml bundle s/1\..*/2.x/ * * +org.yaml snakeyaml s/jar/bundle/ s/1\..*/2.x/ * * com.fasterxml.jackson jackson-parent pom s/2.8/debian/ * * diff -Nru jackson-dataformat-yaml-2.8.11/debian/patches/series jackson-dataformat-yaml-2.8.11/debian/patches/series --- jackson-dataformat-yaml-2.8.11/debian/patches/series 2023-01-22 22:46:30.000000000 +0100 +++ jackson-dataformat-yaml-2.8.11/debian/patches/series 2025-10-11 22:55:50.000000000 +0200 @@ -1,3 +1,4 @@ 0002-depend-on-junit.patch 0003-ignore-integration-tests.patch snakeyaml-1.20.patch +snakeyaml2.patch diff -Nru jackson-dataformat-yaml-2.8.11/debian/patches/snakeyaml2.patch jackson-dataformat-yaml-2.8.11/debian/patches/snakeyaml2.patch --- jackson-dataformat-yaml-2.8.11/debian/patches/snakeyaml2.patch 1970-01-01 01:00:00.000000000 +0100 +++ jackson-dataformat-yaml-2.8.11/debian/patches/snakeyaml2.patch 2025-10-11 22:55:50.000000000 +0200 @@ -0,0 +1,32 @@ +Description: using ScannerImpl to provide ParserImpl with StreamReader after + changes in the interface of snakeyaml +Author: Pierre Gruet <[email protected]> +Forwarded: no +Last-Update: 2025-10-12 + +--- a/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java ++++ b/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java +@@ -5,12 +5,14 @@ + import java.math.BigInteger; + import java.util.regex.Pattern; + ++import org.yaml.snakeyaml.LoaderOptions; + import org.yaml.snakeyaml.error.Mark; + import org.yaml.snakeyaml.events.*; + import org.yaml.snakeyaml.nodes.NodeId; + import org.yaml.snakeyaml.nodes.Tag; + import org.yaml.snakeyaml.parser.ParserImpl; + import org.yaml.snakeyaml.reader.StreamReader; ++import org.yaml.snakeyaml.scanner.ScannerImpl; + + import com.fasterxml.jackson.core.*; + import com.fasterxml.jackson.core.base.ParserBase; +@@ -149,7 +151,7 @@ + _objectCodec = codec; + _formatFeatures = formatFeatures; + _reader = reader; +- _yamlParser = new ParserImpl(new StreamReader(reader)); ++ _yamlParser = new ParserImpl(new ScannerImpl(new StreamReader(reader), new LoaderOptions())); + } + +
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.
