Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446586 - net-misc/spice-gtk-0.14-r1 - /usr/bin/valac-0.14: error: menu.vala not found
Summary: net-misc/spice-gtk-0.14-r1 - /usr/bin/valac-0.14: error: menu.vala not found
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-09 11:46 UTC by Maciej Piechotka
Modified: 2013-01-16 23:17 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-misc:spice-gtk-0.14-r1:20121209-113825.log.gz (net-misc:spice-gtk-0.14-r1:20121209-113825.log.gz,22.31 KB, application/x-gzip)
2012-12-10 00:16 UTC, Maciej Piechotka
Details
Naive version bump of ebuild that resolves the vala build issue with softlinks. (spice-gtk-0.15.ebuild,4.44 KB, text/plain)
2012-12-25 21:42 UTC, Keith Amidon
Details
Makefile.am fix (patch,478 bytes, patch)
2013-01-04 16:45 UTC, Andrew John Hughes
Details | Diff
Makefile.am fix (with full path) (patch,508 bytes, patch)
2013-01-04 16:47 UTC, Andrew John Hughes
Details | Diff
Revised fix (0.14-446586-fix_srcdir_builddir_issue.patch,513 bytes, patch)
2013-01-05 19:14 UTC, Andrew John Hughes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2012-12-09 11:46:41 UTC
make[4]: Entering directory `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/sp
ice-gtk-0.14_gtk2/gtk/controller'
/usr/bin/valac-0.14  --pkg gio-2.0 --pkg spice-protocol --vapidir=/var/tmp/porta
ge/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/data --pkg custom --vapidir=/v
ar/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/controller -C 
 menu.vala controller.vala foreign-menu.vala util.vala  -H spice-controller.h
error: menu.vala not found
error: controller.vala not found
error: foreign-menu.vala not found
error: util.vala not found
Compilation failed: 4 error(s), 0 warning(s)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-09 19:57:16 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Maciej Piechotka 2012-12-10 00:16:09 UTC
Created attachment 331904 [details]
net-misc:spice-gtk-0.14-r1:20121209-113825.log.gz

(In reply to comment #1)
> 1) Please post your `emerge --info' output in a comment.

Portage 2.2.0_alpha145 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.16.0, 3.6.10-pf x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.6.10-pf-x86_64-Intel-R-_Core-TM-_i7-3820QM_CPU_@_2.70GHz-with-gentoo-2.2
Timestamp of tree: Sun, 09 Dec 2012 05:45:01 +0000
ld GNU ld (Linux/GNU Binutils) 2.23.51.0.6.20121123
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.5
sys-devel/binutils:       2.23.51.0.6
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r5::gnome
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo crossdev gnome x11 gentoo-haskell gamerlay local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb -w -Wa,--compress-debug-sections"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -ggdb -w -Wa,--compress-debug-sections"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="-j4 --load-average=7"
FCFLAGS="-O2 -march=native -pipe -ggdb -w -Wa,--compress-debug-sections"
FEATURES="assume-digests binpkg-logs clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -march=native -pipe -ggdb -w -Wa,--compress-debug-sections"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--add-needed -Wl,--hash-style=both -Wl,--sort-common -Wl,--no-keep-memory"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-crossdev /var/lib/layman/gnome /var/lib/layman/x11 /var/lib/layman/haskell /var/lib/layman/gamerlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx berkdb bluetooth branding bzip2 bzr c++0x cairo caps cdda cdr cli clutter colord cracklib crypt cryptsetup cups cxx dbus dconf debugger device-mapper dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox firewalld flac flash fontconfig fortran fprint fuse g3dvl gdbm gdm gif git gmp gnome gnome-keyring gnome-online-accounts gnutls gpm grilo gsettings gstreamer gtk gtk3 gtkstyle gui iconv introspection ipsec ipv6 ipython irc ithreads jabber jpeg kerberos laptop latex lcms ldap libkms libnotify libproxy llvm lvm lzma mad map mercurial mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nsplugin ogg opencl opengl openmp oss pam pango parted pch pcre pdf perl pkcs11 png policykit postgres ppds pppd profiler pulseaudio python qemu qt4 readline realtime samba sdl session sna socialweb spell spice sqlite sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg symlink systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb v4l vaapi vala vdpau virt-network virtfs virtualbox vorbis vpx webkit wxwidgets x264 xattr xcb xcomposite xinerama xml xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps crypt lvm systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev synaptics mouse mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pl en_GB" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm x86_64 i386" QEMU_USER_TARGETS="arm x86_64 i386" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/spice-gtk-0.14 was built with the following:
USE="gstreamer gtk3 introspection (multilib) policykit pulseaudio python vala -doc -sasl -smartcard -static-libs -usbredir"
Comment 3 Marek Bartosiewicz 2012-12-10 07:32:12 UTC
Same here:

[ebuild     U  ] net-misc/spice-gtk-0.14-r1 [0.14] USE="introspection policykit pulseaudio python vala -doc -gstreamer* -gtk3 -sasl -smartcard -static-libs -usredir" 1,177 kB

-------------

Portage 2.1.11.36 (default/linux/amd64/10.0/desktop/gnome, gcc-4.7.2, glibc-2.16.0, 3.7.0-rc8 x86_64)
=================================================================
System uname: Linux-3.7.0-rc8-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_840_@_1.87GHz-with-gentoo-2.2
Timestamp of tree: Mon, 10 Dec 2012 07:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p39
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r5::gnome
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo mv systemd xarthisius gnome x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="gentoo.prz.rzeszow.pl"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mv /var/lib/layman/systemd /var/lib/layman/xarthisius /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 archive artworkextra avahi berkdb bluetooth bluray branding bzip2 cairo cdda cdr cli conntrack consolekit cracklib crypt cryptsetup cups cxx dbus dconf device-mapper djvu dri dts dvd dvdr edit eds emboss encode evo exif extra fam fbcon ffmpeg firefox flac fontconfig g3dvl games gbm gd gdbm gdu gif git glchess gmp gnome gnome-keyring gnome-online-accounts gnutls gphoto2 gpm graphics graphite graphviz gs gstreamer gtk gtk3 hpijs humanities iconv icu imagemagick infinality ithreads jabber jpeg jpeg2k justify lame lcdfilter lcms libkms libnotify libsamplerate lzma lzo mad minizip mmx mmxext mng modemmanager modules mono mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nsplugin ntp offensive ogg openal opengl openmp pam pango pcap pcre pdf perl png policykit ppds pppd previewer publishers pulseaudio python python3 qemu qt4 r600-llvm-compiler rdesktop readline ruby samba science sdl session shared-dricore slang slp smp snmp socialweb spell spice sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg symlink t1lib taglib tcpd threads tiff truetype udev udisks unicode upower usb vaapi vala virt-network vorbis wavpack wifi wxwidgets x264 xa xcb xcomposite xindy xinerama xml xorg xpm xv xvfb xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------------

In file included from /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/spice-common/common/lz.c:496:0:
/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/spice-common/common/lz_compress_tmpl.c: In function ‘lz_rgb_alpha_compress’:
/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/spice-common/common/lz_compress_tmpl.c:486:18: warning: assignment from incompatible pointer type [enabled by default]
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99  -O2 -pipe -march=corei7 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7  -Wl,-O1 -Wl,--as-needed -o libspice-common.la  backtrace.lo canvas_utils.lo lines.lo log.lo lz.lo marshaller.lo mem.lo pixman_utils.lo quic.lo region.lo rop3.lo ssl_verify.lo
libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libspice-common.a .libs/backtrace.o .libs/canvas_utils.o .libs/lines.o .libs/log.o .libs/lz.o .libs/marshaller.o .libs/mem.o .libs/pixman_utils.o .libs/quic.o .libs/region.o .libs/rop3.o .libs/ssl_verify.o
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libspice-common.a
libtool: link: ( cd ".libs" && rm -f "libspice-common.la" && ln -s "../libspice-common.la" "libspice-common.la" )
make[5]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/spice-common/common'
make[4]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/spice-common/common'
make[4]: Wejście do katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/spice-common'
make[4]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/spice-common'
make[3]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/spice-common'
make[2]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/spice-common'
Making all in gtk
make[2]: Wejście do katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/gtk'
glib-mkenums --fhead "#ifndef SPICE_GLIB_ENUMS_H\n" \
                --fhead "#define SPICE_GLIB_ENUMS_H\n\n" \
                --fhead "G_BEGIN_DECLS\n\n" \
                --ftail "G_END_DECLS\n\n" \
                --ftail "#endif /* SPICE_CHANNEL_ENUMS_H */\n" \
                --eprod "#define SPICE_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
                --eprod "GType @enum_name@_get_type (void);\n" \
        /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-channel.h /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/channel-inputs.h /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-session.h >  spice-glib-enums.h
glib-genmarshal --header /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-marshal.txt > spice-marshal.h || (rm -f spice-marshal.h && exit 1)
glib-mkenums --fhead "#ifndef SPICE_WIDGET_ENUMS_H\n" \
                --fhead "#define SPICE_WIDGET_ENUMS_H\n\n" \
                --fhead "G_BEGIN_DECLS\n\n" \
                --ftail "G_END_DECLS\n\n" \
                --ftail "#endif /* SPICE_WIDGET_ENUMS_H */\n" \
                --eprod "#define SPICE_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
                --eprod "GType @enum_name@_get_type (void);\n" \
        /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-widget.h >  spice-widget-enums.h
echo "#include \"spice-marshal.h\"" > spice-marshal.c && \
        glib-genmarshal --body /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-marshal.txt >> spice-marshal.c || (rm -f spice-marshal.c && exit 1)
glib-mkenums --fhead "#include <glib-object.h>\n" \
                --fhead "#include \"spice-widget-enums.h\"\n\n" \
                --fprod "\n#include \"spice-widget.h\"\n" \
                --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
                --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
                --vtail "  { 0, NULL, NULL }\n};\n\n" \
                --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
                --vtail "  static GType type = 0;\n\n" \
                --vtail "  if (!type)\n" \
                --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
                --vtail "  return type;\n}\n\n" \
        /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-widget.h > spice-widget-enums.c
glib-mkenums --fhead "#include <glib-object.h>\n" \
                --fhead "#include \"spice-glib-enums.h\"\n\n" \
                --fprod "\n#include \"spice-session.h\"\n" \
                --fprod "\n#include \"spice-channel.h\"\n" \
                --fprod "\n#include \"channel-inputs.h\"\n" \
                --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
                --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
                --vtail "  { 0, NULL, NULL }\n};\n\n" \
                --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
                --vtail "  static GType type = 0;\n\n" \
                --vtail "  if (!type)\n" \
                --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
                --vtail "  return type;\n}\n\n" \
        /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-channel.h /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/channel-inputs.h /var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/spice-session.h spice-glib-enums.h > spice-glib-enums.c
make  all-recursive
make[3]: Wejście do katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/gtk'
Making all in controller
make[4]: Wejście do katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/gtk/controller'
/usr/bin/valac-0.14  --pkg gio-2.0 --pkg spice-protocol --vapidir=/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/data --pkg custom --vapidir=/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14/gtk/controller -C  menu.vala controller.vala foreign-menu.vala util.vala  -H spice-controller.h
error: menu.vala not found
error: controller.vala not found
error: foreign-menu.vala not found
error: util.vala not found
Compilation failed: 4 error(s), 0 warning(s)
make[4]: *** [controller.vala.stamp] Błąd 1
make[4]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/gtk/controller'
make[3]: *** [all-recursive] Błąd 1
make[3]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/gtk'
make[2]: *** [all] Błąd 2
make[2]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2/gtk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/net-misc/spice-gtk-0.14-r1/work/spice-gtk-0.14_gtk2'
make: *** [all] Błąd 2
 * ERROR: net-misc/spice-gtk-0.14-r1 failed (compile phase):
 *   emake failed
Comment 4 Maciej Piechotka 2012-12-10 08:25:49 UTC
It's triggered by USE=vala.
Comment 5 Keith Amidon 2012-12-25 21:42:07 UTC
Created attachment 333346 [details]
Naive version bump of ebuild that resolves the vala build issue with softlinks.
Comment 6 Keith Amidon 2012-12-25 21:43:16 UTC
I looked into this briefly since it was affecting me.  The problem appears to be the fact that separate gtk, gtk2, and gtk3 builds are done attempting to use the same source files (from the gtk build) by adding VPATH directives to the gtk2 and gtk3 makefiles.  The way the vala compilation is done the VPATH is not being searched for the source files.

I'm sure there is a way to modify the Makefiles to do the right thing with the VPATH but it wasn't immediately obvious to me.  I instead just soft-linked the source .vala files into the appropriate directory for the gtk2 and gtk3 builds.

For what it is worth I've attached a modified ebuild with this change and a naive version bump to spice-gtk-0.15.  No one should confuse this for a proper version of the ebuild but it might get things working until someone with more Gentoo ebuild expertise can look at the problem.
Comment 7 Juergen Rose 2012-12-27 15:54:41 UTC
The new ebuild works here.
Comment 8 Andrew John Hughes 2013-01-04 16:45:53 UTC
Created attachment 334440 [details, diff]
Makefile.am fix

Specify source directory explicitly when calling valac rather than assuming srcdir != builddir
Comment 9 Andrew John Hughes 2013-01-04 16:47:55 UTC
Created attachment 334442 [details, diff]
Makefile.am fix (with full path)

Use full path in patch.
Comment 10 Andrew John Hughes 2013-01-04 16:51:33 UTC
I've attached the correct fix which should probably go upstream.

They don't handle the situation where srcdir != builddir correctly.  Presumably, they don't run make distclean as that would also fail.

They specify the vala sources in the same way as they specify the C sources.  The difference is that the C rule is of the form where the make rule is invoked once for each C source file, so make expands the list of sources and adds the full path.  The valac rule just uses the sources list inline as all .vala files are passed to the compiler at once.

This works fine when the source and build directory are the same as the source files will be in the same directory.  When they are different, the source files can't be found.  Explicitly setting the srcdir will fix this.  In the srcdir = builddir case, $(srcdir) will just be . and so it should still work.
Comment 11 Andrew John Hughes 2013-01-05 19:14:10 UTC
Created attachment 334564 [details, diff]
Revised fix

While that fix works in the Makefile, it fails doing a clean build with a patched Makefile.am as the sources are used to generate C source file names.  This revised patch adds the srcdir in the valac invocation instead.
Comment 12 Andrew John Hughes 2013-01-05 19:16:53 UTC
My version of the ebuild:

https://bitbucket.org/gnu_andrew/fixes-overlay/commits/68780d725b88e2309b9f3884f1682710
Comment 13 Russell Knighton 2013-01-06 12:27:53 UTC
(In reply to comment #11)
> Created attachment 334564 [details, diff] [details, diff]
> Revised fix
> 
> While that fix works in the Makefile, it fails doing a clean build with a
> patched Makefile.am as the sources are used to generate C source file names.
> This revised patch adds the srcdir in the valac invocation instead.

Thanks Andrew - works for me.

Hope to see this in the tree shortly.
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2013-01-12 21:50:17 UTC
(In reply to comment #11)
> Created attachment 334564 [details, diff] [details, diff]
> Revised fix
> 
> While that fix works in the Makefile, it fails doing a clean build with a
> patched Makefile.am as the sources are used to generate C source file names.
> This revised patch adds the srcdir in the valac invocation instead.

Please submit this upstream.
Comment 15 Fabio Bonfante 2013-01-16 23:17:53 UTC
JFYI still the same with 0.14-r2