Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347389 - sys-devel/crossdev: Support selecting overlay/keywords manually
Summary: sys-devel/crossdev: Support selecting overlay/keywords manually
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 09:22 UTC by Dennis Schridde
Modified: 2011-08-20 08:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2010-12-01 09:22:48 UTC
When running crossdev, it will tell me:
 * Using sys-devel/binutils from /var/cache/portage/layman/toolchain instead of /var/cache/portage/gentoo
 * Using sys-devel/gcc from /var/cache/portage/layman/toolchain instead of /var/cache/portage/gentoo
 * Using sys-devel/gdb from /var/cache/portage/layman/toolchain instead of /var/cache/portage/gentoo

However, since these are alpha versions, I do not want to use them. Instead I want to use the official Gentoo ebuilds, but there is no way to select them.

Even though these ebuilds are keyword masked (empty keywords), crossdev will use them, because it does:
cross-i686-pc-mingw32/binutils * ~* **
cross-i686-pc-mingw32/gcc * ~* **

I propose --keywords={stable,unstable,masked} to configure the contents of package.keywords/cross-* and --overlay=<name> to select the overlay to use by repo_name.

Leaving this at "normal" severity, because there does not seem to be a workaround.

Reproducible: Always
Comment 1 Dennis Schridde 2010-12-01 09:30:54 UTC
Sorry, the issue seems to be a little bit different from what I thought:

[I] sys-devel/binutils                                                                                                                                                                                              
     Available versions:  [...] [P]2.15.92.0.2-r10[2] [...] (~)2.20-r1[2] 2.20.1-r1 [...]

So the latest unstable version in that overlay is 2.20, the latest stable is 2.15 (obviously both not nearly in sync with the regular Gentoo tree).
The problem is that crossdev selects any version from that overlay, instead of using a sophisticated (automatic or manual) mechanism to find the latest stable/unstable/masked version.

Specifying --g,--b does not make crossdev use the correct version either. Probably because the user-selected versions are not available in the auto-selected overlay. There is not even a warning about that.
Comment 2 Dennis Schridde 2010-12-01 09:35:45 UTC
I adjusted the symlinks in cross-* manually, and if I do not use crossdev, it seems portage will be able to deal with it itself.
Comment 3 SpanKY gentoo-dev 2010-12-01 14:07:08 UTC
crossdev searches the overlays to find a match.  if you dont like the match, re-order your overlays or create the dirs/links yourself.
Comment 4 Dennis Schridde 2010-12-01 14:52:08 UTC
crossdev will, however, destroy my symlinks whenever it is invoked.

Also: How do I reorder my overlays for crossdev not to see the toolchain overlay?
Comment 5 SpanKY gentoo-dev 2010-12-04 11:02:44 UTC
ive changed crossdev to not re-link existing links

http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commitdiff;h=b75a836f18028b4c8924999f6f9cb749b22c6504
Comment 6 SpanKY gentoo-dev 2011-08-19 18:10:15 UTC
crossdev-20110819 now has command line options to explicitly control overlay selection, as well as depend atom style versions (=2.21)
Comment 7 Dennis Schridde 2011-08-20 08:52:57 UTC
(In reply to comment #6)
> crossdev-20110819 now has command line options to explicitly control overlay
> selection, as well as depend atom style versions (=2.21)
Thanks a lot!