Gentoo Archives: gentoo-user

From: Willie M <matthews.willie80@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't get rid of binutils 'preserved libs' warning
Date: Tue, 14 Mar 2017 17:52:05
Message-Id: 17faf9a8-b20c-7148-6c3c-edd1ed6f1b2a@gmail.com
In Reply to: Re: [gentoo-user] Can't get rid of binutils 'preserved libs' warning by Alan McKinnon
1 On 03/14/2017 09:52 AM, Alan McKinnon wrote:
2 > On 14/03/2017 17:45, Grant Edwards wrote:
3 >> After I do an update, I get this message:
4 >>
5 >> !!! existing preserved libs:
6 >> >>> package: sys-libs/binutils-libs-2.27
7 >> * - /usr/lib64/libbfd-2.25.1.so
8 >> * used by /usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libopcodes-2.25.1.so (sys-devel/binutils-2.25.1-r1)
9 >> Use emerge @preserved-rebuild to rebuild packages using these libraries
10 >>
11 >> When I do an 'emerge @preserved-rebuild', it re-builds
12 >> binutils-2.25.1, and then shows the same warning again.
13 >>
14 >> I've run @preserved-rebuild 5 or 6 times, sourcing /etc/profile and
15 >> logging out/in between. Still, I always get the same preserved-libs
16 >> warning.
17 >>
18 >> Portage seems upset tht binutils-2.25.1 is using binutils-libs-2.25.1
19 >> instead of binutils-libs-2.27, but re-emerging binutils-2.25.1 doesn't
20 >> help.
21 >>
22 > I've run into similar things a few times and never really got to the
23 > bottom of any of them and ldd wasn't very useful either.
24 >
25 > How I have got around it in the past is to stop rebuilding, that just
26 > keeps the crazy loop going as each time the new thing doesn't like the
27 > existing thing. So I emerge -C the offending package and the
28 > dependencies, then emerge both back in so they start from scratch.
29 >
30 > But in this case, removing binutils might be problematic, that's where
31 > your elf tools and linker come from. A workaround comes to mind:
32 >
33 > - quickpkg both packages
34 > - emerge -C both packages
35 > - manually untar both quickpkg archives to their original location. Now
36 > you have all your tools back, without the package metadata to confuse
37 > portage
38 > - emerge both packages, ignoring the expected file collision errors.
39 >
40
41 Way better idea than I had with just a warning.
42
43 --
44
45 Willie L Matthews
46 matthews.willie80@×××××.com
47 702-659-9966

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Can't get rid of binutils 'preserved libs' warning Alan McKinnon <alan.mckinnon@×××××.com>