Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334119 - cross-mips-linux-uclibc/binutils: upgrade from 2.16.1-r3 to 2.20.1-r1 does not update symlinks
Summary: cross-mips-linux-uclibc/binutils: upgrade from 2.16.1-r3 to 2.20.1-r1 does no...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 334129 334131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-23 18:43 UTC by Iwan Aucamp
Modified: 2010-08-24 00:56 UTC (History)
0 users

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


Attachments
output of crossdev where binutils is upgraded from binutils_2.16.1-r3 to 2.20.1-r1 (crossdev_output-binutils_2.16.1-r3_to_2.20.1-r1.log,540.40 KB, text/plain)
2010-08-23 18:50 UTC, Iwan Aucamp
Details
cross-mips-linux-uclibc-info.log (cross-mips-linux-uclibc-info.log,14.10 KB, text/plain)
2010-08-23 18:51 UTC, Iwan Aucamp
Details
emerge --info (emerge_info.log,4.28 KB, text/plain)
2010-08-23 18:52 UTC, Iwan Aucamp
Details
equery l cross-mips-linux-uclibc/ (equery_cross-mips-linux-uclibc.log,153 bytes, text/plain)
2010-08-23 18:52 UTC, Iwan Aucamp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iwan Aucamp 2010-08-23 18:43:17 UTC
sys-devel/crossdev-20100620 does not update symlinks for binutils when binutils is upgraded.



Reproducible: Always

Steps to Reproduce:
1. Unmask
~cross-mips-linux-uclibc/linux-headers-2.6.34 ~x86 ~mips
~cross-mips-linux-uclibc/uclibc-0.9.30.1-r1 ~x86 ~mips

2. ensure cross-mips-linux-uclibc/binutils-2.16.1-r3 will install (i.e. not later version)

3.setup env
export CHOST=x86_64-pc-linux-gnu
export CHOST=x86_64-pc-linux-gnu
export CTARGET=mips-linux-uclibc
export UCLIBC_CPU=MIPS_ISA_MIPS32


4. Invoke Crossdev
crossdev -S -P -v -t mips-linux-uclibc

5. Above fails @ gcc build

6. unmask ~cross-mips-linux-uclibc/binutils-2.20.1 ~x86 ~mips

7. Invoke Crossdev
crossdev -S -P -v -t mips-linux-uclibc

## this fails again @ gcc - no ar found

5. observe broken symlinks:

ls -l /usr/bin/mips-linux-uclibc-*
ls -l /usr/libexec/gcc/mips-linux-uclibc
Actual Results:  
all symlinks broken

Expected Results:  
symlinks corrected

attached is additional info
Comment 1 Iwan Aucamp 2010-08-23 18:50:41 UTC
Created attachment 244261 [details]
output of crossdev where binutils is upgraded from binutils_2.16.1-r3 to 2.20.1-r1
Comment 2 Iwan Aucamp 2010-08-23 18:51:45 UTC
Created attachment 244263 [details]
cross-mips-linux-uclibc-info.log
Comment 3 Iwan Aucamp 2010-08-23 18:52:13 UTC
Created attachment 244265 [details]
emerge --info
Comment 4 Iwan Aucamp 2010-08-23 18:52:34 UTC
Created attachment 244269 [details]
equery l cross-mips-linux-uclibc/
Comment 5 Iwan Aucamp 2010-08-23 19:01:49 UTC
*** Bug 334129 has been marked as a duplicate of this bug. ***
Comment 6 Iwan Aucamp 2010-08-23 19:02:14 UTC
*** Bug 334131 has been marked as a duplicate of this bug. ***
Comment 7 Iwan Aucamp 2010-08-23 19:03:31 UTC
one liner to fix:

ls /usr/x86_64-pc-linux-gnu/mips-linux-uclibc/binutils-bin/2.20.1/ \
| xargs -I '{}' bash -c 'rm /usr/libexec/gcc/mips-linux-uclibc/$1; ln -s /usr/x86_64-pc-linux-gnu/mips-linux-uclibc/binutils-bin/2.20.1/$1 /usr/libexec/gcc/mips-linux-uclibc/$1' '{}' '{}';
Comment 8 SpanKY gentoo-dev 2010-08-24 00:56:47 UTC
crossdev has nothing to do with updating of packages.  however, your pre-env setup makes no sense.  dont do that -- crossdev will set the values for you and will setup proper wrappers for you.

i dont even know why you're doing that.  no documentation is telling you to.

clean out the target, stop mucking with the environment, and then see if the upgrade works correctly.