[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1040893: ocaml-qcheck: autopkgtest failures with ocaml-dune 3.9



Source: ocaml-qcheck
Version: 0.20-1
Severity: normal
X-Debbugs-Cc: daniel.bungert@canonical.com

Dear Maintainer,

On Sid and Ubuntu Mantic, autopkgtest failures can be observed.

The first failure has to do with dropping the dune -> ocaml-dune transitional
package:
  Package dune is not available, but is referred to by another package.
  This may mean that the package is missing, has been obsoleted, or
  is only available from another source
  However the following packages replace it:
    ocaml-dune

  E: Package 'dune' has no installation candidate
Updating the package name in the test dependencies is sufficient.

If that is resolved, the following failure is seen:
  autopkgtest [20:11:29]: test test: [-----------------------
  Error: No dune-project file has been found. A default one is assumed but the
  project might break when dune is upgraded. Please create a dune-project file.
  Hint: generate the project file with: $ dune init project <name>
  autopkgtest [20:11:30]: test test: -----------------------]

To address the second problem, I propose adding a dune-project file for
autopkgtest use.

Please see the attached debdiff which addresses both of the above issues.
Thanks.

-Dan
diff -Nru ocaml-qcheck-0.20/debian/changelog ocaml-qcheck-0.20/debian/changelog
--- ocaml-qcheck-0.20/debian/changelog	2023-02-03 22:46:04.000000000 -0700
+++ ocaml-qcheck-0.20/debian/changelog	2023-07-11 17:35:58.000000000 -0600
@@ -1,3 +1,10 @@
+ocaml-qcheck (0.20-2) unstable; urgency=medium
+
+  * fix autopkgtest - update ocaml-dune test dependency, supply a dune project
+    file for examples
+
+ -- Dan Bungert <daniel.bungert@canonical.com>  Tue, 11 Jul 2023 17:35:58 -0600
+
 ocaml-qcheck (0.20-1) unstable; urgency=medium
 
   [ Stéphane Glondu ]
diff -Nru ocaml-qcheck-0.20/debian/tests/control ocaml-qcheck-0.20/debian/tests/control
--- ocaml-qcheck-0.20/debian/tests/control	2023-02-03 22:46:04.000000000 -0700
+++ ocaml-qcheck-0.20/debian/tests/control	2023-07-11 17:35:58.000000000 -0600
@@ -1,3 +1,3 @@
 Tests: test
-Depends: ocaml-nox, ocaml-findlib, dune, @
+Depends: ocaml-nox, ocaml-findlib, ocaml-dune, @
 Restrictions: allow-stderr
diff -Nru ocaml-qcheck-0.20/debian/tests/dune-project-examples ocaml-qcheck-0.20/debian/tests/dune-project-examples
--- ocaml-qcheck-0.20/debian/tests/dune-project-examples	1969-12-31 17:00:00.000000000 -0700
+++ ocaml-qcheck-0.20/debian/tests/dune-project-examples	2023-07-11 17:35:58.000000000 -0600
@@ -0,0 +1,2 @@
+(lang dune 2.2)
+(name qcheck-examples)
diff -Nru ocaml-qcheck-0.20/debian/tests/test ocaml-qcheck-0.20/debian/tests/test
--- ocaml-qcheck-0.20/debian/tests/test	2023-02-03 22:46:04.000000000 -0700
+++ ocaml-qcheck-0.20/debian/tests/test	2023-07-11 17:35:58.000000000 -0600
@@ -6,6 +6,7 @@
 trap "rm -rf ${testdir}" 0 INT QUIT ABRT PIPE TERM
 
 cp -r "$(dirname "$0")/../../example" "${testdir}/example"
+cp debian/tests/dune-project-examples "${testdir}/example/dune-project"
 
 cd "${testdir}/example"
 

Reply to: