GNOME Bugzilla – Bug 668104
Vala packages should be checked only when building from git
Last modified: 2016-03-31 13:53:59 UTC
E.g. they shouldn't be checked when building from a tarball
Created attachment 205455 [details] [review] build: only check for Vala packages when building from Vala
I agree with the change itself but I think we should steal the RYGEL_CHECK_VALA() macro from rygel which AFAICT more complete, tested and reduces the needed changes in configure.ac.
(In reply to comment #2) > I agree with the change itself but I think we should steal the > RYGEL_CHECK_VALA() macro from rygel which AFAICT more complete, tested and > reduces the needed changes in configure.ac. I just looked at this macro. It does things I am not sure we need, --enable-strict-vala can be done differently with VALAFLAGS="--fatal-warnings" (also it's bad to use a different naming) Checking the stamp files in configure is perhaps not a bad idea. Hardcoding gupnp-vala is certainly not a good idea. Also, if the macro proved to be useful among several projects, it's best to make it part of vala.m4 itself, instead of copy & modify everywhere, but that can be done as part of this bug. I think we could go with Stefano patch for now, but if Stefano is up to the task then great :)
Created attachment 205620 [details] [review] build: improve the build from vala Hi, this is a cut-n-paste of some relevant parte of Rygel build system, adapted to Boxes. If something like this is to be included in vala.m4, probabily some fixes for the VALA_CHECK macro are required to allow for (optional) additional package checks (e.g. gupnp in Rygel)
Review of attachment 205620 [details] [review]: looks good, minor comment bellow ::: Makefile.am @@ +54,1 @@ what is this line for?
(In reply to comment #5) > ::: Makefile.am > @@ +54,1 @@ > > > what is this line for? Actually a leftover :) I was just a bit concerned in removing that line from the list of files to be deleted
Created attachment 205628 [details] [review] build: improve the build from vala
Review of attachment 205628 [details] [review]: ack
diff --git a/autogen.sh b/autogen.sh index ad5c1e9..018607b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -9,5 +9,5 @@ autoreconf -v --force --install intltoolize -f if [ -z "$NOCONFIGURE" ]; then - "$srcdir"/configure --enable-maintainer-mode ${1+"$@"} + "$srcdir"/configure --enable-vala --enable-maintainer-mode ${1+"$@"} fi This bit was in the first iterations but then went missing, I think we still need it, don't we ?
(In reply to comment #9) > diff --git a/autogen.sh b/autogen.sh > index ad5c1e9..018607b 100755 > --- a/autogen.sh > +++ b/autogen.sh > @@ -9,5 +9,5 @@ autoreconf -v --force --install > intltoolize -f > > if [ -z "$NOCONFIGURE" ]; then > - "$srcdir"/configure --enable-maintainer-mode ${1+"$@"} > + "$srcdir"/configure --enable-vala --enable-maintainer-mode ${1+"$@"} > fi > > This bit was in the first iterations but then went missing, I think we still > need it, don't we ? Indeed we do. I talked to Stefano about it on IRC but then forgot about it. :(
I have the build error (configure error) checking for BOXES... yes configure: WARNING: Missing stamp file ./src/gnome_boxes_vala.stamp. Forcing vala mode ./configure: line 16562: syntax error near unexpected token `newline' ./configure: line 16562: ` VALA_CHECK_PACKAGES(' It seems to do with this change. Anything I can do to fix this? (I'm using git master, shouldn't that be clear).
Have you rerun autogen.sh?
Yes
Hmm maybe try git clean -dfx; ./autogen.sh (warning: git clean -dfx will permanently delete all files from the gnome-boxes directory that are not tracked by git)
Same problem. Note that this was the first time I've tried to compile gnome-boxes from git, so in principle no leftovers should be there... (Note that I changed your command to "git clean -dfx; PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./autogen.sh" because GTK is compoled from source and installed in /usr/local. Are there any needs for the vala version (I compiled latest release 0.15.1) to let this work?
These VALA macros are defined in m4/boxes.m4 so vala shouldn't be needed at all for them to get expanded correctly. Can you give the whole autogen.sh log?
Created attachment 206877 [details] Output from augogen.sh (and ./configure)
Created attachment 206878 [details] config.log