Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549708 - sys-devel/binutils-config removes /etc/ld.so.conf.d/05binutils.conf when uninstalling cross toolchain
Summary: sys-devel/binutils-config removes /etc/ld.so.conf.d/05binutils.conf when unin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-17 11:24 UTC by Alexander Tsoy
Modified: 2015-05-25 06:07 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 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