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

Re: Buglet in ocaml-ldconf



Sven Luther <luther@lambda.u-strasbg.fr> writes:

> On Wed, May 15, 2002 at 12:29:46PM -0600, Matt Armstrong wrote:
>> 
>> Yes, I ran into this myself.  I'd be nice if hand installed
>> packages were supported easily (through findlib or other ways),
>> since we can't expect all ocaml packages to have .debs.
>
> There is the README.Debian file, the ocaml-ldconf man page and the
> debian packaging policy, not speaking about the online help of
> ocaml-ldconf, which all tell you explicitly to modify
> /etc/ocaml/ld.conf, or are you telling me you did read neither of
> those, nor the discution we had here about it previously, nor even
> the comment on top of the /usr/lib/ocaml/ld.conf file ?
>
> I wonder what i write documentation for then, maybe i should use my
> time for more important things if nobody ever reads it.

Your documentation allowed me to figure things out when they went
wrong.

But things went wrong because the install procedures for
non-Debianized ocaml packages somehow find /usr/lib/ocaml/ld.conf and
think they can modify it.  This is not ideal no matter how well it is
documented.  :-)


>> findlib touches /var/lib/ocaml/ld.conf, which is a generated file in
>> Debian.  Ideally the Debian's findlib should be patched to not do
>> this.
>
> Yes, this would be good, and maybe resolve the problems Sergio was
> speaking about.

Maybe even go one more and "hide" /var/lib/ocaml/ld.conf from even
non-findlib installs.  Make them think ld.conf lives somewhere else.
Then ocaml-ldconf can merge the changes into the real ld.conf in a
controlled way.

But I'm not sure it is possible to "trick" packages in this way.  I
see that OcamlMakefile likes to use "ocamlc -where" to find ld.conf.
But on a packaged managed system like Debian, there are really two
questions, not one:

    "where" is the ld.conf that ocamlc uses at runtime?

    "where" is the ld.conf that packages should modify at install
    time?

Maybe ocamlc needs an -install-where option.


>> Perhaps findlib could add entries to a new
>> /etc/ocaml/findlib-ld.conf file that ocaml-ldconf reads when
>> creating /var/lib/ocaml/ld.conf.
>
> Why not the simple /etc/ocaml/ld.conf ?

I didn't suggest it because /etc/ocaml/ld.conf seems to have a
different syntax so packages thinking they are editing a real ld.conf
may mess things up.  Is this a real problem, or am I confused?


Stefano Zacchiroli <zack@debian.org> writes:

> On Thu, May 16, 2002 at 08:25:59AM +0200, Sven Luther wrote:
>
>> Mmm, maybe we should make findlib aware of the /etc/ocaml/ld.conf file ?
>
> As stated in another mail, findlib is already /etc/ocaml/ld.conf
> aware!  Just set CAMLLIB=/etc/ocaml while doing "ocamlfind install"
> and findlib will add lines to ld.conf. This is good for manually
> installed stuff (which Claudio likes really much ;-) but for debian
> package the right solution is use /var/lib/ocaml/ld.conf (or better
> use a single directory for all .so ...).

The CAMLLIB variable is a nice workaround.  I like the idea of making
it the default such that setting CAMLLIB is unnecessary for manual
installs.  You suggested this later, and I agree with it.


-- 
Don't send mail to Earl.Hendrix@hole.lickey.com
The address is there for spammers to harvest.


-- 
To UNSUBSCRIBE, email to debian-ocaml-maint-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: