GNU bug report logs - #12522
automake tests require obsolete vala posix profile

Previous Next

Package: automake;

Reported by: Pavel Raiskup <praiskup <at> redhat.com>

Date: Wed, 26 Sep 2012 15:57:02 UTC

Severity: normal

Tags: moreinfo, patch

Merged with 12934

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12522 in the body.
You can then email your comments to 12522 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-automake <at> gnu.org:
bug#12522; Package automake. (Wed, 26 Sep 2012 15:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pavel Raiskup <praiskup <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Wed, 26 Sep 2012 15:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pavel Raiskup <praiskup <at> redhat.com>
To: bug-automake <at> gnu.org
Subject: Problem with automake tests for vala
Date: Wed, 26 Sep 2012 10:04:15 +0200
[Message part 1 (text/plain, inline)]
Hi,

because valac's developers dropped POSIX profile:

   commit ca020bf04a09fe16e5583eea5a3a341e7796bff5

.. there is a problem with automake testsuite in:

   $ grep -r '\-\-profile=posix' .
   ./vala-libs.sh:libmu_a_VALAFLAGS = --profile=posix --vapidir=$(srcdir)
   ./vala-mix.sh:AM_VALAFLAGS = --profile=posix
   ./vala-parallel.sh:#AM_VALAFLAGS = --profile=posix
   ./vala-mix2.sh:AM_VALAFLAGS = --profile=posix
   ./vala-vpath.sh:AM_VALAFLAGS = --profile=posix
   ./vala-vapi.sh:AM_VALAFLAGS = --profile=posix

Configure then fails with:

   error: Unknown profile posix

Testsuite log from Fedora Rawhide (vala-0.18.0) attached.  Unfortunately,
I don't know much about vala to be able fix this problem.

Pavel

[attachement-vala (text/plain, attachment)]

Information forwarded to bug-automake <at> gnu.org:
bug#12522; Package automake. (Thu, 27 Sep 2012 08:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 12522 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Pavel Raiskup <praiskup <at> redhat.com>
Cc: vala-list <at> gnome.org, 12522 <at> debbugs.gnu.org
Subject: Re: bug#12522: Problem with automake tests for vala
Date: Thu, 27 Sep 2012 10:52:03 +0200
Reference: <http://debbugs.gnu.org/12522>

On 09/26/2012 10:04 AM, Pavel Raiskup wrote:
> Hi,
> 
> because valac's developers dropped POSIX profile:
> 
>    commit ca020bf04a09fe16e5583eea5a3a341e7796bff5
> 
> .. there is a problem with automake testsuite in:
> 
>    $ grep -r '\-\-profile=posix' .
>    ./vala-libs.sh:libmu_a_VALAFLAGS = --profile=posix --vapidir=$(srcdir)
>    ./vala-mix.sh:AM_VALAFLAGS = --profile=posix
>    ./vala-parallel.sh:#AM_VALAFLAGS = --profile=posix
>    ./vala-mix2.sh:AM_VALAFLAGS = --profile=posix
>    ./vala-vpath.sh:AM_VALAFLAGS = --profile=posix
>    ./vala-vapi.sh:AM_VALAFLAGS = --profile=posix
> 
> Configure then fails with:
> 
>    error: Unknown profile posix
> 
> Testsuite log from Fedora Rawhide (vala-0.18.0) attached.  Unfortunately,
> I don't know much about vala to be able fix this problem.
>
Me neither, actually.  We could copy the idioms used in the other vala tests
(using pkg-config to find gobject-2.0, like it's done in, say, 't/vala5.sh'),
but maybe there is a simpler solution that would require less churn.  I'm
CC:ing the Vala mailing list in the hope that someone there has a suggestion
on how to best tackle this issue.

Thanks,
  Stefano




Severity set to 'minor' from 'normal' Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 27 Sep 2012 08:53:02 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 27 Sep 2012 08:53:02 GMT) Full text and rfc822 format available.

Changed bug title to 'automake tests require obsolete vala posix profile' from 'Problem with automake tests for vala' Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 19 Nov 2012 19:16:02 GMT) Full text and rfc822 format available.

Forcibly Merged 12522 12934. Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 19 Nov 2012 19:16:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-automake <at> gnu.org:
bug#12522; Package automake. (Mon, 26 Nov 2012 14:08:02 GMT) Full text and rfc822 format available.

