[Mono-docs-list] Build Problems

Hector E. Gomez Morales hectoregm at gmail.com
Tue Oct 11 21:17:13 EDT 2005


Hi:

Playing with monodoc and mono-tools I have encountered two possible problems
with the build. First I have mono, gtk-sharp, monodoc and mono-tools from
svn. Gtk-sharp from svn installs in $prefix/lib/pkgconfig all the
foo-2.0.pcconfig files, so after I got installed monodoc, when I try
to
autogen.sh in mono-tools I get an error about not having installed
gtk-sharp. A quick view to config.log confirms that the configure script
wants config files of type foo.pc and not the ones that are installed like
foo-2.0.pc. Another quick view of configure.in <http://configure.in/>presents:

#PKG_CHECK_MODULES(GTK_SHARP, glade-sharp-2.0 gnome-sharp-2.0
gconf-sharp-2.0 gtkhtml-sharp-2.0, enable_gtks=yes, enable_gtks=no)
#if test "x$enable_gtks" = "xno" ; then
PKG_CHECK_MODULES(GTK_SHARP, glade-sharp gnome-sharp gconf-sharp
gtkhtml-sharp, enable_gtks=yes, enable_gtks=no)
if test "x$enable_gtks" = "xno" ; then
AC_MSG_ERROR([gtk-sharp not found])
fi
#fi

So for some reason the line to get the right configs is commented and one if
block is commented too that will be of use to fallback if the 2.0.pc config
are not found.
To use gecko-sharp is the same thing, configure asks for gecko equal to
version 0.6 but I got the svn version (0.10) and changing the configure to
use gecko-sharp-2.0.pc I can run monodoc with no apparent breakage.
So my question is this a conscious decision to use an older gtk-sharp and
gecko-sharp to build the gui to monodoc?
Another bug is that when a make distclean is done in mono-tools the
monodoc.in <http://monodoc.in/> file is deleted from the source and this is
well very bad.
That is all, I have attached a little patch that in my opinion fixes both
errors.


---------------- patch ----------------
Index: configure.in <http://configure.in>
===================================================================
--- configure.in <http://configure.in> (revision 51646)
+++ configure.in <http://configure.in> (working copy)
@@ -33,16 +33,16 @@
PKG_CHECK_MODULES(NUNIT, mono-nunit)
AC_SUBST(NUNIT_LIBS)

-#PKG_CHECK_MODULES(GTK_SHARP, glade-sharp-2.0 gnome-sharp-2.0
gconf-sharp-2.0 gtkhtml-sharp-2.0, enable_gtks=yes, enable_gtks=no)
-#if test "x$enable_gtks" = "xno" ; then
+PKG_CHECK_MODULES(GTK_SHARP, glade-sharp-2.0 gnome-sharp-2.0
gconf-sharp-2.0 gtkhtml-sharp-2.0, enable_gtks=yes, enable_gtks=no)
+if test "x$enable_gtks" = "xno" ; then
PKG_CHECK_MODULES(GTK_SHARP, glade-sharp gnome-sharp gconf-sharp
gtkhtml-sharp, enable_gtks=yes, enable_gtks=no)
if test "x$enable_gtks" = "xno" ; then
AC_MSG_ERROR([gtk-sharp not found])
fi
-#fi
+fi
AC_SUBST(GTK_SHARP_LIBS)

-PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp = 0.6, enable_gecko=yes,
enable_gecko=no)
+PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0, enable_gecko=yes,
enable_gecko=no)
AC_SUBST(GECKO_SHARP_LIBS)
AM_CONDITIONAL(ENABLE_GECKO, test "x$enable_gecko" = "xyes")

Index: docbrowser/Makefile.am
===================================================================
--- docbrowser/Makefile.am (revision 51646)
+++ docbrowser/Makefile.am (working copy)
@@ -11,7 +11,7 @@
endif


-DISTCLEANFILES = AssemblyInfo.cs monodoc.desktop monodoc.in<http://monodoc.in>
+DISTCLEANFILES = AssemblyInfo.cs monodoc.desktop

bin_SCRIPTS = monodoc

Sorry for the duplicate mails I saw in the archives that my mail didn't get
through in good shape so I re-submited.

Hector
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-docs-list/attachments/20051012/c3e8acf1/attachment.html


More information about the Mono-docs-list mailing list