Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88169 - Adding support for different targets in gdb ebuild
Summary: Adding support for different targets in gdb ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 08:17 UTC by Scott Price
Modified: 2005-04-07 17:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb-6.3-r1.ebuild (gdb-6.3-r1.ebuild,2.47 KB, text/plain)
2005-04-06 08:18 UTC, Scott Price
Details
Updated ebuild (gdb-6.3-r1.ebuild,2.64 KB, text/plain)
2005-04-06 19:58 UTC, Scott Price
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Price 2005-04-06 08:17:51 UTC
This goes along with sys-devel/crossdev for cross compiler toolchains.  This allows different targets to be specified by setting CTARGET and SLOT in the ebuild.  It was really a simple change.  I was surprised.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Scott Price 2005-04-06 08:18:59 UTC
Created attachment 55479 [details]
gdb-6.3-r1.ebuild

Ebuild to add different targets to gdb.  The changes were minor.
Comment 2 SpanKY gentoo-dev 2005-04-06 17:33:34 UTC
well i'll be damned, is it really that easy ?

do cross-compile versions overwrite files of native gdb ?  (i.e. try `FEATURES=collision-protect emerge gdb && FEATURES=collision-protect CTARGET=arm-blah emerge gdb` ...
Comment 3 Scott Price 2005-04-06 19:58:29 UTC
Created attachment 55534 [details]
Updated ebuild

This ebuild puts docs in:

/usr/share/doc/gdb-6.3-r1/${CTARGET}

and Info in:

/usr/share/info/gdb/${CTARGET}

so that different versions don't collide. in the info and documentation.
Comment 4 SpanKY gentoo-dev 2005-04-06 20:11:55 UTC
how about we just not install docs when CTARGET != CHOST ?  is there any reason to ?
Comment 5 Scott Price 2005-04-07 05:37:03 UTC
The only reason I can think of is if the user doesn't install the one for their arch they wouldn't have the docs.  Is that a killer?

Scott  =)
Comment 6 SpanKY gentoo-dev 2005-04-07 15:32:07 UTC
eh, i say just make user have 1 native gdb rather than a bunch of wasted duplicated docs ...

one thing about the libdir though ... is anything ever actually installed into it ?
Comment 7 Scott Price 2005-04-07 15:59:43 UTC
/usr/lib/gdb/avr/libiberty.a

I don't even know if it is needed, though.  It is also provided by binutils.  I will remove the docs from the cross builds tonight.

Scott  =)
Comment 8 SpanKY gentoo-dev 2005-04-07 17:05:36 UTC
ok, that stuff is provided by binutils, so that's not an issue

updated the ebuild now so basically the only thing installed in cross-gdb mode are the binaries

thanks ! :)