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

Re: debian packaging of findlib



On Fri, Feb 16, 2001 at 09:33:28PM +0100, Gerd Stolpmann wrote:
> I am willing to include such changes into the findlib source; other packagers
> will probably have similar problems. Of course, I need your exact requirements. 
> I suppose you want the following features:
> 
> - The possibility to set a default package path which is compiled into
>   ocamlfind; not only a single base directory.
> 
>   For Debian, this default path would be /usr/xxx:/usr/local/xxx.
> 
> - The possibility to specify the default installation directory independently.
>   
>   For Debian, the default installation dir is /usr/local/xxx.
> 
>   However, it must be possible to override this spec in "ocamlfind install",
>   so the packagers can still install into /usr/xxx. This could be determined by
>   an environment variable.

For debian packaging the requirement are like this:
- possibility to set the installation dir (as you say), better if we can
  do it on cmdline with a parameter to ocamlfind
  This parameter is only used to override the compiled default.

  the reason is that in the process of doing debian packaging, there is
  the need of install the files in a temporary directory relative to the
  current dir; so, having such a option is really usefull

- possibility of adding package to the knowledge of ocamlfind, and seems
  that is not a problem, we just have to install the files in a dir that
  is in the sight of ocamlfind

- have a system wide OCAMLPATH and an user defined OCAMLPATH. We use the
  systemwide OCAMLPATH as a default where ocamlfind look to when no user
  defined path is specified and we leave to the user the freedom of
  install modules wherever he need (also his home dir).
  For the system wide OCAMLPATH two choice:
  - compiled in ocamlfind (but it is restrictive a lot)
  - a configuration file (best choice) like /etc/ocamlfind.conf that
	contain a line like "OCAMLPATH=..."
	I prefer a configuration file instead of a environment variable
	cause there is not a system wide configuration file for environment
	variables (e.g. /etc/profile is used by bash but not by tcsh), the
	user may override this PATH with env variable OCAMLPATH

So, in practice, two changes to ocamlfind: a cmdline par for overriding
the target installation dir and a configuration file that set OCAMLPATH.

What you think about this ?

-- 
	- Zack -

Stefano Zacchiroli <zacchiro@cs.unibo.it> ICQ# 33538863
Home Page: http://www.students.cs.unibo.it/~zacchiro
Undergraduate Student of Computer Science at University of Bologna, Italy
SysAdm of verdicchio.students.cs.unibo.it (130.136.3.134)
	"Information wants to be Open"



Reply to: