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

Bug#599215: Homonymous modules that will conflict in META makes dh-ocaml choke.



Package: dh-ocaml
Version: 1.0.0~6
Severity: normal


I've been working on an OCaml-Python binding. An I'm currently trying to create
Debian packages for it. As Python may have multiple binaries for different versions
of the interpreter, from 2.4 to 3.2, I'm trying to generate automatically packages
libpython2.4-ocaml-dev to libpython3.2-dev.

As it would impossible to load simultaneously two different versions of the python
interpreter shared library, it seems natural that these different packages conflict
in META files (not in Debian's control file).

However, there will be, in each of these libpythonX.X-ocaml-dev packages, an
oCamlPython.cm[xo] binary/bytecode, without the oCamlPython.cmi file. This is to
be able to load statically the interpreter. Much like the lablgtk.init findlib package.

I would not like to be able to rename the oCamlPython files upstream (although I will
presumably be forced to). Keep in mind that they cannot be loaded simultaneously because
of the META file conflict. The problem is that dh-ocaml fails with

dh_ocaml -s 
E: Error: unit OCamlPython exported in libpython3.2-ocaml-dev v0.90-2 but already exported by libpython-ocaml-dev v0.90-1
E: Error running /usr/bin/ocaml-md5sums  --md5sums-dir debian/libpython3.2-ocaml-dev//var/lib/ocaml/md5sums --md5sums-dir debian/libpython2.5-ocaml-dev//var/lib/ocaml/md5sums --md5sums-dir debian/libpython2.6-ocaml-dev//var/lib/ocaml/md5sums --md5sums-dir debian/libpython3.1-ocaml-dev//var/lib/ocaml/md5sums --md5sums-dir debian/libpython2.7-ocaml-dev//var/lib/ocaml/md5sums --md5sums-dir debian/libpython2.4-ocaml-dev//var/lib/ocaml/md5sums --load-info debian/libpython3.2-ocaml-dev.oinfo.debhelper dep at /usr/bin/dh_ocaml line 448.
make: *** [common-binary-predeb-arch] Erreur 255
dpkg-buildpackage: erreur: fakeroot debian/rules binary a produit une erreur de sortie de type 2

which is quite a pain.

Debian packagin can be found at:

	http://yziquel.homelinux.org/gitweb/?p=ocaml-python.git;a=shortlog;h=refs/heads/debian

(when it's online...)

(BTW: Using Stéphane Glondu's 3.12 repo for doing everything, in the doubtful case that it may help.)

Best regards,

Guillaume Yziquel.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (700, 'stable'), (500, 'stable'), (90, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

dh-ocaml depends on no packages.

Versions of packages dh-ocaml recommends:
ii  debhelper                    8.0.0       helper programs for debian/rules
ii  ocaml-nox                    3.12.0-1~38 ML implementation with a class-bas

Versions of packages dh-ocaml suggests:
ii  git [git-core]               1:1.7.1-1.1 fast, scalable, distributed revisi
ii  git-core                     1:1.7.1-1.1 fast, scalable, distributed revisi

-- no debconf information



Reply to: