[Spice-devel] spice-gtk 0.14 can't be built outside the source tree

Andrew Hughes gnu.andrew at redhat.com
Fri Jan 4 08:59:59 PST 2013


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130104/a0c38949/attachment-0001.bin>


More information about the Spice-devel mailing list