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

Re: debian ocaml packaging policy :: findlib->site-lib



On Mon, Dec 29, 2008 at 10:59:50PM +0100, Florent Monnier wrote:
> You are misunderstanding what I am talking about.
> The issue is not to know what `ocamlc -where` is bound to,
> first I don't need to know that at all, all I need is to know is that it is 
> `ocamlc -where` and nothing more,
> second if I was willing to know that, it is written in the policy.

ACK, I understand your problem now: you wanna know where the heck the
default "site-lib" directory of findlib is ended up in Debian. Shout
if this is not the case.

> This is not true.
> 
> if the ./configure of findlib is passed the parameter -sitelib `ocamlc -where` 
> (or equivalent), then all the libs installed with findlib will be installed 
> in :
>    `ocamlc -where`/somelib/
> 
> if you don't provide this parameter, then all the libs installed with findlib 
> will be installed in :
>    `ocamlc -where`/site-lib/somelib/
> 
> This won't affect findlib users. But users that don't use findlib will need to 
> know the path (I don't mean the path of `ocamlc -where` but the path 
> provided for -sitelib in the ./configure).
> In one case a non-findlib user will have to use -I +site-lib/somelib/
> OR -I +somelib/

Proposal ahead. What if we provide a symbolic link as follows:

`ocamlc -where`/site-lib -> `ocamlc -where`

?

This way it will work both for people looking under `ocamlc -where`
and +site-lib.  The only fear I've is ocamlc starting to complain
about "interface defined in multiple directories", maybe someone can
try it out creating the symlink and seeing what happens.

... and then yes, I now agree that we should write in the policy where
+site-lib ended up in Debian. Can you please propose a wording, better
a patch for the current policy? That would be really kind of you :)

> >        , and we are not changing that.
> you do provide the -sitelib parameter to the configure, so this is not the 
> default, so you do are changing something.

Yes, the point (affecting also further comments of yours that I'll
skip) is that before this last explanation I misunderstood which
default where we talking about.

> Again, I really don't care about what `ocamlc -where` is bound to.
> You are misunderstanding there.
> Sorry if I was not clear, I hope it will be now.

Indeed it is.

> A good idea would probably be that the different Linux distros align
> them about this. And this was what Mandriva chose to do. Mandriva
> packagers chose to align on Debian. So they did use the default
> `ocamlc -where`/site-lib thinking that this was what Debian was
> doing. But Debian don't use this path, it uses `ocamlc -where`.  So
> why this mistake ?  - because it was not clear ! It is written
> nowhere !  And now the poor student has to rewrite the Makefiles :-)

Well, yours explanation for the mistake is an interesting one, but I
don't buy it :) They could have asked here in the first place as you
did :), but let's fix things for the future, it is not such a big deal
after all.

Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime

Attachment: signature.asc
Description: Digital signature


Reply to: