[Mono-bugs] [Bug 52227][Wis] New - mono doesn't honors my sysconfdir wishes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 May 2004 01:27:05 -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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52227

--- shadow/52227	2004-05-12 01:27:05.000000000 -0400
+++ shadow/52227.tmp.31361	2004-05-12 01:27:05.000000000 -0400
@@ -0,0 +1,81 @@
+Bug#: 52227
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details: NetBSD-current
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: recht@netbsd.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono  doesn't honors my sysconfdir wishes
+
+Description of Problem:
+mono's build always adds a "/mono" after the given sysconfdir. If I
+configure mono eg. with --sysconfdir=/opt/etc/mono I end up with
+/opt/etc/mono/mono.
+For package systems like NetBSD's pkgsrc this is really undesirable.
+
+The following patch makes mono fully respect the sysconfdir.
+
+Steps to reproduce the problem:
+build and install mono
+
+Actual Results:
+mono add /mono to the given sysconfdir
+
+Expected Results:
+mono respects my sysconfdir wishes without adding anything to it
+
+How often does this happen? 
+every time
+
+Additional Information:
+diff -ur mono-0.29.orig/data/Makefile.in mono-0.29/data/Makefile.in
+--- mono-0.29.orig/data/Makefile.in 2003-11-30 13:29:55.000000000 +0100
++++ mono-0.29/data/Makefile.in   2003-12-16 12:14:05.000000000 +0100
+@@ -117,7 +117,7 @@
+ libgc_dir = @libgc_dir@
+ libmono_cflags = @libmono_cflags@
+ libmono_ldflags = @libmono_ldflags@
+-monodir = $(sysconfdir)/mono
++monodir = $(sysconfdir)
+ 
+ EXTRA_DIST = config.in machine.config DefaultWsdlHelpGenerator.aspx
+ 
+diff -ur mono-0.29.orig/mono/metadata/icall.c mono-0.29/mono/metadata/icall.c
+--- mono-0.29.orig/mono/metadata/icall.c  2003-11-26 19:33:10.000000000 +0100
++++ mono-0.29/mono/metadata/icall.c 2003-12-16 11:54:05.000000000 +0100
+@@ -3958,7 +3958,7 @@
+ 
+   MONO_ARCH_SAVE_REGS;
+ 
+-  path = g_build_path (G_DIR_SEPARATOR_S, mono_cfg_dir, "mono",
+"machine.config", NULL);
++  path = g_build_path (G_DIR_SEPARATOR_S, mono_cfg_dir, "machine.config",
+NULL);
+ 
+ #if defined (PLATFORM_WIN32)
+   /* Avoid mixing '/' and '\\' */
+diff -ur mono-0.29.orig/mono/metadata/mono-config.c
+mono-0.29/mono/metadata/mono-config.c
+--- mono-0.29.orig/mono/metadata/mono-config.c  2003-09-04
+21:46:43.000000000 +0200
++++ mono-0.29/mono/metadata/mono-config.c 2003-12-16 11:53:51.000000000 +0100
+@@ -258,7 +258,7 @@
+ 
+   /* Ensure mono_cfg_dir gets a value */
+   mono_install_get_config_dir ();
+-  mono_cfg = g_build_filename (mono_cfg_dir, "mono", "config", NULL);
++  mono_cfg = g_build_filename (mono_cfg_dir, "config", NULL, NULL);
+   mono_config_parse_file (mono_cfg);
+   g_free (mono_cfg);
+
+------- Additional Comments From miguel@ximian.com  2004-05-12 01:27 -------
+This is a design feature, since most people use --sysconfdir=/etc