Bug#555814: "race condition" between ocaml.mk and debhelper.mk
Package: dh-ocaml
Version: 0.9.3
Severity: normal
File: /usr/share/cdbs/1/rules/ocaml.mk
Currently, to use CDBS' classes ocaml.mk and debhelper.mk together, one should
have ocaml.mk occurring before debhelper.mk in order to have some
.debhelper.log files cleaned up properly upon clean.
Unfortunately, that has a side-effect, namely that dh_ocamldoc is called
*before* dh_install. That, in turn, means that dh_ocamldoc will not have access
to stuff installed in packages by dh_install: either your package install
everything via its "make install", or you provide appropriate includes to
dh_ocamldoc, or you're screwed :-), in the sense that ocamldoc will not find
some objects.
I think the appropriate fix is to keep as the best practice order first
debhelper.mk then ocaml.mk (so that dh_ocamldoc is not a problem) and
additionally implement in ocamlinit.mk the appropriate cleaning of
*.debhelper.log that are create by dh_ocaml itself. (That would also be more
clean, in the sense that debhelper.mk will no longer be a "dependency" of
ocaml.mk.)
Cheers.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
dh-ocaml depends on no packages.
Versions of packages dh-ocaml recommends:
ii ocaml-nox 3.11.1-4 ML implementation with a class-bas
dh-ocaml suggests no packages.
-- no debconf information
Reply to: