Control: tags 1116720 + pending
Control: tags 1117955 + pending

Dear maintainer,

I've prepared an NMU for clj-yaml-clojure (versioned as 0.7.2-2.1)
and uploaded it to DELAYED/2. Please feel free to tell me if I should 
cancel it.

cu
Adrian
diffstat for clj-yaml-clojure-0.7.2 clj-yaml-clojure-0.7.2

 changelog                                             |   11 +++++
 control                                               |    4 +-
 patches/0001-Lein-Local.patch                         |    2 -
 patches/series                                        |    1 
 patches/snakeyaml2.patch                              |   35 ++++++++++++++++++
 patches/use-java-target-source-from-java-common.patch |    8 +---
 6 files changed, 53 insertions(+), 8 deletions(-)

diff -Nru clj-yaml-clojure-0.7.2/debian/changelog clj-yaml-clojure-0.7.2/debian/changelog
--- clj-yaml-clojure-0.7.2/debian/changelog	2024-08-30 17:51:02.000000000 +0300
+++ clj-yaml-clojure-0.7.2/debian/changelog	2025-11-19 22:07:43.000000000 +0200
@@ -1,3 +1,14 @@
+clj-yaml-clojure (0.7.2-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply patch from Santiago Vila to fix FTBFS with the nocheck
+    build profile. (Closes: #1116720)
+
+  [ Pierre Gruet ]
+  * Fix building against snakeyaml 2.x. (Closes: #1117955)
+
+ -- Adrian Bunk <[email protected]>  Wed, 19 Nov 2025 22:07:43 +0200
+
 clj-yaml-clojure (0.7.2-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru clj-yaml-clojure-0.7.2/debian/control clj-yaml-clojure-0.7.2/debian/control
--- clj-yaml-clojure-0.7.2/debian/control	2024-08-30 17:51:02.000000000 +0300
+++ clj-yaml-clojure-0.7.2/debian/control	2025-11-19 22:07:43.000000000 +0200
@@ -9,8 +9,8 @@
  javahelper,
  leiningen,
  maven-repo-helper,
- libordered-clojure <!nocheck>,
- libyaml-snake-java <!nocheck>,
+ libordered-clojure,
+ libyaml-snake-java (>= 2.5+ds),
 Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/clojure-team/clj-yaml-clojure
 Vcs-Git: https://salsa.debian.org/clojure-team/clj-yaml-clojure.git
diff -Nru clj-yaml-clojure-0.7.2/debian/patches/0001-Lein-Local.patch clj-yaml-clojure-0.7.2/debian/patches/0001-Lein-Local.patch
--- clj-yaml-clojure-0.7.2/debian/patches/0001-Lein-Local.patch	2024-08-30 17:51:02.000000000 +0300
+++ clj-yaml-clojure-0.7.2/debian/patches/0001-Lein-Local.patch	2025-11-19 22:01:19.000000000 +0200
@@ -20,7 +20,7 @@
 -  [[org.yaml/snakeyaml "1.26"]
 -   [org.flatland/ordered "1.5.9"]]
 -  :profiles {:provided {:dependencies [[org.clojure/clojure "1.10.1"]]}})
-+  [[org.yaml/snakeyaml "1.x"]
++  [[org.yaml/snakeyaml "2.x"]
 +   [org.flatland/ordered "debian"]]
 +  :profiles {:provided {:dependencies [[org.clojure/clojure "1.x"]]}}
 +  :local-repo "debian/maven-repo")
diff -Nru clj-yaml-clojure-0.7.2/debian/patches/series clj-yaml-clojure-0.7.2/debian/patches/series
--- clj-yaml-clojure-0.7.2/debian/patches/series	2024-08-30 17:51:02.000000000 +0300
+++ clj-yaml-clojure-0.7.2/debian/patches/series	2025-11-19 22:01:19.000000000 +0200
@@ -1,2 +1,3 @@
 0001-Lein-Local.patch
 use-java-target-source-from-java-common.patch
+snakeyaml2.patch
diff -Nru clj-yaml-clojure-0.7.2/debian/patches/snakeyaml2.patch clj-yaml-clojure-0.7.2/debian/patches/snakeyaml2.patch
--- clj-yaml-clojure-0.7.2/debian/patches/snakeyaml2.patch	1970-01-01 02:00:00.000000000 +0200
+++ clj-yaml-clojure-0.7.2/debian/patches/snakeyaml2.patch	2025-11-19 22:01:19.000000000 +0200
@@ -0,0 +1,35 @@
+Description: constructing Representer with a DumperOptions instance to comply
+ with the interface of snakeyaml 2.x
+Author: Pierre Gruet <[email protected]>
+Forwarded: no
+Last-Update: 2025-10-12
+
+--- a/src/java/clj_yaml/MarkedConstructor.java
++++ b/src/java/clj_yaml/MarkedConstructor.java
+@@ -1,5 +1,6 @@
+ package clj_yaml;
+ 
++import org.yaml.snakeyaml.LoaderOptions;
+ import org.yaml.snakeyaml.constructor.Construct;
+ import org.yaml.snakeyaml.constructor.Constructor;
+ import org.yaml.snakeyaml.constructor.SafeConstructor;
+@@ -21,7 +22,7 @@
+     public MarkedConstructor() {
+         // Make sure SafeConstructor's constructor is called first,
+         // so that we overwrite the keys that SafeConstructor sets.
+-        super();
++        super(new LoaderOptions());
+         // Wrap all the constructors with Marking constructors.
+         for (Tag tag : tags) {
+             Construct old = this.yamlConstructors.get(tag);
+--- a/src/clojure/clj_yaml/core.clj
++++ b/src/clojure/clj_yaml/core.clj
+@@ -60,7 +60,7 @@
+         dumper (if dumper-options
+                  (make-dumper-options :flow-style (:flow-style dumper-options))
+                  (default-dumper-options))]
+-    (Yaml. constructor (Representer.) dumper loader)))
++    (Yaml. constructor (Representer. dumper) dumper loader)))
+ 
+ (defrecord Marked
+   [start end unmark])
diff -Nru clj-yaml-clojure-0.7.2/debian/patches/use-java-target-source-from-java-common.patch clj-yaml-clojure-0.7.2/debian/patches/use-java-target-source-from-java-common.patch
--- clj-yaml-clojure-0.7.2/debian/patches/use-java-target-source-from-java-common.patch	2024-08-30 17:51:02.000000000 +0300
+++ clj-yaml-clojure-0.7.2/debian/patches/use-java-target-source-from-java-common.patch	2025-11-19 22:01:19.000000000 +0200
@@ -2,10 +2,8 @@
 Author: Jérôme Charaoui <[email protected]>
 Forwarded: not-needed
 Bug-Debian: #1052576
-Index: clj-yaml-clojure/project.clj
-===================================================================
---- clj-yaml-clojure.orig/project.clj
-+++ clj-yaml-clojure/project.clj
+--- a/project.clj
++++ b/project.clj
 @@ -9,7 +9,7 @@
    :global-vars {*warn-on-reflection* true}
    :source-paths ["src/clojure"]
@@ -13,5 +11,5 @@
 -  :javac-options ["-target" "1.7" "-source" "1.7" "-Xlint:-options"]
 +  :javac-options ["-target" ~(System/getenv, "JAVA_TARGET_VERSION") "-source" ~(System/getenv, "JAVA_SOURCE_VERSION") "-Xlint:-options"]
    :dependencies
-   [[org.yaml/snakeyaml "1.x"]
+   [[org.yaml/snakeyaml "2.x"]
     [org.flatland/ordered "debian"]]

Reply via email to