new packages uploaded ...
Hello to all ...
I just did upload ocaml 3.04-2, ocaml-doc 3.04-1, lablgl 0.97-1 and lablgtk
1.2.3-1 to ftp master's incomming.
The packages are also available from my ftp site :
ftp://lambda.u-strasbg.fr/debian/3.04
I hope they are all ok, but please test them as you see fit.
I have splitted ocaml into ocaml and ocaml-base, the later containing
ocamlrun, its manpage and the dlls.
I have splitted lablgl and lablgtk accordingly, between a normal package and a
-runtime package. the -runtime package has only the dlls, and nothing more.
Dependency wise, i did things as follows :
ocaml conflicts, replaces and provides ocaml-base and camlp4.
lablgl conflicts, replaces and provides lablgl-runtime.
lablgtk conflicts, replaces and provides lablgtk-runtime.
lablgl-runtime depends on ocamlbase | ocaml.
lablgtk-runtime depends on ocaml-base | ocaml, lablgl | lablgl-runtime.
lablgtk depends on lablgl and ocaml.
As you see, we are forced to add alternative dependency, since apparently dpkg
will not install a package if it depends on a package A, which is provided by
B and B is installed. I don't know if this is the wrong behavior or what, but
it is not what i have expected. Maybe we should need a virtual package or
something such.
All of you having library packages can check on lablgl and take inspiration
there. Still it may not be the most perfect way of doing it, any comment are
welcome.
Also, all library packages providing dlls in a separate (sub)dir should
register this directory with /usr/lib/ocaml/ld.conf. I have done this in a
postinst/prerm as follows :
postinst :
echo "/usr/lib/ocaml/lablgl" >>/usr/lib/ocaml/ld.conf
prerm :
grep -v "/usr/lib/ocaml/lablgl" /usr/lib/ocaml/ld.conf \
>/usr/lib/ocaml/ld.conf.debian
mv /usr/lib/ocaml/ld.conf.debian /usr/lib/ocaml/ld.conf
Which again, may not be the nicest of solution, but does the job.
(especially it will break if two packages provides dlls in the same subdir and
you remove one of them).
The default content of /usr/lib/ocaml/ld.conf, as set by the ocaml or
ocaml-base packages is just /usr/lib/ocaml and /usr/lib/ocaml/labltk. The
former is not a default dir, altough in a mail exchange with Xavier, he told
me that it was. It is not in the documentation though.
Also you have to do this postinst/prerm for both the normal and the -runtime
packages.
Ok, that's all for now, i wish you a happy christmas and good new year (or
however you say that in english).
A yes, i almost forgot, for obvious reasons, i will be offline until january
2/3. I may be able to do some debian work and check on mail on december 26 or
27 though, but not sure. So feel free to NMU as required if something breaks
very badly (altough i think not). Please send me a mail about it though, so i
will not be lost when i come back.
Friendly,
Sven Luther
Reply to: