[Mono-bugs] [Bug 74487][Maj] Changed - mkbundle doesn't bundle (some) config files
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 11 Apr 2005 11:13:56 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74487
--- shadow/74487 2005-04-08 20:47:41.000000000 -0400
+++ shadow/74487.tmp.9681 2005-04-11 11:13:56.000000000 -0400
@@ -37,6 +37,19 @@
http://primates.ximian.com/~miguel/tmp/mono-1.1.6.5.tar.gz
Let me know if this solves the problem.
Am setting the bug status to `NEEDINFO', please close it if this
fixes the issue.
+
+------- Additional Comments From lupus@ximian.com 2005-04-11 11:13 -------
+The correct way to deal with this issue is to set the MONO_CFG_DIR
+environment var to point to a directory with the config files you want
+to ship with your bundled app. You then can easy add a script that
+sets the var and invokes the app or even set the var in main() just before
+the mono initialization. The directory should have the same structure
+as the existing $prefix/etc/mono.
+One of the reasons the mkbundle hack miguel added is not correct is
+that some of the code in the assemblies (the security and the sys.web
+code, for example) will load the file by name anyway and it would be
+a lot of work to fix that with no gain (including exporting new icalls
+from corlib...).