Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538514 - sys-devel/crossdev tries to emerge the latest linux-headers if the required version is not in the tree.
Summary: sys-devel/crossdev tries to emerge the latest linux-headers if the required v...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 09:21 UTC by Vladimir Shapranov
Modified: 2015-02-15 05:10 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,4.55 KB, text/plain)
2015-02-02 09:21 UTC, Vladimir Shapranov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Shapranov 2015-02-02 09:21:31 UTC
Created attachment 395368 [details]
emerge --info

To reproduce try to build very old toolchain:
crossdev -t i686-unknown-linux-gnu --k 3.1 --l 2.2 --g 4.2 --b 2.12

Crossdev will show the following configuration:

>  * binutils:              binutils-2.12
>  * gcc:                   gcc-4.2
>  * headers:               linux-headers-3.1
>  * libc:                  glibc-2.2

... and then fail after trying to emerge masked glibc-9999:

> The following mask changes are necessary to proceed:
>  (see "package.unmask" in the portage(5) man page for more details)
> # required by cross-i686-unknown-linux-gnu/glibc (argument)
> # /etc/portage/package.mask/cross-i686-unknown-linux-gnu:
> =cross-i686-unknown-linux-gnu/glibc-9999
> 
> NOTE: The --autounmask-keep-masks option will prevent emerge
>       from creating package.unmask or ** keyword changes.
> 
> Use --autounmask-write to write changes to config files (honoring
> CONFIG_PROTECT). Carefully examine the list of proposed changes,
> paying special attention to mask or keyword changes that may expose
> experimental or unstable packages.

Also the behavior depends on versions tried before:
First, I tried kernel 2.4.18, build failed for linux-headers-3.19
Next, I tried kernel 3.1, build failed later on glibc and then if I specify --k 2.4.18 again crossdev uses 3.1 instead.

I think it should at least warn about ignoring specified version.
Comment 1 SpanKY gentoo-dev 2015-02-15 05:10:42 UTC
what you're seeing is portage behavior.  you've masked every single possible version, so portage has fallen back to just arbitrarily picking the latest and telling you why it couldn't install it.