GNU logs - #9320, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9320: Documentation addition: AC_SUBSTed variables do not work with LIBADD for dependency generation.
Resent-From: Krzesimir Nowak <krnowak@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-automake@HIDDEN
Resent-Date: Thu, 18 Aug 2011 13:16:02 +0000
Resent-Message-ID: <handler.9320.B.131367332631039 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 9320
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: 9320 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-automake@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.131367332631039
          (code B ref -1); Thu, 18 Aug 2011 13:16:02 +0000
Received: (at submit) by debbugs.gnu.org; 18 Aug 2011 13:15:26 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qu2RP-00084W-Es
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 09:15:24 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <krnowak@HIDDEN>) id 1Qu2RJ-00084L-4i
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 09:15:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <krnowak@HIDDEN>) id 1Qu2PN-0004yG-1y
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 09:13:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	RDNS_NONE autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:47176)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <krnowak@HIDDEN>) id 1Qu2PN-0004yC-0Q
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 09:13:17 -0400
Received: from eggs.gnu.org ([140.186.70.92]:46938)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <krnowak@HIDDEN>) id 1Qu2PM-0003nb-1y
	for bug-automake@HIDDEN; Thu, 18 Aug 2011 09:13:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <krnowak@HIDDEN>) id 1Qu2PK-0004xp-HT
	for bug-automake@HIDDEN; Thu, 18 Aug 2011 09:13:16 -0400
Received: from [85.183.48.167] (port=54866 helo=mail.openismus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <krnowak@HIDDEN>) id 1Qu2PK-0004xf-51
	for bug-automake@HIDDEN; Thu, 18 Aug 2011 09:13:14 -0400
Received: from [192.168.0.104] (unknown [85.183.48.167])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.openismus.com (Postfix) with ESMTPSA id 00D4510180C8
	for <bug-automake@HIDDEN>; Thu, 18 Aug 2011 15:13:10 +0200 (CEST)
From: Krzesimir Nowak <krnowak@HIDDEN>
Date: Thu, 18 Aug 2011 15:13:10 +0200
Content-Type: multipart/mixed; boundary="=-Zqjap3qowaHtGgvvON2n"
X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15) 
Message-ID: <1313673191.25816.12.camel@krnowak-computer>
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.6 (------)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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: -6.6 (------)


--=-Zqjap3qowaHtGgvvON2n
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Package: automake
Version: 1.11.1

It would be useful to add a note to "8.4 Program and Library Variables"
part of Automake documentation that Automake's dependency generator does
not generate proper dependencies when maude_LIBADD have variables that
are AC_SUBSTed. In such case maude_DEPENDENCIES should be used
explicitly.

If this is a bug then please see an example in attached tarball. It
contains code for two simple libraries - hello and greeter. Greeter
depends on hello. There is a file greeter/greeter.am in which I have
written _LIBADD and _DEPENDENCIES in several ways - the first two tries
ends with linking error stating about nonexistent libhello.la. Please
also note that I used a nonrecursive Automake and Makefile.am includes
greeter.am first and then hello.am (so in a sort of reverse order). If
hello.am would be included first and then greeter.am - compilation then
usually passes when compiling it in single thread.

Compilation of this example: ./autogen.sh && make

If this is not a bug I am willing to provide a patch dor documentation.


--=-Zqjap3qowaHtGgvvON2n
Content-Type: application/x-bzip-compressed-tar; name="deptest.tar.bz2"
Content-Disposition: attachment; filename="deptest.tar.bz2"
Content-Transfer-Encoding: base64

