Re: Able to build 0.3.5 release src, unable to build SVN src



Hi

Had the same problem.
Unfortunately I did not really save the proper procedure for what I did
to solve it.


You need to modify the gnome-doc-utils.make file and ensure that the
syntax is correct.
The IF statements should be preceeded with a <TAB>
and changed to be proper IF ENDIF.

I'll attach a diff, which is properly not correct, but could be used as
a reference.

/Bengt

On Wed, 2007-03-21 at 10:46 -0400, Richard Bronosky wrote:
> That got me past the autogen.  Now during the make, I'm getting and
> error out of gnome-doc-utils.make that is ungooglable.
> 
> rbronosky IT-f1-rbronosky-p:~/development/f-spot/trunk$ make
> cd . && autoheader
> make  all-recursive
> make[1]: Entering directory `/home/rbronosky/development/f-spot/trunk'
> Making all in dbus-sharp
> make[2]: Entering directory
> `/home/rbronosky/development/f-spot/trunk/dbus-sharp'
> gmcs -debug -target:library -out:NDesk.DBus.dll -unsafe  -r:Mono.Posix
> ./Address.cs                     ./AssemblyInfo.cs
> ./Authentication.cs             ./Bus.cs
> ./BusObject.cs                  ./Connection.cs
> ./DBus.cs                       ./DProxy.cs
> ./ExportObject.cs
>                 ./Introspection.cs              ./Mapper.cs
>          ./MatchRule.cs                  ./Message.cs
>   ./MessageFilter.cs       ./MessageReader.cs
> ./MessageWriter.cs              ./Protocol.cs
> ./Server.cs                     ./Signature.cs
> ./SocketTransport.cs              ./Transport.cs
> ./UnixNativeTransport.cs        ./UnixTransport.cs
> ./Wrapper.cs
> make[2]: Leaving directory `/home/rbronosky/development/f-spot/trunk/dbus-sharp'
> Making all in dbus-sharp-glib
> make[2]: Entering directory
> `/home/rbronosky/development/f-spot/trunk/dbus-sharp-glib'
> gmcs -debug -target:library -out:NDesk.DBus.GLib.dll
> -r:../dbus-sharp/NDesk.DBus.dll ./AssemblyInfo.cs
> ./GLib.IO.cs                    ./GLib.cs
> make[2]: Leaving directory
> `/home/rbronosky/development/f-spot/trunk/dbus-sharp-glib'
> Making all in docs
> make[2]: Entering directory `/home/rbronosky/development/f-spot/trunk/docs'
> ../gnome-doc-utils.make:474: *** missing separator.  Stop.
> make[2]: Leaving directory `/home/rbronosky/development/f-spot/trunk/docs'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rbronosky/development/f-spot/trunk'
> make: *** [all-recursive-am] Error 2
> 
> 
> 
--- ./gnome-doc-utils.make.orig	2007-03-11 12:05:26.000000000 +0900
+++ ./gnome-doc-utils.make	2007-03-17 20:13:42.000000000 +0900
@@ -60,10 +60,10 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
 	cp $  tmp $@ && rm -f $  tmp
 
 dist-check-gdu:
-if !HAVE_GNOME_DOC_UTILS
-	@echo "*** GNOME Doc Utils must be installed in order to make dist"
-	@false
-endif
+	if !HAVE_GNOME_DOC_UTILS
+		@echo "*** GNOME Doc Utils must be installed in order to make dist"
+		@false
+	endif
 
 .PHONY: dist-doc-header
 dist-doc-header: $(DOC_H_FILE)
@@ -116,6 +116,8 @@ _DOC_REAL_LINGUAS = $(if $(filter enviro
 	$(filter $(LINGUAS),$(DOC_LINGUAS)),					\
 	$(DOC_LINGUAS))
 
+_DOC_ABS_SRCDIR = @abs_srcdir@
+
 
 ################################################################################
 ## Variables for Bootstrapping
@@ -145,13 +147,13 @@ db2omf_args =									\
 	--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2)))	\
 	--stringparam db2omf.omf_dir "$(OMF_DIR)"				\
 	--stringparam db2omf.help_dir "$(HELP_DIR)"				\
-	--stringparam db2omf.omf_in "`pwd`/$(_DOC_OMF_IN)"			\
+	--stringparam db2omf.omf_in "$(_DOC_OMF_IN)"				\
 	--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)"		\
 	$(_db2omf) $(2)
 
 ## @ _DOC_OMF_IN
 ## The OMF input file
-_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).omf.in))
+_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
 
 ## @ _DOC_OMF_DB
 ## The OMF files for DocBook output
@@ -287,11 +289,7 @@ $(_DOC_POFILES):
 	fi;
 	@docs=; \
 	list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
-	  if test -f $$doc; then \
-	    docs="$$docs ../$$doc"; \
-	  else \
-	    docs="$$docs ../$(srcdir)/$$doc"; \
-	  fi; \
+	  docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
 	done; \
 	if ! test -f $@; then \
 	  echo "(cd $(dir $@) && \
@@ -312,8 +310,7 @@ $(_DOC_POFILES):
 $(_DOC_LC_DOCS) : $(_DOC_POFILES)
 $(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
 	if ! test -d $(dir $@); then mkdir $(dir $@); fi
-	case "$(srcdir)" in /*) sd="$(srcdir)";; *) sd="../$(srcdir)";;	esac; \
-	if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$$sd/"; fi; \
+	if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
 	(cd $(dir $@) && \
 	  $(_xml2po) -e -p \
 	    "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
@@ -345,11 +342,11 @@ $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC
 
 ################################################################################
 
-if ENABLE_SK
-_ENABLE_SK = true
-else
-_ENABLE_SK = false
-endif
+	if "x$(ENABLE_SK)" == "x"; then _ENABLE_SK = false; else _ENABLE_SK = true; fi
+#_ENABLE_SK = true
+#else
+#_ENABLE_SK = false
+#endif
 
 all:							\
 	$(_DOC_C_DOCS)		$(_DOC_LC_DOCS)		\


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]