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

Bug 549708

Summary: sys-devel/binutils-config removes /etc/ld.so.conf.d/05binutils.conf when uninstalling cross toolchain
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Tsoy 2015-05-17 11:24:29 UTC
After uninstalling of any cross toolchain I need to run binutils-config to regenerate 05binutils.conf. From binutils-config script:

uninstall_target() {
----%< snip >%----
    rm -f "${ENV_D}"/config-${TARGET} "${ROOT}"/etc/ld.so.conf.d/05binutils.conf
----%< snip >%----
}

Steps to reproduce:

# cat /etc/ld.so.conf.d/05binutils.conf 
/usr/x86_64-pc-linux-gnu/lib
# crossdev -C armv6j-hardfloat-linux-gnueabi
...
# ls -l /etc/ld.so.conf.d/05binutils.conf 
ls: cannot access /etc/ld.so.conf.d/05binutils.conf: No such file or directory
...
# ldd /usr/bin/amuled | grep 'not found'
        libbfd-2.24.so => not found
Comment 1 SpanKY gentoo-dev 2015-05-25 06:06:38 UTC
it was added in the 1.9->2 bump when i added initial ld.so.conf.d support.  but i can't recall why this would possibly be a good idea since this is a native file.  probably a think-o.
Comment 2 SpanKY gentoo-dev 2015-05-25 06:07:27 UTC
should be all set now in the tree; thanks for the report!

Commit message: Do not delete native ld.so.conf.d fragment when uninstalling cross binutils
http://sources.gentoo.org/sys-devel/binutils-config/binutils-config-4-r3.ebuild?rev=1.1
http://sources.gentoo.org/sys-devel/binutils-config/files/binutils-config-4?r1=1.3&r2=1.4