QlpoOTFBWSZTWVU9+xcABGj/9M6QAgB8f/+Pf//ezv//36pBAAEAAIIABBAIUAQ+61mqCZbaaAEk
kammp5MlG0000eoI02o9TTEZpoGgnpPUH6IJkDT9Q5piMjJpk0AyGjIZMgAABkaZGgYQyBIkBJqa
hkyaBp6IAAaaG1NGgNAAaAGg5piMjJpk0AyGjIZMgAABkaZGgYQyBFIhGJNoEankaQaaAMgAAA0a
AA0DTgF4+Hg9EvjOZOWgNK8kiCC8t8WMIEABFggJa/M2M0YGvFDJN22AJDaYkxKbvetiKUnKL9FR
TRelmJ1SZiJWi7AsCrIXv6jJ+TIcFB7mbrvF8+D85lpXXM3vtRfL1t1BJ+igUIxHPqaVEunRXMrR
wa8B7TTJImSmQFBcbQuoXmC0rs5wIOEr323qHnK0WQR+AYMuqbbbbG3rHvh3VL7MRG1sUb+uhpEv
pBBxMnjmqW2hZd+JXxqd8vxhcDBMYyELCX2tu5/tCk8LllolmUA50xQMbczbpGFZq2s6zfuU1YZA
2220m9OI6d9YwINzdiwmdBl0mQyUk4rx1xEmDbcxwAIR1fPrGyfTI3tBL6/jLTsvErAwkzh59uWc
bZOUAaJya1rTT+OpXVxErb29oQ0NgWEsSUhuUsZY4UnkFlGBkvS9BLCUm3K1MJUvQSi0XnfCySJb
mDKTHRxaUSJ0DC1LoYlJRKdSwyl/TO1qkr4zdsMLMaSdUFxKArAlPKgwil7TdbVlETmiK2BKzRmR
gl62NiOrspqF8dS8OZUi1YcfY/TTsKA1n5oXmwZoBksQmFAQLaeuhIrGyMcalCQafjVyUl9EBaU9
mM4IhPWALWNPyzIDM4jebHLjcQYopuqHKwBlUrtUm3V1zyTO706awpLWu7BgNowUUqV1lF6/Rsuy
b7c6daxCiCoCwZoo7DPUqhIHSPmJJXdL7t0GDAXsOK9gmt6Fsxk8FxzMdKc2oqAXVqExyWdBnbTb
QNsf2IXFEvWL9u9KfEC6x9aRsF4ubu2DxQLPBivkQXDLyjorDRBZTmcEYnmQoqxZ2/DU7yapqqnb
09g0Skp0KRPKpwRxzkAlB+yG9PxeQQOPOWXgDAiEoV0gJBbpJkSJJIu1S2zUOSA0RBJDNv4Qqhgl
jczHYGLIZGG68Uwk3wPfc8uXQMo9xaPH0wRpAa5u1lXaDLhw06xDS57HAlqX7+4K9IX/C3ZwxidS
wLa9D0ah0QhDGDMoFqgcoZjdUasVm3+iya65Ik3MZ3GCyaITChBAj58+kDlPLytDg3gpBdYyZbiD
CAZhbmSIahzl/MqHWle0pIN0FzYxttrntXYdkalcbcLuFNBRjEIYAJIhcrMlVyyKh2L2gdNxxi65
ey5wtDYBcbTWNIakV/4u5IpwoSCqe/Yu


--=-Zqjap3qowaHtGgvvON2n--





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Krzesimir Nowak <krnowak@HIDDEN>
Subject: bug#9320: Acknowledgement (Documentation addition: AC_SUBSTed
 variables do not work with LIBADD for dependency generation.)
Message-ID: <handler.9320.B.131367332631039.ack <at> debbugs.gnu.org>
References: <1313673191.25816.12.camel@krnowak-computer>
X-Gnu-PR-Message: ack 9320
X-Gnu-PR-Package: automake
Reply-To: 9320 <at> debbugs.gnu.org
Date: Thu, 18 Aug 2011 13:16:02 +0000

Thank you for filing a new bug report with GNU.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-automake@HIDDEN

If you wish to submit further information on this problem, please
send it to 9320 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
9320: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9320
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9320: Documentation addition: AC_SUBSTed variables do not work with LIBADD for dependency generation.
Resent-From: Stefano Lattarini <stefano.lattarini@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-automake@HIDDEN
Resent-Date: Wed, 19 Oct 2011 10:26:01 +0000
Resent-Message-ID: <handler.9320.B.131901995415671 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9320
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: 9320 <at> debbugs.gnu.org
Cc: Ralf.Wildenhues@HIDDEN, krnowak@HIDDEN
X-Debbugs-Original-To: bug-automake@HIDDEN
X-Debbugs-Original-Cc: 9320 <at> debbugs.gnu.org, Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>, Krzesimir Nowak <krnowak@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131901995415671
          (code B ref -1); Wed, 19 Oct 2011 10:26:01 +0000
Received: (at submit) by debbugs.gnu.org; 19 Oct 2011 10:25:54 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RGTLN-00044g-Ur
	for submit <at> debbugs.gnu.org; Wed, 19 Oct 2011 06:25:54 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTLM-00044I-1d
	for submit <at> debbugs.gnu.org; Wed, 19 Oct 2011 06:25:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTKE-0005PZ-5Q
	for submit <at> debbugs.gnu.org; Wed, 19 Oct 2011 06:24:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:34781)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTKD-0005PU-WA
	for submit <at> debbugs.gnu.org; Wed, 19 Oct 2011 06:24:42 -0400
Received: from eggs.gnu.org ([140.186.70.92]:58886)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTKC-00022g-UI
	for bug-automake@HIDDEN; Wed, 19 Oct 2011 06:24:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTKA-0005Ok-S1
	for bug-automake@HIDDEN; Wed, 19 Oct 2011 06:24:40 -0400
Received: from mail-wy0-f169.google.com ([74.125.82.169]:49348)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTKA-0005OY-Ic
	for bug-automake@HIDDEN; Wed, 19 Oct 2011 06:24:38 -0400
Received: by wyg34 with SMTP id 34so1857579wyg.0
	for <bug-automake@HIDDEN>; Wed, 19 Oct 2011 03:24:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:cc:references:in-reply-to
	:mime-version:content-type:content-transfer-encoding:message-id;
	bh=JZTX9VDXO7xwZjrmbQaSo3afG2PiTTJD6ckFhd4r+8Y=;
	b=i0LtOnGWR38krZswSB/nNmh0/x4FdoSqDj+o+xDpFb79nnGzLM0ZyJCYne1mVA1ZN8
	SHi0hF16HHCl9IzdqFfKsqAUjuhjrbALOlh85+PF+avXBJ+YvR3QOIb9XkwMTpEKP4+t
	g1FFC2+Y6yxqMVPXtzHz1I9vTwdHJyLZq40hg=
Received: by 10.227.171.139 with SMTP id h11mr2299859wbz.94.1319019877469;
	Wed, 19 Oct 2011 03:24:37 -0700 (PDT)
Received: from bigio.localnet
	(host144-99-dynamic.5-87-r.retail.telecomitalia.it. [87.5.99.144])
	by mx.google.com with ESMTPS id fo7sm8917097wbb.20.2011.10.19.03.24.34
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 19 Oct 2011 03:24:35 -0700 (PDT)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
Date: Wed, 19 Oct 2011 12:24:22 +0200
User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )
References: <1313673191.25816.12.camel@krnowak-computer>
In-Reply-To: <1313673191.25816.12.camel@krnowak-computer>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <201110191224.22778.stefano.lattarini@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.2 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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.2 (-----)

Hi Krzesimir, thanks for the report and sorry for the awful delay.

On Thursday 18 August 2011, Krzesimir Nowak wrote:
> Package: automake
> Version: 1.11.1
> 
> It would be useful to add a note to "8.4 Program and Library Variables"
> part of Automake documentation that Automake's dependency generator does
> not generate proper dependencies when maude_LIBADD have variables that
> are AC_SUBSTed. In such case maude_DEPENDENCIES should be used
> explicitly.
>
But that would also override the dependencies automatically computed by
automake ... (which might not be a problem in your case, but it might be
in the general case).

And that's why, in the developement varsion of automake, we have (well,
Ralf has, actually) introduced support for `EXTRA_maude_DEPENDENCIES',
that allows one to *extend* the automake-computed dependencies, instead
of simply override them.  This new variable would be perfect for your
use case. The relevant commit is `v1.11-377-g6edafbb':
  <http://git.savannah.gnu.org/cgit/automake.git/commit/?id=6edafbb>

