Le 30/06/2024 à 18:04, Stéphane Glondu a écrit :
Source: supermin
Severity: important
Tags: ftbfs
User: [email protected]
Usertags: ocaml-5.2.0-transition

Dear Maintainer,

Your package FTBFS with OCaml 5.2.0 for the following reason:

   Uses Pervasives

Fix attached.


Cheers,

--
Stéphane
diff -Nru supermin-5.2.2/debian/changelog supermin-5.2.2/debian/changelog
--- supermin-5.2.2/debian/changelog	2024-03-12 00:34:48.000000000 +0100
+++ supermin-5.2.2/debian/changelog	2024-06-18 06:14:27.000000000 +0200
@@ -1,3 +1,9 @@
+supermin (5.2.2-5) UNRELEASED; urgency=medium
+
+  * Fix build with OCaml 5.x (Closes: #1074548)
+
+ -- Stéphane Glondu <[email protected]>  Tue, 18 Jun 2024 06:14:27 +0200
+
 supermin (5.2.2-4) unstable; urgency=medium
 
   * Improve example in manual page
diff -Nru supermin-5.2.2/debian/patches/0003-Fix-build-with-OCaml-5.x.patch supermin-5.2.2/debian/patches/0003-Fix-build-with-OCaml-5.x.patch
--- supermin-5.2.2/debian/patches/0003-Fix-build-with-OCaml-5.x.patch	1970-01-01 01:00:00.000000000 +0100
+++ supermin-5.2.2/debian/patches/0003-Fix-build-with-OCaml-5.x.patch	2024-06-18 06:14:07.000000000 +0200
@@ -0,0 +1,53 @@
+From: Stephane Glondu <[email protected]>
+Date: Tue, 18 Jun 2024 06:13:52 +0200
+Subject: Fix build with OCaml 5.x
+
+---
+ src/mode_build.ml | 4 ++--
+ src/utils.ml      | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/mode_build.ml b/src/mode_build.ml
+index ff7733e..0edf9e5 100644
+--- a/src/mode_build.ml
++++ b/src/mode_build.ml
+@@ -123,7 +123,7 @@ let rec build debug
+       (PackageSet.cardinal packages);
+     if debug >= 2 then (
+       List.iter (printf "  - %s\n") pretty_packages;
+-      flush Pervasives.stdout
++      flush Stdlib.stdout
+     )
+   );
+ 
+@@ -207,7 +207,7 @@ let rec build debug
+       (List.length files);
+     if debug >= 2 then (
+       List.iter (fun { ft_path = path } -> printf "  - %s\n" path) files;
+-      flush Pervasives.stdout
++      flush Stdlib.stdout
+     )
+   );
+ 
+diff --git a/src/utils.ml b/src/utils.ml
+index f5990ef..5b0aeb7 100644
+--- a/src/utils.ml
++++ b/src/utils.ml
+@@ -40,7 +40,7 @@ let dir_exists name =
+   try (stat name).st_kind = S_DIR
+   with Unix_error _ -> false
+ 
+-let uniq ?(cmp = Pervasives.compare) xs =
++let uniq ?(cmp = Stdlib.compare) xs =
+   let rec loop acc = function
+     | [] -> acc
+     | [x] -> x :: acc
+@@ -51,7 +51,7 @@ let uniq ?(cmp = Pervasives.compare) xs =
+   in
+   List.rev (loop [] xs)
+ 
+-let sort_uniq ?(cmp = Pervasives.compare) xs =
++let sort_uniq ?(cmp = Stdlib.compare) xs =
+   let xs = List.sort cmp xs in
+   let xs = uniq ~cmp xs in
+   xs
diff -Nru supermin-5.2.2/debian/patches/series supermin-5.2.2/debian/patches/series
--- supermin-5.2.2/debian/patches/series	2024-03-12 00:20:17.000000000 +0100
+++ supermin-5.2.2/debian/patches/series	2024-06-18 06:14:07.000000000 +0200
@@ -1,2 +1,3 @@
 0001-Improve-example-in-manual-page.patch
 0002-Resolve-virtual-packages-in-dependencies.patch
+0003-Fix-build-with-OCaml-5.x.patch

Reply via email to