Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 334119

Summary: cross-mips-linux-uclibc/binutils: upgrade from 2.16.1-r3 to 2.20.1-r1 does not update symlinks
Product: Gentoo Linux Reporter: Iwan Aucamp <aucampia>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of crossdev where binutils is upgraded from binutils_2.16.1-r3 to 2.20.1-r1
cross-mips-linux-uclibc-info.log
emerge --info
equery l cross-mips-linux-uclibc/

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.