> If this is a bug then please see an example in attached tarball.
> It contains code for two simple libraries - hello and greeter. Greeter
> depends on hello. There is a file greeter/greeter.am in which I have
> written _LIBADD and _DEPENDENCIES in several ways - the first two tries
> ends with linking error stating about nonexistent libhello.la. Please
> also note that I used a nonrecursive Automake and Makefile.am includes
> greeter.am first and then hello.am (so in a sort of reverse order). If
> hello.am would be included first and then greeter.am - compilation then
> usually passes when compiling it in single thread.
>
I can reproduce the failure with your example; and using the developement
version of automake (master branch) I can fix it using the following in
`greeter/greeter.am':

  greeter_libgreeter_la_LIBADD = $(HELLO_LIBS)
  EXTRA_greeter_libgreeter_la_DEPENDENCIES = $(HELLO_LIBS)

> If this is not a bug I am willing to provide a patch dor documentation.
> 
It's a limitation rather than a bug; and the workaround with
EXTRA_foo_DEPENDENCIES that I've explained above is the documented,
"kosher" way around it.

Still, I can see that the documentation in is not as clear as it could
be in this matter; so feel free to submit a documentation patch (against
master), and we will surely consider it.

Thanks,
  Stefano








Message sent to bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9320: Documentation addition: AC_SUBSTed variables do not work with LIBADD for dependency generation.
Resent-From: Stefano Lattarini <stefano.lattarini@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-automake@HIDDEN
Resent-Date: Wed, 19 Oct 2011 10:26:01 +0000
Resent-Message-ID: <handler.9320.B9320.131901994915653 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9320
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: 9320 <at> debbugs.gnu.org
Cc: Ralf.Wildenhues@HIDDEN, krnowak@HIDDEN
X-Debbugs-Original-To: bug-automake@HIDDEN
X-Debbugs-Original-Cc: 9320 <at> debbugs.gnu.org, Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>, Krzesimir Nowak <krnowak@HIDDEN>
Received: via spool by 9320-submit <at> debbugs.gnu.org id=B9320.131901994915653
          (code B ref 9320); Wed, 19 Oct 2011 10:26:01 +0000
Received: (at 9320) by debbugs.gnu.org; 19 Oct 2011 10:25:49 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RGTLI-00044P-NJ
	for submit <at> debbugs.gnu.org; Wed, 19 Oct 2011 06:25:49 -0400
Received: from mail-wy0-f172.google.com ([74.125.82.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGTLF-000449-A3
	for 9320 <at> debbugs.gnu.org; Wed, 19 Oct 2011 06:25:46 -0400
Received: by wyh22 with SMTP id 22so1493904wyh.3
	for <9320 <at> debbugs.gnu.org>; Wed, 19 Oct 2011 03:24:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:cc:references:in-reply-to
	:mime-version:content-type:content-transfer-encoding:message-id;
	bh=JZTX9VDXO7xwZjrmbQaSo3afG2PiTTJD6ckFhd4r+8Y=;
	b=i0LtOnGWR38krZswSB/nNmh0/x4FdoSqDj+o+xDpFb79nnGzLM0ZyJCYne1mVA1ZN8
	SHi0hF16HHCl9IzdqFfKsqAUjuhjrbALOlh85+PF+avXBJ+YvR3QOIb9XkwMTpEKP4+t
	g1FFC2+Y6yxqMVPXtzHz1I9vTwdHJyLZq40hg=
Received: by 10.227.171.139 with SMTP id h11mr2299859wbz.94.1319019877469;
	Wed, 19 Oct 2011 03:24:37 -0700 (PDT)
Received: from bigio.localnet
	(host144-99-dynamic.5-87-r.retail.telecomitalia.it. [87.5.99.144])
	by mx.google.com with ESMTPS id fo7sm8917097wbb.20.2011.10.19.03.24.34
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 19 Oct 2011 03:24:35 -0700 (PDT)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
Date: Wed, 19 Oct 2011 12:24:22 +0200
User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )
References: <1313673191.25816.12.camel@krnowak-computer>
In-Reply-To: <1313673191.25816.12.camel@krnowak-computer>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <201110191224.22778.stefano.lattarini@HIDDEN>
X-Spam-Score: -4.1 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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.1 (----)

Hi Krzesimir, thanks for the report and sorry for the awful delay.

On Thursday 18 August 2011, Krzesimir Nowak wrote:
> Package: automake
> Version: 1.11.1
> 
> It would be useful to add a note to "8.4 Program and Library Variables"
> part of Automake documentation that Automake's dependency generator does
> not generate proper dependencies when maude_LIBADD have variables that
> are AC_SUBSTed. In such case maude_DEPENDENCIES should be used
> explicitly.
>
But that would also override the dependencies automatically computed by
automake ... (which might not be a problem in your case, but it might be
in the general case).

And that's why, in the developement varsion of automake, we have (well,
Ralf has, actually) introduced support for `EXTRA_maude_DEPENDENCIES',
that allows one to *extend* the automake-computed dependencies, instead
of simply override them.  This new variable would be perfect for your
use case. The relevant commit is `v1.11-377-g6edafbb':
  <http://git.savannah.gnu.org/cgit/automake.git/commit/?id=6edafbb>

> If this is a bug then please see an example in attached tarball.
> It contains code for two simple libraries - hello and greeter. Greeter
> depends on hello. There is a file greeter/greeter.am in which I have
> written _LIBADD and _DEPENDENCIES in several ways - the first two tries
> ends with linking error stating about nonexistent libhello.la. Please
> also note that I used a nonrecursive Automake and Makefile.am includes
> greeter.am first and then hello.am (so in a sort of reverse order). If
> hello.am would be included first and then greeter.am - compilation then
> usually passes when compiling it in single thread.
>
I can reproduce the failure with your example; and using the developement
version of automake (master branch) I can fix it using the following in
`greeter/greeter.am':

  greeter_libgreeter_la_LIBADD = $(HELLO_LIBS)
  EXTRA_greeter_libgreeter_la_DEPENDENCIES = $(HELLO_LIBS)

