GNU bug report logs - #14561
GNU make specific stuff cannot be used in RHS of "TESTS ="

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; Severity: wishlist; Reported by: Marko Lindqvist <cazfi74@HIDDEN>; merged with #13771; dated Wed, 5 Jun 2013 19:25:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Changed bug title to 'GNU make specific stuff cannot be used in RHS of "TESTS ="' from 'GNU make specific stuff cannot be used in RHS of "TESTS =" 13771' Request was from Stefano Lattarini <stefano.lattarini@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'GNU make specific stuff cannot be used in RHS of "TESTS =" 13771' from 'GNU make specific stuff cannot be used in RHS of "TESTS ="' Request was from Stefano Lattarini <stefano.lattarini@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'GNU make specific stuff cannot be used in RHS of "TESTS ="' from 'TESTS set from patsubst result in unterminated variable reference' Request was from Stefano Lattarini <stefano.lattarini@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 13771 14561. Request was from Stefano Lattarini <stefano.lattarini@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 14561) by debbugs.gnu.org; 8 Jun 2013 09:57:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 08 05:57:08 2013
Received: from localhost ([127.0.0.1]:57662 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UlFtT-00021f-3V
	for submit <at> debbugs.gnu.org; Sat, 08 Jun 2013 05:57:08 -0400
Received: from mail-wg0-f43.google.com ([74.125.82.43]:47452)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <stefano.lattarini@HIDDEN>)
	id 1UlFtQ-000213-0j; Sat, 08 Jun 2013 05:57:05 -0400
Received: by mail-wg0-f43.google.com with SMTP id x12so3755828wgg.22
	for <multiple recipients>; Sat, 08 Jun 2013 02:56:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:mime-version:to:cc:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	bh=mJB9sQRsJiW5aoRQd85hrnSGtE79z7pO0Mka5oFWsoo=;
	b=AQuwT5pqjYXE32VP8KRuojuHp9SzcqtdVnMNEA3+3ZxkOyUiHRe/9J8ki9z7K+CycZ
	q6gy/gJuxIf7t+tdEsm5POAERtSe+zMMEIle4rwjJ/W8hX08SVttNtqNlfFbh+LWcIqq
	1A/GBGr8sdB57RCmo/SDTy0RugHXQ8e1ZygpaAHswpPFJyWVWMGiTni7SVqyzFtay/UD
	3b9ATfeQL/M9nYIVfBq/FrhCBudQt+AZU0tF6MsEdhv7utJ9AxkJtLRsn8tc7tzxA9TU
	Lxlu/Mlsu0SNb4zKropnj0pMAnR2nCjcqHpfyz81a8brRLblK3YbzbJZTzftoyloY2fx
	1m1Q==
X-Received: by 10.194.134.73 with SMTP id pi9mr1322093wjb.38.1370685413060;
	Sat, 08 Jun 2013 02:56:53 -0700 (PDT)
Received: from [192.168.178.20]
	(host93-95-dynamic.6-79-r.retail.telecomitalia.it. [79.6.95.93])
	by mx.google.com with ESMTPSA id eq15sm1536907wic.4.2013.06.08.02.56.51
	for <multiple recipients>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Sat, 08 Jun 2013 02:56:52 -0700 (PDT)
Message-ID: <51B2FFE2.50705@HIDDEN>
Date: Sat, 08 Jun 2013 11:56:50 +0200
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
MIME-Version: 1.0
To: Marko Lindqvist <cazfi74@HIDDEN>
Subject: Re: bug#14561: TESTS set from patsubst result in unterminated variable
	reference
References: <CAF6bG8etG0ODqKFc=2rC=Dnusz=q3hPTYujjRrRzZCPVwCeWUw@HIDDEN>
In-Reply-To: <CAF6bG8etG0ODqKFc=2rC=Dnusz=q3hPTYujjRrRzZCPVwCeWUw@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 14561
Cc: 14561 <at> debbugs.gnu.org
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: -2.6 (--)

retitle GNU make specific stuff cannot be used in RHS of "TESTS =" 14561
retitle GNU make specific stuff cannot be used in RHS of "TESTS =" 13771
forcemerge 13771 14561
stop

On 06/05/2013 09:22 PM, Marko Lindqvist wrote:
>  This was found originally when trying to use automake-1.13 (including
> attempt with 1.13.3) for gtk-engines-2.20.2, but I've tried to produce
> minimum Makefile.am to reproduce the problem (attached).
>
>  When variable TESTS gets assigned result from patsubst -function,
> running make for resulting Makefile errors with:
> Makefile:592: *** unterminated variable reference.  Stop.
> 
> 
>  Attached testcase includes minimum configure.ac and Makefile.am and
> separate ./run.sh script to produce rest of the files and to run make.
> 
> 
This is basically a duplicated of bug#13771, so I'm merging this
report with that one.

The bottom line is that this is a long-standing limitation of the
parallel testsuite harness: Automake needs to analyze the contents
of TESTS statically (at automake runtime), so GNU make special
builtins or user-defined functions cannot be used in the TESTS
definition (automake doesn't grasp them).

You can work around this by wrapping your GNU make specific stuff
into a configure substitution, which will be left alone by automake;
e.g.:

  # In configure.ac:
  AC_SUBST([auto_find_tests], ['$(sort $(wildcard *.test))'])

  # In Makefile.am:
  TESTS = @auto_find_tests@

Note that, in order for this to work correctly in all situations,
you should only use tests whose suffix is listed in TESTS_EXTENSIONS
(if that variable is not explicitly defined, it's default value
is ".test").  That's because, missing such extension(s), automake
cannot generate generic suffix rules to create the '.trs' and
'.log' files the testsuite harness relies upon.

HTH,
  Stefano




Information forwarded to bug-automake@HIDDEN:
bug#14561; Package automake. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 5 Jun 2013 19:24:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 05 15:24:39 2013
Received: from localhost ([127.0.0.1]:52845 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UkJK2-0003B3-Ui
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 15:24:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48518)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <cazfi74@HIDDEN>) id 1UkJK0-0003Ag-Cz
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 15:24:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cazfi74@HIDDEN>) id 1UkJHs-0001Jv-Mx
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 15:22:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-100.2 required=5.0 tests=BAYES_05,
	FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, T_DKIM_INVALID,
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38180)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cazfi74@HIDDEN>) id 1UkJHs-0001JX-JP
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 15:22:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50225)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cazfi74@HIDDEN>) id 1UkJHq-0004Gw-V3
	for bug-automake@HIDDEN; Wed, 05 Jun 2013 15:22:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cazfi74@HIDDEN>) id 1UkJHp-0001Bo-1F
	for bug-automake@HIDDEN; Wed, 05 Jun 2013 15:22:22 -0400
Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:58805)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cazfi74@HIDDEN>) id 1UkJHo-0001Ay-TQ
	for bug-automake@HIDDEN; Wed, 05 Jun 2013 15:22:20 -0400
Received: by mail-qc0-f180.google.com with SMTP id a10so1149065qcx.39
	for <bug-automake@HIDDEN>; Wed, 05 Jun 2013 12:22:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=f95hZ/qokrlx9FxSPOw5/Muk9HWLk8t1ztepWLjFtLo=;
	b=zz309O1M1bnZnE+TUB01mF4DehfyQs1P+1ioa8CVILnT6wKyoGtKGQAg1oyob8q99k
	C5mQYRU5abxEGrS83aYO0+wg4Os+W/C3yq5VxOW+Kxi5XGRTsOKdukqivRruInpRe+ka
	HuvqUs7mPmjarSVbRgKTem261zlgqRWif2mIbVp/hW5IJacYUWgGpe5iJCLKM21yC/z/
	1EUIpzFXOnj0wk/4pQnj6yMb04LZK7UvQBOOyGsYERlThFDcxBWsemW+ZQQ/hAju1be0
	eOPDxBzKH+qnFZx5vZ1ytMVJ9T+hpIWXpoVQse8qznfrU8iE9ZzjYwTCkUaKx9VpLJo4
	U0VA==
MIME-Version: 1.0
X-Received: by 10.224.128.70 with SMTP id j6mr30286053qas.41.1370460140393;
	Wed, 05 Jun 2013 12:22:20 -0700 (PDT)
Received: by 10.224.36.17 with HTTP; Wed, 5 Jun 2013 12:22:20 -0700 (PDT)
Date: Wed, 5 Jun 2013 22:22:20 +0300
Message-ID: <CAF6bG8etG0ODqKFc=2rC=Dnusz=q3hPTYujjRrRzZCPVwCeWUw@HIDDEN>
Subject: TESTS set from patsubst result in unterminated variable reference
From: Marko Lindqvist <cazfi74@HIDDEN>
To: bug-automake@HIDDEN
Content-Type: multipart/mixed; boundary=001a11c1f8ccd91d3d04de6d1d45
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.5 (----)
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: -5.9 (-----)

--001a11c1f8ccd91d3d04de6d1d45
Content-Type: text/plain; charset=UTF-8

 This was found originally when trying to use automake-1.13 (including
attempt with 1.13.3) for gtk-engines-2.20.2, but I've tried to produce
minimum Makefile.am to reproduce the problem (attached).

 When variable TESTS gets assigned result from patsubst -function,
running make for resulting Makefile errors with:
Makefile:592: *** unterminated variable reference.  Stop.


 Attached testcase includes minimum configure.ac and Makefile.am and
separate ./run.sh script to produce rest of the files and to run make.


 - ML

--001a11c1f8ccd91d3d04de6d1d45
Content-Type: application/octet-stream; name="automakeTESTSbug.tar.xz"
Content-Disposition: attachment; filename="automakeTESTSbug.tar.xz"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_hhkwd9d40

/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4Cf/AWxdACoRRqzoDYuc2cP5q5zvCYf4Yv5NLruD7yeB
r4nBElbrOkYbK4S4C4Vyq5IR5hFiAPbS9RGk8tQ/x5+mhMk69xaRKqX8qx04p3tM+sD6LnQGxWus
HUXcMjTX58ykBDebRdc/RMJXnMIR+cPKQSp9/oKF/uI3eCc12NZPVoTN9z5pVR5pUZBgadGFWYgQ
uIy6a40pUhwlHUCz623Nk0ppzNfiirDGifsJcBdKYDV80p5kwwPSh8HMLnbNFA3WDlvJf4qhx9DB
SI2dLWviSSqYTYK3fvi8X9DbR2BdOYuwqd7ac3a5XjSursMTZKDNmmS6WjGG8JtefbFiYD9kE/7b
vklHaSddhDhTZz99WhjEmoh1iOZSGk/JD2dZgA7wcNPONPyqki3sFhP6AMKN1ItunRcwVJPU8p2f
vzZbtsDSdC0gevXPK71rKYQFbGscR7NvrLGivk/gAF3PYSmsmLe4ExoCB43fPSaniTovq6IA8G02
vdqF54QAAYgDgFAAADOg8/exxGf7AgAAAAAEWVo=
--001a11c1f8ccd91d3d04de6d1d45--




Acknowledgement sent to Marko Lindqvist <cazfi74@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#14561; 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.