Source: testng
Version: 6.9.12-4
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: ftbfs-snakeyaml2

Dear Maintainer,

testng 6.9.12-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 testng-6.9.12/debian/changelog testng-6.9.12/debian/changelog
--- testng-6.9.12/debian/changelog	2018-08-08 15:24:23.000000000 +0200
+++ testng-6.9.12/debian/changelog	2025-10-10 08:29:35.000000000 +0200
@@ -1,3 +1,9 @@
+testng (6.9.12-5) UNRELEASED; urgency=medium
+
+  * Building against snakeyaml 2.x
+
+ -- Pierre Gruet <[email protected]>  Fri, 10 Oct 2025 08:29:35 +0200
+
 testng (6.9.12-4) unstable; urgency=medium
 
   * Team upload.
diff -Nru testng-6.9.12/debian/control testng-6.9.12/debian/control
--- testng-6.9.12/debian/control	2018-08-08 15:24:23.000000000 +0200
+++ testng-6.9.12/debian/control	2025-10-10 08:29:35.000000000 +0200
@@ -13,7 +13,7 @@
  libguice-java,
  libjcommander-java,
  libmaven-bundle-plugin-java,
- libyaml-snake-java,
+ libyaml-snake-java (>= 2.5+ds),
  maven-debian-helper
 Standards-Version: 4.1.5
 Vcs-Git: https://salsa.debian.org/java-team/testng.git
diff -Nru testng-6.9.12/debian/maven.rules testng-6.9.12/debian/maven.rules
--- testng-6.9.12/debian/maven.rules	2018-08-08 15:24:23.000000000 +0200
+++ testng-6.9.12/debian/maven.rules	2025-10-10 08:29:19.000000000 +0200
@@ -1,6 +1,6 @@
 
 com.google.inject guice jar s/.*/debian/ s/no_aop// *
 junit junit jar s/4\..*/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/ * *
 s/ant/org.apache.ant/ * * s/.*/debian/ * *
diff -Nru testng-6.9.12/debian/patches/series testng-6.9.12/debian/patches/series
--- testng-6.9.12/debian/patches/series	2018-08-08 15:24:23.000000000 +0200
+++ testng-6.9.12/debian/patches/series	2025-10-10 08:29:35.000000000 +0200
@@ -1,2 +1,3 @@
 version_java.patch
 remove-guava-dependency-pr1086.patch
+snakeyaml2.patch
diff -Nru testng-6.9.12/debian/patches/snakeyaml2.patch testng-6.9.12/debian/patches/snakeyaml2.patch
--- testng-6.9.12/debian/patches/snakeyaml2.patch	1970-01-01 01:00:00.000000000 +0100
+++ testng-6.9.12/debian/patches/snakeyaml2.patch	2025-10-10 08:29:35.000000000 +0200
@@ -0,0 +1,25 @@
+Description: constructing Constructor with default LoaderOptions to comply
+ with the interface of snakeyaml 2.x
+Author: Pierre Gruet <[email protected]>
+Forwarded: no
+Last-Update: 2025-10-10
+
+--- a/src/main/java/org/testng/internal/Yaml.java
++++ b/src/main/java/org/testng/internal/Yaml.java
+@@ -5,6 +5,7 @@
+ import org.testng.xml.XmlPackage;
+ import org.testng.xml.XmlSuite;
+ import org.testng.xml.XmlTest;
++import org.yaml.snakeyaml.LoaderOptions;
+ import org.yaml.snakeyaml.TypeDescription;
+ import org.yaml.snakeyaml.constructor.Constructor;
+ import org.yaml.snakeyaml.nodes.Node;
+@@ -261,7 +262,7 @@
+ 
+   private static class TestNGConstructor extends Constructor {
+     public TestNGConstructor(Class<? extends Object> theRoot) {
+-      super(theRoot);
++      super(theRoot, new LoaderOptions());
+       yamlClassConstructors.put(NodeId.scalar, new ConstructParallelMode());
+     }
+ 

Attachment: 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.

Reply via email to