Bug 319376 (MONO76529) - [PATCH] cygwin: mono_set_rootdir issue
Summary: [PATCH] cygwin: mono_set_rootdir issue
Status: RESOLVED FIXED
Alias: MONO76529
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 03:08 UTC by Robert Jordan
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
rootdir.diff (1.95 KB, patch)
2005-10-24 03:08 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:36:01 UTC


---- Reported by robertj@gmx.net 2005-10-23 20:08:03 MST ----

Under Cygwin, the mono root dir is computed from the current
executable file name (see os/win32/util.c: mono_set_rootdir ()).

This doesn't work, if the executable is not in Mono's bin dir, as
it happens to libmono embedders.

The patch enables embedders to call mono_assembly_setrootdir ()
before creating the first app domain.

W/out the patch, mono_assembly_setrootdir's work will be
overwritten by mono_set_rootdir ().



---- Additional Comments From robertj@gmx.net 2005-10-23 20:08:55 MST ----

Created an attachment (id=168718)
rootdir.diff




---- Additional Comments From miguel@ximian.com 2005-11-01 17:16:48 MST ----

An alternative patch has been checked in, it should do what you want
now (and also makes Mono relocatable on Linux/Solaris)

Imported an attachment (id=168718)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>cygwin</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".