Message #19 received at 12522 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: automake-patches <at> gnu.org
Cc: 12934 <at> debbugs.gnu.org, 12522 <at> debbugs.gnu.org
Subject: [FYI] {maint} vala tests: don't use the 'posix' profile,
	it's no longer supported
Date: Mon, 26 Nov 2012 15:05:04 +0100
Fixes automake bug#12934 a.k.a. bug#12522.

Some of automake's Vala tests used to rely on "valac --profile posix"
(which makes it not use glib).  However, the posix profile was removed
in August 2012, and is no longer present in the GNOME 3.6.2 version
of valac (see commit ca020bf0 in the vala Git repository).

Signed-off-by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

* t/vala-libs.sh: Adjust to avoid using the posix profile.
* t/vala-mix.sh: Likewise.
* t/vala-mix2.sh: Likewise.
* t/vala-parallel.sh: Likewise.
* t/vala-vapi.sh: Likewise.
* t/vala-vpath.sh: Likewise.
* NEWS: Update and adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini <at> gmail.com>
---

 With this, I'm closing bugs reports 12934 and 12522.

 NEWS               | 22 ++++++++++++++++------
 t/vala-libs.sh     |  2 +-
 t/vala-mix.sh      | 10 ++++++----
 t/vala-mix2.sh     |  6 ++++--
 t/vala-parallel.sh |  6 ++++--
 t/vala-vapi.sh     | 13 ++++++++-----
 t/vala-vpath.sh    |  8 +++++---
 7 files changed, 44 insertions(+), 23 deletions(-)

diff --git a/NEWS b/NEWS
index 0c28316..1065d5c 100644
--- a/NEWS
+++ b/NEWS
@@ -63,12 +63,7 @@ New in 1.12.6:
 
 Bugs fixed in 1.12.6:
 
-* Bugs introduced in 1.12.5:
-
-  - The maintainer rebuild rules for Makefiles and aclocal.m4 in Automake's
-    own build system works correctly again.
-
-* Long-standing bugs:
+* Python-related bugs:
 
   - The default installation location for python modules has been improved
     for Python 3 on Debian and Ubuntu systems, changing from:
@@ -86,6 +81,21 @@ Bugs fixed in 1.12.6:
   - Python byte-compilation supports the new layout mandated by PEP-3147,
     with its __pycache__ directory (automake bug#8847).
 
+* Build system issues:
+
+  - The maintainer rebuild rules for Makefiles and aclocal.m4 in
+    Automake's own build system works correctly again (bug introduced
+    in Automake 1.12.5).
+
+* Testsuite issues:
+
+  - The Vala-related tests has been changed to adjust to the removal of
+    the 'posix' profile in the valac compiler.  See automake bug#12934
+    a.k.a. bug#12522.
+
+  - Some spurious testsuite failures related to older tools and systems
+    have been fixed.
+
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 New in 1.12.5:
diff --git a/t/vala-libs.sh b/t/vala-libs.sh
index c38740f..852051b 100755
--- a/t/vala-libs.sh
+++ b/t/vala-libs.sh
@@ -36,7 +36,7 @@ lib_LIBRARIES = libmu.a
 lib_LTLIBRARIES = src/libzardoz.la
 libmu_a_SOURCES = mu.vala mu2.c mu.vapi mu2.h
 libmu_a_CPPFLAGS = -DOKOKIMDEFINED=1
-libmu_a_VALAFLAGS = --profile=posix --vapidir=$(srcdir)
+libmu_a_VALAFLAGS = --vapidir=$(srcdir)
 AM_CFLAGS = $(GOBJECT_CFLAGS)
 src_libzardoz_la_LIBADD = $(GOBJECT_LIBS)
 src_libzardoz_la_SOURCES = src/zardoz-foo.vala src/zardoz-bar.vala
diff --git a/t/vala-mix.sh b/t/vala-mix.sh
index 5e2e7ce..44b5a3b 100755
--- a/t/vala-mix.sh
+++ b/t/vala-mix.sh
@@ -16,23 +16,25 @@
 
 # Vala sources and C sources in the same program.  Functional test.
 
-required='valac cc GNUmake'
+required='valac cc pkg-config GNUmake'
 . test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
 AM_PROG_CC_C_O
 AM_PROG_VALAC([0.7.3])
+PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.4])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = zardoz mu baz
-AM_VALAFLAGS = --profile=posix
+AM_CFLAGS = $(GOBJECT_CFLAGS)
+LDADD = $(GOBJECT_LIBS)
 zardoz_SOURCES = foo.vala bar.c
 mu_SOURCES = 1.vala 2.c
