From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7113 invoked by alias); 4 Apr 2012 07:43:23 -0000 Received: (qmail 7083 invoked by uid 22791); 4 Apr 2012 07:43:21 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_BJ X-Spam-Check-By: sourceware.org Received: from mail-bk0-f41.google.com (HELO mail-bk0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Apr 2012 07:43:08 +0000 Received: by bkwq16 with SMTP id q16so532881bkw.0 for ; Wed, 04 Apr 2012 00:43:06 -0700 (PDT) Received: by 10.204.9.198 with SMTP id m6mr6390951bkm.38.1333525386287; Wed, 04 Apr 2012 00:43:06 -0700 (PDT) Received: from [87.8.92.46] (host46-92-dynamic.8-87-r.retail.telecomitalia.it. [87.8.92.46]) by mx.google.com with ESMTPS id jr13sm50852341bkb.14.2012.04.04.00.43.05 (version=SSLv3 cipher=OTHER); Wed, 04 Apr 2012 00:43:05 -0700 (PDT) Message-ID: <4F7BFB80.7090406@gmail.com> Date: Wed, 04 Apr 2012 07:43:00 -0000 From: Stefano Lattarini MIME-Version: 1.0 To: Tom Tromey CC: Ian Lance Taylor , ams@gnu.org, gcc@gcc.gnu.org, 11034@debbugs.gnu.org, gdb@sourceware.org, automake@gnu.org, binutils@sourceware.org, joseph@codesourcery.com, "automake-patches@gnu.org" , Roumen Petrov Subject: Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option References: <4F72E239.9010404@gmail.com> <4F7301DD.7090401@gmail.com> <4F76C08E.6050707@gmail.com> <4F76D8F2.8050804__46768.5595191599$1333188914$gmane$org@gmail.com> <87zkaujjn1.fsf@fleche.redhat.com> <4F79BFDB.1070904@gmail.com> <87ty12i2pd.fsf@fleche.redhat.com> <4F79C5F2.2020807__46832.8654104427$1333380662$gmane$org@gmail.com> <87hax2hqop.fsf@fleche.redhat.com> <4F7A0341.9050305__49963.8538728051$1333396325$gmane$org@gmail.com> <87d37pj39j.fsf@fleche.redhat.com> <4F7A10D7.8050908@gmail.com> <4F7B57C4.9000402@gmail.com> <4F7B580F.2060007@gmail.com> <4F7B5DA1.9000908@gmail.com> <87pqboft2j.fsf@fleche.redhat.com> In-Reply-To: <87pqboft2j.fsf@fleche.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00037.txt.bz2 On 04/03/2012 10:39 PM, Tom Tromey wrote: >>>>>> "Stefano" == Stefano Lattarini writes: > > Stefano> On a second though, by double-checking the existing code, I > Stefano> couldn't see how the 'cygnus' option could possibly influence > Stefano> the location of the generated info files -- and it turned out > Stefano> it didn't! Despite what was documented in the manual, the > Stefano> 'cygnus' option did *not* cause the generated '.info' files to > Stefano> be placed in the builddir (see attached test case). > > It certainly does for me: > Yes, but (at least for the binutils case) that's only because you already have an hack *unrelated to the cygnus option* to make it work; i.e., in 'binutils/doc/Makefile.am', I read: # Automake 1.9 will only build info files in the objdir if they are # mentioned in DISTCLEANFILES. It doesn't have to be unconditional, # though, so we use a bogus condition. if GENINSRC_NEVER DISTCLEANFILES = binutils.info endif > barimba. pwd > /home/tromey/gnu/baseline-gdb/build/binutils > barimba. grep '^srcdir = ' Makefile > srcdir = ../../src/binutils > barimba. find . -name 'binutils.info' > ./doc/binutils.info > barimba. find ../../src/binutils -name 'binutils.info' > barimba. > > How did you test it? > With the testcase attached to my mail (warning: it requires the Automake testsuite infrastructure to work). I can transform it in an independent test script if you are really interested. > If you built from a distribution tar, then it is expected that the info > file would be in srcdir. > I didn't use the binutils distribution to test my claim, but the minimal test case I had created on purpose, and attached in the previous mail. Regards, Stefano