[Pkg-mono-devel] Nemerle

Paolo Molaro lupus@ximian.com
Thu, 5 Feb 2004 19:57:29 +0100


On 02/03/04 Eduard Bloch wrote:
> That is correct. Mono currently has (IMHO) no sane system for search in
> the library path. There is no concurent version concept (to have
> multiple incompatible versions of some DLL), and there is no good way to
> tell the compiler/mono where your libs are (except of setting MONO_PATH
> which is a crude method).
> 
> Correct me if I am wrong. Miguel has a different opinion but I guess he
> never tried to create distributable _and_ stable packages from the
> stuff.

As you know, the plan is to implement the GAC, it just has not been
coded yet.

>  - depend on cli-virtual-machine to get the interpreter (called via
>    /usr/bin/cli which itself is a symlink to the best VM, configured by
>    update-alternatives)

Per policy that should be: mono-jit | cli-virtual-machine (assuming
mono-jit provides cli-virtual-machine, since it is one).

>  - depend on mono-assemblies-arch if you use System.Drawing (this is a
>    provisoric solution)

A tool could be written which scans the dependencies of the built
assemblies and sets a var for the right packages, like nm/ldd is used for
shared libraries.
You can take the output from monodis --assemblyref, grep for Name=
and use that info.

> 9.9 Environment variables
> 
> A program must not depend on environment variables to get reasonable defaults. (That's because these environment variables would have to be set in a system-wide configuration file like /etc/profile, which is not supported by all shells.)
> 
> and we cannot fix it right now. Maybe with the MONO_PATh workaround

Note that the policy applies for programs supplied with the distribution
($prefix == /usr) and in that case, if nemerle is installed in /usr, it
would work without setting MONO_PATH. The same happens with normal
shared libraries which don't work on a default debian install if you put
them in /usr/local (you need to change ld.so.conf).

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better