> If this is not a bug I am willing to provide a patch dor documentation.
> 
It's a limitation rather than a bug; and the workaround with
EXTRA_foo_DEPENDENCIES that I've explained above is the documented,
"kosher" way around it.

Still, I can see that the documentation in is not as clear as it could
be in this matter; so feel free to submit a documentation patch (against
master), and we will surely consider it.

Thanks,
  Stefano








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


Received: (at control) by debbugs.gnu.org; 20 Oct 2011 13:41:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 20 09:41:54 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RGssc-00037Y-8p
	for submit <at> debbugs.gnu.org; Thu, 20 Oct 2011 09:41:54 -0400
Received: from mail-wy0-f172.google.com ([74.125.82.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1RGssZ-00037L-Jp
	for control <at> debbugs.gnu.org; Thu, 20 Oct 2011 09:41:52 -0400
Received: by wyh22 with SMTP id 22so2758173wyh.3
	for <control <at> debbugs.gnu.org>; Thu, 20 Oct 2011 06:40:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:mime-version:content-type
	:content-transfer-encoding:message-id;
	bh=qfn33bAsGU38fkS5hPS6OUrxz8Fco5UWZRJnkLXovpE=;
	b=TDUXNfFZ571OQu5zE9rIhYhS854kBdLEkFvwLAe+JrjQ/IeGnf6H0F7PvaTQMz+iQn
	o3KhXL6o096yC2JnCXciK5w7RsCjkctmXZy1/+Rr64lbA82+/k0md2PVTsYKyIOMIQiS
	3kVPw9H03MvUC8DFuq3NBDvc/c3ASXPu0PdQs=
Received: by 10.216.221.157 with SMTP id r29mr6872121wep.66.1319118037272;
	Thu, 20 Oct 2011 06:40:37 -0700 (PDT)
Received: from bigio.localnet
	(host71-30-dynamic.56-82-r.retail.telecomitalia.it. [82.56.30.71])
	by mx.google.com with ESMTPS id eu16sm15634691wbb.7.2011.10.20.06.40.33
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 20 Oct 2011 06:40:34 -0700 (PDT)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: control <at> debbugs.gnu.org
Subject: am
Date: Thu, 20 Oct 2011 15:40:25 +0200
User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <201110201540.25650.stefano.lattarini@HIDDEN>
X-Spam-Score: -3.9 (---)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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: -3.9 (---)

severity 9320 minor
severity 8599 minor
severity 8071 minor
severity 7892 minor
tags 8788 patch
thanks





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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