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

Bug#642935: ocaml-md5sums: Can't exec "ocamldumpapprox": No such file or directory



Package: ocaml-nox
Version: 3.12.0-7

Hi,

amd64 system, mostly experimental packages.  Trying to build bin-prot
to reproduce Bug#642706, I get:

	   dh_shlibdeps
	   dh_installdeb
	   dh_ocaml
	Can't exec "ocamldumpapprox": No such file or directory at /usr/bin/ocaml-md5sums line 137, <STDIN> line 20.
	E: Error running ocamldumpapprox on debian/libbin-prot-camlp4-dev/usr/lib/ocaml/bin_prot/pa_bin_prot.cmxa

Indeed:

	$ grep -n ocamldumpapprox /usr/bin/ocaml-md5sums
	11:my $ocamldumpapprox=$ENV{OCAMLDUMPAPPROX};
	12:$ocamldumpapprox="ocamldumpapprox" unless defined($ocamldumpapprox);
	133:    my $command = $ocamldumpapprox;
	$ which ocamldumpapprox
	$ dpkg-query -W dh-ocaml
	dh-ocaml	0.9.6
	$ dpkg-query -W ocaml-nox
	ocaml-nox	3.12.0-7
	$ zgrep dumpapprox /usr/share/doc/ocaml-nox/changelog.Debian.gz 
	    - remove ocaml{byteinfo,plugininfo,dumpapprox}: all tools merged into
	  * Build and install dumpapprox, and provide a manpage

Upgrading dh-ocaml fixes it.  How about this patch (untested)?
---
 debian/changelog |    4 ++++
 debian/control   |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git i/debian/changelog w/debian/changelog
index 8c1a2cfe..38d939a7 100644
--- i/debian/changelog
+++ w/debian/changelog
@@ -7,6 +7,10 @@ ocaml (3.12.1-1) UNRELEASED; urgency=low
   [ Mehdi Dogguy ]
   * Make objinfo show force_link and ccobjs/ccopts when needed
 
+  [ Jonathan Nieder ]
+  * debian/control: add Breaks against versions of dh-ocaml that
+    relied on the ocaml{dumpapprox,plugininfo,byteinfo} tools.
+
  -- Stéphane Glondu <glondu@debian.org>  Wed, 15 Jun 2011 18:19:01 +0200
 
 ocaml (3.12.0-7) unstable; urgency=low
diff --git i/debian/control w/debian/control
index cd108ca1..f947d0d2 100644
--- i/debian/control
+++ w/debian/control
@@ -48,6 +48,7 @@ Recommends:
  file
 Replaces: ocaml-interp (<< 3.11.1-3)
 Breaks:
+ dh-ocaml (<< 1.0.0),
  ocaml-interp (<< 3.11.1-3),
  camlp4 (<< 3.10.0),
  camlidl (<< 1.04)



Reply to: