spice-gtk 0.14 can't be built outside the source tree

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

 



See https://bugs.gentoo.org/show_bug.cgi?id=446586

The paths to the vala source files in gtk/controller/Makefile.am don't specify the
source directory.  This is fine when the build and source directories are the same,
but fails when they are different.

It works in the .c case as the source list is expanded by make into multiple invocations
of the rule.

.c.o:
        $(AM_V_CC)$(COMPILE) -c $<

and there is an include directive to the source directory.

In the vala case, it includes the source list as is:

controller.vala.stamp: $(libspice_controller_la_VALASOURCES) custom.vapi
        @if test -z "$(VALAC)"; then \
		echo "" ; \
                echo "  *** Error: missing valac!" ; \
                echo "  *** You must run autogen.sh or configure --enable-vala" ; \
                echo "" ; \
                exit 1 ; \
        fi
        $(VALA_V)$(VALAC) $(VALAFLAGS) $(AM_VALAFLAGS) $(libspice_controller_la_VALASOURCES) -H spice-controller.h

A fix is attached.

Thanks,
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07

--- gtk/controller/Makefile.am~	2012-08-30 10:23:16.000000000 +0100
+++ gtk/controller/Makefile.am	2012-12-31 06:39:34.809326096 +0000
@@ -23,10 +23,10 @@
 noinst_PROGRAMS = test-controller spice-controller-dump
 
 libspice_controller_la_VALASOURCES =		\
-	menu.vala				\
-	controller.vala				\
-	foreign-menu.vala			\
-	util.vala				\
+	$(srcdir)/menu.vala			\
+	$(srcdir)/controller.vala		\
+	$(srcdir)/foreign-menu.vala		\
+	$(srcdir)/util.vala			\
 	$(NULL)
 
 libspice_controller_la_BUILT_SOURCES =			\
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]