Karl Berry <karl@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Karl Berry <karl@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Stefano Lattarini <stefano.lattarini@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 11863) by debbugs.gnu.org; 5 Jul 2012 10:00:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 05 06:00:32 2012 Received: from localhost ([127.0.0.1]:49719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SmirP-0000BX-SS for submit <at> debbugs.gnu.org; Thu, 05 Jul 2012 06:00:32 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:49593) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <stefano.lattarini@HIDDEN>) id 1SmirN-0000BD-AO; Thu, 05 Jul 2012 06:00:30 -0400 Received: by bkty7 with SMTP id y7so209754bkt.3 for <multiple recipients>; Thu, 05 Jul 2012 02:55:36 -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=wP/fk7XxiyxgVi55zkDZ1MwT8RWZZYIRo6Blq92hE4M=; b=yTaBTU2AgDpdeze2LG0i6A//tA1em8ivFzTSCcf5e7txdFt2Bo7+3O590y7wbhtS28 W+Uu+foVFV0jnbbXpuoHK1gvpyrb8Y1YHF6qqcgDEk+NjdgLGW6hzHXNpPksJ4YwTf08 5hpU3IYcTHPmGssXFt8tszvFhXeyedyTrE8/kvz0LYaoL3AiihEpnHvy8U5HZ4FLYO6h LaJmeN+7ImJFaLMZ/XzvspRVoLqVWzFEO5DUIXMRbs7pFQrhIGX5Dhp6rN3MBnOsRKXL TMTXZql6TDvMc40j+bKVPXj57TT8Oy+MtVBCAqHtIl/uN6aJp0cQJFbORBEOt6AOWBfN D/LQ== Received: by 10.204.128.90 with SMTP id j26mr6901609bks.126.1341482136521; Thu, 05 Jul 2012 02:55:36 -0700 (PDT) Received: from [87.5.99.156] (host156-99-dynamic.5-87-r.retail.telecomitalia.it. [87.5.99.156]) by mx.google.com with ESMTPS id hs2sm20212759bkc.1.2012.07.05.02.55.34 (version=SSLv3 cipher=OTHER); Thu, 05 Jul 2012 02:55:35 -0700 (PDT) Message-ID: <4FF56495.3050901@HIDDEN> Date: Thu, 05 Jul 2012 11:55:33 +0200 From: Stefano Lattarini <stefano.lattarini@HIDDEN> MIME-Version: 1.0 To: "Gary V. Vaughan" <gary@HIDDEN> Subject: Re: bug#11863: Building test plugins References: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> <4FF4C521.9030809@HIDDEN> <CAOnWdoiQNSCutbsNQ9C+mqa9NFYKpnTyW6MepqrCCe_ObQA1Rg@HIDDEN> <F8930D63-B05A-4838-96E1-A45E261FFB17@HIDDEN> In-Reply-To: <F8930D63-B05A-4838-96E1-A45E261FFB17@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11863 Cc: 11863 <at> debbugs.gnu.org, Reuben Thomas <rrt@HIDDEN> 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 (--) tags 11863 - moreinfo thanks On 07/05/2012 08:19 AM, Gary V. Vaughan wrote: > Hi Reuben, > > On 5 Jul 2012, at 05:39, Reuben Thomas wrote: >> On 4 July 2012 23:35, Stefano Lattarini <stefano.lattarini@HIDDEN> wrote: >>> tags 11863 + moreinfo >>> thanks >>> >>> On 07/04/2012 10:43 PM, Reuben Thomas wrote: >>>> I have a library that I want to build just for tests. Hence, I add it >>>> to check_LTLIBRARIES. It's a plugin, so I want the .so (or .dll or >>>> whatever) to be built, but it isn't! >>>> >>> It isn't built when you run "make check"? >> >> The library is built, but no .so. > > check_LTLIBRARIES works somewhat like noinst_LTLIBRARIES, in that Automake > instructs libtool to build a convenience archive by default in both cases > (a convenience archive being a static archive of pic objects). > > Arguably that's not the right thing for check_LTLIBRARIES, for exactly the > reasons you have been tripped up by here. And I'd be in favour of changing > the semantics of check_LTLIBRARIES accordingly - libltdl based module > loaders will continue to cope just fine because the .la file is examined > to determine how to link and load the module. > I'll gladly accept a patch in this direction, if you, as a libtool maintainer, think it would offer better semantics. > Currently the best way to tell Automake to only build a libtool library > for `make check' without installing it, but at the same time to tell libtool > not to make a convenience archive is: > > check_LTLIBRARIES += tests/libalientest.la > > tests_libalientest_la_LDFLAGS = -module -avoid-version -rpath /dev/null > > The -rpath argument tells libtool that this is not a convenience archive. > The parameter can be anything, because Automake will not install a > check_LTLIBRARIES object anyway, but /dev/null makes it clearer that we'r > doing something a bit odd here. > > Cheers, Regards, Stefano
bug-automake@HIDDEN
:bug#11863
; Package automake
.
Full text available.Received: (at 11863) by debbugs.gnu.org; 5 Jul 2012 07:37:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 05 03:37:46 2012 Received: from localhost ([127.0.0.1]:49567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SmgdE-0005SX-I5 for submit <at> debbugs.gnu.org; Thu, 05 Jul 2012 03:37:45 -0400 Received: from exprod7og105.obsmtp.com ([64.18.2.163]:42268) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from <rrt@HIDDEN>) id 1SmgdC-0005SQ-Rc for 11863 <at> debbugs.gnu.org; Thu, 05 Jul 2012 03:37:43 -0400 Received: from mail-vc0-f172.google.com ([209.85.220.172]) (using TLSv1) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP ID DSNKT/VDIX7qIaUQ9gA4eSMaoKDDHfV49g7C@HIDDEN; Thu, 05 Jul 2012 00:32:51 PDT Received: by vcqp1 with SMTP id p1so7231437vcq.3 for <11863 <at> debbugs.gnu.org>; Thu, 05 Jul 2012 00:32:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=cBF+Q5+Vb4o7sobK46ZX0osdiFKKPmEcdGgQ27E4/mQ=; b=CGWJ+AUFtpt4mXPCS8LPPuIWgxkYYn1fIAiECk6nh31lx4Y6S8MNarU8zkdkZjXGlX dgQCPyXJJvqt+CMGj5s9gI7QTh5EPe9y7wpN/nkKpaeFSQzHiwEL6f4EUlgikGMxnq3u ZvThgAnCpK+olbsrvve2mO8hAsKxZHQjY9Jmlp2qUm2+PWUMxh+qFIvdMD0KX829QvIr Fx3wBJI8irrvZHvRGAnzGwhO/9mdbm9BExcRADiYyzJVZZ3MdqGO5wtfrsfwcoXoU9l6 uyHzLe47jZ/6xXgxMUd3jfgSB7Y61Nh8g98UMSpWMMiMv9z1FOSEIvRJ9u+FPQLQurIR zKrA== MIME-Version: 1.0 Received: by 10.52.35.15 with SMTP id d15mr9945036vdj.128.1341473568969; Thu, 05 Jul 2012 00:32:48 -0700 (PDT) Received: by 10.220.150.196 with HTTP; Thu, 5 Jul 2012 00:32:48 -0700 (PDT) In-Reply-To: <F8930D63-B05A-4838-96E1-A45E261FFB17@HIDDEN> References: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> <4FF4C521.9030809@HIDDEN> <CAOnWdoiQNSCutbsNQ9C+mqa9NFYKpnTyW6MepqrCCe_ObQA1Rg@HIDDEN> <F8930D63-B05A-4838-96E1-A45E261FFB17@HIDDEN> Date: Thu, 5 Jul 2012 08:32:48 +0100 Message-ID: <CAOnWdoj4px8oBHz0VG-gq97p=tfRZbyX9jiLtrUJSKJZMSEJog@HIDDEN> Subject: Re: bug#11863: Building test plugins From: Reuben Thomas <rrt@HIDDEN> To: "Gary V. Vaughan" <gary@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmFjAXo26DOU2CmJMs04CFoVJsGY/swO+PCA3E6ThtICKHMV2bEMwTwhvquvgrJuyiS2Qrp X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 11863 Cc: 11863 <at> debbugs.gnu.org, Stefano Lattarini <stefano.lattarini@HIDDEN> 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 (----) On 5 July 2012 07:19, Gary V. Vaughan <gary@HIDDEN> wrote: > > Currently the best way to tell Automake to only build a libtool library > for `make check' without installing it, but at the same time to tell libtool > not to make a convenience archive is: > > check_LTLIBRARIES += tests/libalientest.la > > tests_libalientest_la_LDFLAGS = -module -avoid-version -rpath /dev/null > > The -rpath argument tells libtool that this is not a convenience archive. > The parameter can be anything, because Automake will not install a > check_LTLIBRARIES object anyway, but /dev/null makes it clearer that we'r > doing something a bit odd here. Thanks very much, that does exactly what I'm after. -- http://rrt.sc3d.org
bug-automake@HIDDEN
:bug#11863
; Package automake
.
Full text available.Received: (at 11863) by debbugs.gnu.org; 5 Jul 2012 06:24:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 05 02:24:07 2012 Received: from localhost ([127.0.0.1]:49445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SmfTy-0003n6-Uw for submit <at> debbugs.gnu.org; Thu, 05 Jul 2012 02:24:07 -0400 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66]:55737 helo=homiemail-a19.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <gary@HIDDEN>) id 1SmfTx-0003mz-7U for 11863 <at> debbugs.gnu.org; Thu, 05 Jul 2012 02:24:06 -0400 Received: from homiemail-a19.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a19.g.dreamhost.com (Postfix) with ESMTP id 961B3604076; Wed, 4 Jul 2012 23:19:13 -0700 (PDT) Received: from [192.168.1.5] (unknown [183.89.56.252]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: gary@HIDDEN) by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPSA id 931E3604069; Wed, 4 Jul 2012 23:19:12 -0700 (PDT) Subject: Re: bug#11863: Building test plugins Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: "Gary V. Vaughan" <gary@HIDDEN> In-Reply-To: <CAOnWdoiQNSCutbsNQ9C+mqa9NFYKpnTyW6MepqrCCe_ObQA1Rg@HIDDEN> Date: Thu, 5 Jul 2012 13:19:04 +0700 Content-Transfer-Encoding: quoted-printable Message-Id: <F8930D63-B05A-4838-96E1-A45E261FFB17@HIDDEN> References: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> <4FF4C521.9030809@HIDDEN> <CAOnWdoiQNSCutbsNQ9C+mqa9NFYKpnTyW6MepqrCCe_ObQA1Rg@HIDDEN> To: Reuben Thomas <rrt@HIDDEN> X-Mailer: Apple Mail (2.1278) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11863 Cc: 11863 <at> debbugs.gnu.org, Stefano Lattarini <stefano.lattarini@HIDDEN> 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: -1.2 (-) Hi Reuben, On 5 Jul 2012, at 05:39, Reuben Thomas wrote: > On 4 July 2012 23:35, Stefano Lattarini <stefano.lattarini@HIDDEN> = wrote: >> tags 11863 + moreinfo >> thanks >>=20 >> On 07/04/2012 10:43 PM, Reuben Thomas wrote: >>> I have a library that I want to build just for tests. Hence, I add = it >>> to check_LTLIBRARIES. It's a plugin, so I want the .so (or .dll or >>> whatever) to be built, but it isn't! >>>=20 >> It isn't built when you run "make check"? >=20 > The library is built, but no .so. check_LTLIBRARIES works somewhat like noinst_LTLIBRARIES, in that = Automake instructs libtool to build a convenience archive by default in both = cases (a convenience archive being a static archive of pic objects). Arguably that's not the right thing for check_LTLIBRARIES, for exactly = the reasons you have been tripped up by here. And I'd be in favour of = changing the semantics of check_LTLIBRARIES accordingly - libltdl based module loaders will continue to cope just fine because the .la file is examined to determine how to link and load the module. Currently the best way to tell Automake to only build a libtool library for `make check' without installing it, but at the same time to tell = libtool not to make a convenience archive is: check_LTLIBRARIES +=3D tests/libalientest.la tests_libalientest_la_LDFLAGS =3D -module -avoid-version -rpath = /dev/null The -rpath argument tells libtool that this is not a convenience = archive. The parameter can be anything, because Automake will not install a check_LTLIBRARIES object anyway, but /dev/null makes it clearer that = we'r doing something a bit odd here. Cheers, --=20 Gary V. Vaughan (gary AT gnu DOT org)
bug-automake@HIDDEN
:bug#11863
; Package automake
.
Full text available.Received: (at 11863) by debbugs.gnu.org; 4 Jul 2012 22:44:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 04 18:44:06 2012 Received: from localhost ([127.0.0.1]:48777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SmYIn-0000rB-Nl for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 18:44:06 -0400 Received: from exprod7og108.obsmtp.com ([64.18.2.169]:58068) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from <rrt@HIDDEN>) id 1SmYIk-0000qt-I3 for 11863 <at> debbugs.gnu.org; Wed, 04 Jul 2012 18:44:03 -0400 Received: from mail-vb0-f51.google.com ([209.85.212.51]) (using TLSv1) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP ID DSNKT/TGD/0rg8ouUc397nzXAvH1o2kM2ksj@HIDDEN; Wed, 04 Jul 2012 15:39:13 PDT Received: by mail-vb0-f51.google.com with SMTP id p1so5062878vbi.38 for <11863 <at> debbugs.gnu.org>; Wed, 04 Jul 2012 15:39:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=5wlBMhr4FhAA+b1ZALrYZ9uiQzBWU7OwL6SecG0psS0=; b=mZcUf+9hHavCE6p5rRc32vnuH8RsBvNtty66b3r5ZQO9txa0znODTHqWLTX0nEc7Zq YEMmpNmKVT6ek63DsDuZThxTZpz2C4RtlT981hsGtqJO9PkL8E0TCYNWtPwjCWqIlCgZ rfDvT709y5KKKP9NXp4KHKnsUHvKJpRlYLyl0zdTu4ObU4FjLH7CC5ideMCQyrYFqHw9 7mTSJKjDjAOVH34PzoimFGEBIrKjJbnvOQ5/IFLPdFL9LZtypvS5fH/Vo5iki3oViRhz XI69XU2d2jwB5PEYIKrAXxhROKDEh62U6+aO3Gz4C7kmR5hdj/RvRdMhh57iCWnA9bOf LgPw== MIME-Version: 1.0 Received: by 10.220.107.198 with SMTP id c6mr11353450vcp.54.1341441551570; Wed, 04 Jul 2012 15:39:11 -0700 (PDT) Received: by 10.220.150.196 with HTTP; Wed, 4 Jul 2012 15:39:11 -0700 (PDT) In-Reply-To: <4FF4C521.9030809@HIDDEN> References: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> <4FF4C521.9030809@HIDDEN> Date: Wed, 4 Jul 2012 23:39:11 +0100 Message-ID: <CAOnWdoiQNSCutbsNQ9C+mqa9NFYKpnTyW6MepqrCCe_ObQA1Rg@HIDDEN> Subject: Re: bug#11863: Building test plugins From: Reuben Thomas <rrt@HIDDEN> To: Stefano Lattarini <stefano.lattarini@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnENiD+xUFtN8aQDpNK2RXLOhd+v2Tk6oyMFOpKW4SSY/v5WxzddfPupMdtjJVUANj6SPY0 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 11863 Cc: 11863 <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: -4.2 (----) On 4 July 2012 23:35, Stefano Lattarini <stefano.lattarini@HIDDEN> wrote: > tags 11863 + moreinfo > thanks > > On 07/04/2012 10:43 PM, Reuben Thomas wrote: >> I have a library that I want to build just for tests. Hence, I add it >> to check_LTLIBRARIES. It's a plugin, so I want the .so (or .dll or >> whatever) to be built, but it isn't! >> > It isn't built when you run "make check"? The library is built, but no .so. Maybe some traces will help show the difference. With libalientest.la in pkglib_LTLIBRARIES: $ make check CC tests/alientest.lo CC src/alien.lo CCLD tests/libalientest.la CCLD src/alien_c.la make make[1]: Entering directory `/home/rrt/repo/alien' make all-am make[2]: Entering directory `/home/rrt/repo/alien' make[2]: Leaving directory `/home/rrt/repo/alien' make[1]: Leaving directory `/home/rrt/repo/alien' make check-local make[1]: Entering directory `/home/rrt/repo/alien' cp src/.libs/alien_c.so src/ cd tests && LUA_INIT= LUA_PATH="/home/rrt/repo/alien/src/?.lua;;" LUA_CPATH="/home/rrt/repo/alien/src/?.so;;" LD_LIBRARY_PATH="/home/rrt/repo/alien/tests/.libs" /home/rrt/local/x86_64/bin/lua test_alien.lua /home/rrt/repo/alien/tests ................................................ tests completed OK! rm -f src/alien_c.so With libalientest.la in check_LTLIBRARIES: $ make check CC src/alien.lo CCLD src/alien_c.la make tests/libalientest.la make[1]: Entering directory `/home/rrt/repo/alien' CC tests/alientest.lo CCLD tests/libalientest.la make[1]: Leaving directory `/home/rrt/repo/alien' make check-local make[1]: Entering directory `/home/rrt/repo/alien' cp src/.libs/alien_c.so src/ cd tests && LUA_INIT= LUA_PATH="/home/rrt/repo/alien/src/?.lua;;" LUA_CPATH="/home/rrt/repo/alien/src/?.so;;" LD_LIBRARY_PATH="/home/rrt/repo/alien/tests/.libs" /home/rrt/local/x86_64/bin/lua test_alien.lua /home/rrt/repo/alien/tests /home/rrt/local/x86_64/bin/lua: /home/rrt/repo/alien/src/alien.lua:73: library alientest not found stack traceback: [C]: in function 'error' /home/rrt/repo/alien/src/alien.lua:73: in function '?' /home/rrt/repo/alien/src/alien.lua:93: in function </home/rrt/repo/alien/src/alien.lua:92> /home/rrt/repo/alien/src/alien.lua:99: in function 'load' test_alien.lua:3: in main chunk [C]: ? make[1]: *** [check-local] Error 1 make[1]: Leaving directory `/home/rrt/repo/alien' make: *** [check-am] Error 2 -- http://rrt.sc3d.org
bug-automake@HIDDEN
:bug#11863
; Package automake
.
Full text available.Stefano Lattarini <stefano.lattarini@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 11863) by debbugs.gnu.org; 4 Jul 2012 22:40:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 04 18:40:21 2012 Received: from localhost ([127.0.0.1]:48763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SmYFA-0000jT-Em for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 18:40:21 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:63742) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <stefano.lattarini@HIDDEN>) id 1SmYF7-0000jI-Nu; Wed, 04 Jul 2012 18:40:18 -0400 Received: by werp11 with SMTP id p11so2401235wer.3 for <multiple recipients>; Wed, 04 Jul 2012 15:35:27 -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=+/FFZVK11maQItNeX2QwJ0jTzumNaCS6Np2xhRBrIr8=; b=QZx03ipxkeVc0+DajzyNyN4dwK5p4ZCdqZWcMyQCoyBHl/fo60To6UdVDAzFoHSnRM mFChEzuD05wXSZ0IeDnfCoHw0JCTUMajGekQDMYtM3lK8Jnc5BvfDI6ACvpGfPVIzDhh vFFMoGCsPux7glxFAEGOK/TyBsN6B9jQ5cx/ilQu+j8JCCyd6wkUsucqf3fvGkyK0zOT p4rKiQzn43/3qXpumK0wgqaVZT/IOxaeBTWy+BGHJf0aF/H5t2gGWmHSV1Dbkm4NZ8xd pbysSh+q0LXXbzAyJTi1ObKscomvUF0Y1jjNr09q5+MePOY9cgGtz7T/nyHY3ACJqTdM movw== Received: by 10.180.100.37 with SMTP id ev5mr43759379wib.5.1341441327694; Wed, 04 Jul 2012 15:35:27 -0700 (PDT) Received: from [82.54.101.210] (host210-101-dynamic.54-82-r.retail.telecomitalia.it. [82.54.101.210]) by mx.google.com with ESMTPS id bc2sm70655674wib.0.2012.07.04.15.35.25 (version=SSLv3 cipher=OTHER); Wed, 04 Jul 2012 15:35:26 -0700 (PDT) Message-ID: <4FF4C521.9030809@HIDDEN> Date: Thu, 05 Jul 2012 00:35:13 +0200 From: Stefano Lattarini <stefano.lattarini@HIDDEN> MIME-Version: 1.0 To: Reuben Thomas <rrt@HIDDEN> Subject: Re: bug#11863: Building test plugins References: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> In-Reply-To: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11863 Cc: 11863 <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 (--) tags 11863 + moreinfo thanks On 07/04/2012 10:43 PM, Reuben Thomas wrote: > I have a library that I want to build just for tests. Hence, I add it > to check_LTLIBRARIES. It's a plugin, so I want the .so (or .dll or > whatever) to be built, but it isn't! > It isn't built when you run "make check"? That is a bug. It isn't built when you run "make all"? That is a expected. As the documentation says: The special prefix 'check_' indicates that the objects in question should not be built until the "make check" command is run. Those objects are not installed either. > If I instead add the library to pkglib_LTLIBRARIES, then the shared > object is built, but the test library is installed, which is not what > I want. > > Reading the automake & libtool manuals, I can't see anything about > what exactly triggers building of the shared object; can someone tell > me what I should do in this instance to get a shared object for tests > only? > HTH, Stefano
bug-automake@HIDDEN
:bug#11863
; Package automake
.
Full text available.Received: (at submit) by debbugs.gnu.org; 4 Jul 2012 20:48:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 04 16:48:26 2012 Received: from localhost ([127.0.0.1]:48607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SmWUr-0006j2-U2 for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 16:48:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34109) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rrt@HIDDEN>) id 1SmWUp-0006iv-F2 for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 16:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1SmWQ9-0005M6-9D for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 16:43:34 -0400 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]:48561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1SmWQ9-0005Lx-5m for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 16:43:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1SmWQ7-0008Nd-Fm for bug-automake@HIDDEN; Wed, 04 Jul 2012 16:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1SmWQ4-0005LH-9W for bug-automake@HIDDEN; Wed, 04 Jul 2012 16:43:30 -0400 Received: from exprod7og106.obsmtp.com ([64.18.2.165]:48184) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1SmWQ4-0005KZ-0d for bug-automake@HIDDEN; Wed, 04 Jul 2012 16:43:28 -0400 Received: from mail-vc0-f179.google.com ([209.85.220.179]) (using TLSv1) by exprod7ob106.postini.com ([64.18.6.12]) with SMTP ID DSNKT/Sq7aLXexUcNh5hMlWkX0/G13gJ9SnR@HIDDEN; Wed, 04 Jul 2012 13:43:27 PDT Received: by mail-vc0-f179.google.com with SMTP id gb23so5114302vcb.38 for <bug-automake@HIDDEN>; Wed, 04 Jul 2012 13:43:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=ZzpaKNFJ9i3uEWk5FhpUNiePUGAyDj6k2skv1y5Nvas=; b=f6+SMRWCNlI8MVukcbYe7VcF3JwENHtH/gp8KT4QV4wzCeERZlX2gxyMK1Vgzr2BHP 0tVoQMF8Gi8FZYbqWoM4Zwbq8l+zMUNJNG0zi2PPPvZWxRzS83Q473VCgH7y4Jugjkb7 uyl1TquUfYWQnh2sb5a6waYAvUIbHpbrXiJxWsT2paIz3sTXCdQFa0TmIYyxRg0ybNHc Kq7QAhk4mhSbEiONE9KT5E4fCihaF0fNDBWZ2cITM+FOA0rjssUtq8ee72Ex1eDWSdAy 92vdNQml52bPeg6iRtXY68Luwv692zUOs+bsmXTMc3N3oLHDGcv/z5BJi/01TE3bHc9e 8DLA== MIME-Version: 1.0 Received: by 10.220.107.130 with SMTP id b2mr11121537vcp.35.1341434604997; Wed, 04 Jul 2012 13:43:24 -0700 (PDT) Received: by 10.220.150.196 with HTTP; Wed, 4 Jul 2012 13:43:24 -0700 (PDT) Date: Wed, 4 Jul 2012 21:43:24 +0100 Message-ID: <CAOnWdoh11pfpOans_Zn_D--D1Hq9QkHrEd03pwbvJ-mmX3zSng@HIDDEN> Subject: Building test plugins From: Reuben Thomas <rrt@HIDDEN> To: bug-automake <bug-automake@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmrJQFfC3t65402K5+KuZ+YQwD1l49G8ag4FHy88oV1WkO1rgHdS9UKfAmPTUKf1temDxYy X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.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: -6.2 (------) I have a library that I want to build just for tests. Hence, I add it to check_LTLIBRARIES. It's a plugin, so I want the .so (or .dll or whatever) to be built, but it isn't! If I instead add the library to pkglib_LTLIBRARIES, then the shared object is built, but the test library is installed, which is not what I want. Reading the automake & libtool manuals, I can't see anything about what exactly triggers building of the shared object; can someone tell me what I should do in this instance to get a shared object for tests only? -- http://rrt.sc3d.org
Reuben Thomas <rrt@HIDDEN>
:bug-automake@HIDDEN
.
Full text available.bug-automake@HIDDEN
:bug#11863
; Package automake
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.