This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- From: Stefano Lattarini <stefano dot lattarini at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, ams at gnu dot org, gcc at gcc dot gnu dot org, 11034 at debbugs dot gnu dot org, gdb at sourceware dot org, automake at gnu dot org, binutils at sourceware dot org, joseph at codesourcery dot com, "automake-patches at gnu dot org" <automake-patches at gnu dot org>, Roumen Petrov <bugtrack at roumenpetrov dot info>
- Date: Wed, 04 Apr 2012 09:42:56 +0200
- Subject: Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- References: <4F72E239.9010404@gmail.com> <Pine.LNX.4.64.1203281121190.12161@digraph.polyomino.org.uk> <4F7301DD.7090401@gmail.com> <mcr1uoci96g.fsf@dhcp-172-18-216-180.mtv.corp.google.com> <4F76C08E.6050707@gmail.com> <E1SDuIY-0004aQ-0U@fencepost.gnu.org> <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> <mcrwr5x6dsk.fsf@dhcp-172-18-216-180.mtv.corp.google.com> <4F7B57C4.9000402@gmail.com> <4F7B580F.2060007@gmail.com> <4F7B5DA1.9000908@gmail.com> <87pqboft2j.fsf@fleche.redhat.com>
On 04/03/2012 10:39 PM, Tom Tromey wrote:
>>>>>> "Stefano" == Stefano Lattarini <stefano.lattarini@gmail.com> 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
- References:
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option
- Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option