[Mono-list] Some ideas for dotgnu.

Pokey the Penguin pokey@linuxmail.org
23 Jan 2003 02:11:11 +0000


On Wed, 2003-01-22 at 16:40, Erik Bågfors wrote:
> The compiler has a few nice options.
> 
>   -gtk               Link against the Gtk# libraries
>   -gnome             Link against the Gnome# libraries

These switches don't really belong in the compiler. The compiler is
potentially for use in any environment (Win32, MacOS X) so favouritism
doesn't make sense.

> ilrun also has a few nice arguments.
> ilrun --register     Registers ilrun in the linux kernel so you just 
>                      can run the executable without typing ilrun
> 
> this can also be used to register mono
> ilrun --register /usr/bin/mono

This is a good idea, but it should not be implemented at the runtime
level. Every distribution handles BINFMT_MISC registration in a
different way; for example, Debian uses the binfmt-support registry
system and the Mono Debian packages register with it to achieve the same
effect more elegantly.
 
> the dotgnu compiler also creates it's exe's with +x so you don't need to
> chmod every file.

This still needs to be implemented with Mono. It will probably need a
hack in the runtime's Reflection.Emit code. Of course since it won't
work on Win32 and C# has no *nix permissions support, it'll have to be
handled as a special case. Any takers?

> ilrun also starts wine if the exe isn't a IL program. I really don't
> think this belongs in the ilrun/mono-program but in a separate program.
> I remember reading about a program like that, does it exist?

The Debian binfmt-misc handler has already been updated to handle this
case. Again, it's a job for distributors like Debian and RedHat rather
than developers like Mono. It needs to be implemented at the platform
level and with the cooperation of several projects.