-mu_VALAFLAGS = $(AM_VALAFLAGS) --main=run
-mu_CFLAGS = -DHAVE_MU
+mu_VALAFLAGS = --main=run
+mu_CFLAGS = -DHAVE_MU $(AM_CFLAGS)
 baz_SOURCES = baz.c
 END
 
diff --git a/t/vala-mix2.sh b/t/vala-mix2.sh
index 9b2402d..3e823e2 100755
--- a/t/vala-mix2.sh
+++ b/t/vala-mix2.sh
@@ -17,19 +17,21 @@
 # Vala sources, C and C++ sources and C and C++ headers in the same
 # program.  Functional test.  See automake bug#10894.
 
-required='valac cc c++ GNUmake'
+required='valac cc c++ pkg-config GNUmake'
 . test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
 AC_PROG_CXX
 AM_PROG_VALAC([0.7.3])
+PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.4])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = zardoz
-AM_VALAFLAGS = --profile=posix
+AM_CFLAGS = $(GOBJECT_CFLAGS)
+zardoz_LDADD = $(GOBJECT_LIBS)
 zardoz_SOURCES = zardoz.vala foo.h bar.c baz.c zen.hh master.cxx
 END
 
diff --git a/t/vala-parallel.sh b/t/vala-parallel.sh
index c71420a..b68d762 100755
--- a/t/vala-parallel.sh
+++ b/t/vala-parallel.sh
@@ -16,19 +16,21 @@
 
 # Vala support with parallel make.
 
-required='valac cc GNUmake'
+required='valac cc pkg-config GNUmake'
 . test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
 AC_PROG_CXX
+PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.4])
 AM_PROG_VALAC([0.7.3])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = zardoz
-AM_VALAFLAGS = --profile=posix
+AM_CFLAGS = $(GOBJECT_CFLAGS)
+LDADD = $(GOBJECT_LIBS)
 zardoz_SOURCES = main.vala 1.vala 2.vala 3.vala 4.vala 5.vala 6.vala
 END
 
diff --git a/t/vala-vapi.sh b/t/vala-vapi.sh
index f006832..545a0ea 100755
--- a/t/vala-vapi.sh
+++ b/t/vala-vapi.sh
@@ -16,27 +16,30 @@
 
 # Test and that vapi files are correctly handled by Vala support.
 
-required='valac cc GNUmake'
+required='pkg-config valac cc GNUmake'
 . test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
 AM_PROG_CC_C_O
 AM_PROG_VALAC([0.7.3])
+PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.4])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = zardoz
-AM_VALAFLAGS = --profile=posix
+AM_CFLAGS = $(GOBJECT_CFLAGS)
+LDADD = $(GOBJECT_LIBS)
 zardoz_SOURCES = zardoz.vala foo.vapi foo.h
 END
 
 cat > zardoz.vala <<'END'
-int main ()
-{
+using GLib;
+public class Zardoz {
+  public static void main () {
     stdout.printf (BARBAR);
-    return 0;
+  }
 }
 END
 
diff --git a/t/vala-vpath.sh b/t/vala-vpath.sh
index 7428b97..7e2a984 100755
--- a/t/vala-vpath.sh
+++ b/t/vala-vpath.sh
@@ -17,21 +17,23 @@
 # Test to make sure vala support handles from-scratch VPATH builds.
 # See automake bug#8753.
 
-required="cc valac GNUmake"
+required="cc valac pkg-config GNUmake"
 . test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SRCDIR([hello.vala])
 AC_PROG_CC
 AM_PROG_VALAC([0.7.3])
+PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.4])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = foo bar
-AM_VALAFLAGS = --profile=posix
+AM_CFLAGS = $(GOBJECT_CFLAGS)
+LDADD = $(GOBJECT_LIBS)
 foo_SOURCES = hello.vala
-bar_VALAFLAGS = $(AM_VALAFLAGS) -H zardoz.h
+bar_VALAFLAGS = -H zardoz.h
 bar_SOURCES = goodbye.vala
 END
 
-- 
1.8.0.1.240.ge8a1f5a





Added tag(s) patch. Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 26 Nov 2012 14:08:04 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12934 <at> debbugs.gnu.org and Adam Sampson <ats <at> offog.org> Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 26 Nov 2012 14:08:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 25 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.