GNU bug report logs - #13002
directory variables in VALAFLAGS are expanded after cd

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: Daiki Ueno <ueno@HIDDEN>; dated Mon, 26 Nov 2012 11:06:02 UTC; Maintainer for automake is bug-automake@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Nov 2012 11:05:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 26 06:05:44 2012
Received: from localhost ([127.0.0.1]:39285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TcwVU-00061T-0F
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 06:05:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36128)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <ueno@HIDDEN>) id 1TcwVR-00061L-4H
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 06:05:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ueno@HIDDEN>) id 1TcwTi-0007Of-Hk
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 06:03:58 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:37731)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ueno@HIDDEN>) id 1TcwTi-0007Ob-EY
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 06:03:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50887)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ueno@HIDDEN>) id 1TcwTY-00020W-Lf
	for bug-automake@HIDDEN; Mon, 26 Nov 2012 06:03:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ueno@HIDDEN>) id 1TcwTX-0007LX-O5
	for bug-automake@HIDDEN; Mon, 26 Nov 2012 06:03:44 -0500
Received: from du-a.org ([219.94.251.20]:47899 helo=www6246ue.sakura.ne.jp)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ueno@HIDDEN>) id 1TcwTX-0007LP-El
	for bug-automake@HIDDEN; Mon, 26 Nov 2012 06:03:43 -0500
Message-ID: <87pq30d3sl.fsf-ueno@HIDDEN>
From: Daiki Ueno <ueno@HIDDEN>
To: bug-automake@HIDDEN
Subject: directory variables in VALAFLAGS are expanded after cd
Date: Mon, 26 Nov 2012 20:03:38 +0900
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Hi,

I see quite a few Vala projects setting VALAFLAGS as follows:

libfolks_eds_la_VALAFLAGS = \
        --vapidir=. \
        --vapidir=$(top_srcdir)/folks \
        ...

This is referred by the generated rule in Makefile.in as:

$(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(libfolks_eds_la_VALAFLAGS) $(VALAFLAGS) -C $(libfolks_eds_la_SOURCES)

Here, if $(srcdir) != $(builddir) and $(top_srcdir) is a relative path
from $(builddir), the --vapidir option will point to a wrong location.

Though this could be worked around by using $(abs_top_srcdir) instead of
$(top_srcdir), it looks to me a bit unintuitive.  It would be nice that
automake handles this case nicely.

Regards,
-- 
Daiki Ueno




Acknowledgement sent to Daiki Ueno <ueno@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#13002; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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