GNU bug report logs - #10894
Mixed C-Vala projects distcheck is broken

Previous Next

Package: automake;

Reported by: Quentin Glidic <sardemff7+gnu <at> sardemff7.net>

Date: Sun, 26 Feb 2012 23:18:02 UTC

Severity: normal

Tags: patch

Found in version 1.11.3

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 10894 in the body.
You can then email your comments to 10894 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#10894; Package automake. (Sun, 26 Feb 2012 23:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Quentin Glidic <sardemff7+gnu <at> sardemff7.net>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Sun, 26 Feb 2012 23:18:02 GMT) Full text and rfc822 format available.

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

From: Quentin Glidic <sardemff7+gnu <at> sardemff7.net>
To: bug-automake <at> gnu.org
Subject: Mixed C-Vala projects distcheck is broken
Date: Sun, 26 Feb 2012 22:12:50 +0100
[Message part 1 (text/plain, inline)]
Package: automake
Version: 1.11.3

Hello,

The distcheck of a project which mix C and Vala targets in the same 
Makefile.am leads to a pass of C targets to valac, which is completely 
wrong and fails if you put your headers in _SOURCES (valac ignores *.c 
files only).

Attached a patch that limits the vala stamps’ generation to targets with 
*.vala file.

-- 

Quentin "Sardem FF7" Glidic
[0001-vala-Fix-mixed-C-Vala-projects-distcheck.patch (text/x-patch, attachment)]

Information forwarded to bug-automake <at> gnu.org:
bug#10894; Package automake. (Mon, 27 Feb 2012 21:37:02 GMT) Full text and rfc822 format available.

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

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Quentin Glidic <sardemff7+gnu <at> sardemff7.net>
Cc: 10894 <at> debbugs.gnu.org, automake-patches <at> gnu.org
Subject: Re: bug#10894: Mixed C-Vala projects distcheck is broken
Date: Mon, 27 Feb 2012 22:33:05 +0100
[Message part 1 (text/plain, inline)]
Hi Quentin, thanks for the report.

On 02/26/2012 10:12 PM, Quentin Glidic wrote:
> Package: automake
> Version: 1.11.3
> 
> Hello,
> 
> The distcheck of a project which mix C and Vala targets in the same Makefile.am
> leads to a pass of C targets to valac, which is completely wrong and fails if
> you put your headers in _SOURCES (valac ignores *.c files only).
>
This is bad.  We had a test in the automake testsuite that tried to build a
project with mixed C/Vala sources, but it didn't use a C header as well :-(

I've thus added a new test case that exposes the bug (see the first attached
patch).

> Attached a patch that limits the vala stamps’ generation to targets with
> *.vala file.
>
Unfortunately, your patch doesn't seem to fix the issue.  I've attached a
second patch that seems to do the trick.  It will appear in the next automake
version (1.12) unless there are objections.

Thanks,
  Stefano


[0001-vala-expose-automake-bug-10894.patch (text/x-diff, attachment)]
[0002-vala-fix-valac-calls-for-projects-with-mixed-Vala-C.patch (text/x-diff, attachment)]

Information forwarded to bug-automake <at> gnu.org:
bug#10894; Package automake. (Wed, 29 Feb 2012 18:55:01 GMT) Full text and rfc822 format available.

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

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Quentin Glidic <sardemff7+gnu <at> sardemff7.net>
Cc: 10894 <at> debbugs.gnu.org, automake-patches <at> gnu.org
Subject: Re: bug#10894: Mixed C-Vala projects distcheck is broken
Date: Wed, 29 Feb 2012 19:53:46 +0100
tags 10894 patch
close 10894
thanks

On 02/27/2012 10:33 PM, Stefano Lattarini wrote:

> [PATCH 1/2] vala: expose automake bug#10894
>
> * tests/vala-mix2.test: New test.
> * tests/list-of-tests.mk: Add it.
> * tests/Makefile.am (XFAIL_TESTS): Likewise.
> * THANKS: Update.

> [PATCH 2/2] vala: fix 'valac' calls for projects with mixed Vala/C
>
> Fixes automake bug#10894.
>
> * automake.in (lang_vala_finish_target): Strip non-vala files
> from the dependencies of vala stamps, and from the invocation
> of valac compiler.  Related refactorings.
> * tests/Makefile.am (XFAIL_TESTS): Remove 'vala-mix2.test'.

I've pushed these patches to maint, and merged maint into master.
I'm thus closing this bug report.

Regards,
  Stefano




Added tag(s) patch. Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 29 Feb 2012 18:55:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 10894 <at> debbugs.gnu.org and Quentin Glidic <sardemff7+gnu <at> sardemff7.net> Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 29 Feb 2012 18:55:02 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. (Thu, 29 Mar 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 177 days ago.

Previous Next


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