Gentoo Archives: gentoo-user

From: Wol <antlists@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't get rid of preserved libs
Date: Sun, 21 Nov 2021 21:54:21
Message-Id: 8a954b83-d35a-b652-dea7-48ecfa62056b@youngman.org.uk
In Reply to: [gentoo-user] Can't get rid of preserved libs by Julien Roy
1 I bet you've got a circular dependency on freetype and harfbuzz. Look
2 for a thread I started with the subject "The old wine/harfbuzz/freetype
3 circle" - you need to track down the package which is holding those two.
4
5 What I would try is to forcibly remove (emerge -C) both those two
6 packages, and then hope it sorts itself out. The danger is you then get
7 another nasty conundrum as they try and re-install themselves .
8
9 The other thing is, try and find out whether libglib and libpng16 are
10 critical. libpng certainly not, libglib I don't know. You might have to
11 forcibly remove them as well.
12
13 I had the problem the other way round, I was trying to add abi_x86_32
14 for wine, and basically it's that harfbuzz won't install because it
15 needs freetype to be installed first, and freetype won't install because
16 it needs harfbuzz to be installed first. Whoops!
17
18 You need to force harfbuzz to install with "USE=-freetype", then you can
19 install freetype, then you can install harfbuzz (or the other way round,
20 doesn't matter). What does matter is you need to track down the
21 problematic package that needs both harfbuzz and freetype and is locking
22 them in.
23
24 I *think* what I did was try to force install one of them without
25 depending on the other, then looking at the trace which told me which
26 package was over-riding my use settings, temporarily deleting that
27 package (emerge -C pango in my case), emerging freetype and harfbuzz
28 --oneshot without dependencies on each other, and then just an "update
29 world" to clean up the mess.
30
31 Cheers,
32 Wol
33
34 On 21/11/2021 20:39, Julien Roy wrote:
35 > Hello,
36 >
37 > Some time ago I installed Steam on my system, which required me to add
38 > the abi_x86_32 USE flag to a bunch of packages. Eventually I removed
39 > Steam from my system and thus removed the abi_x86_32 USE flag from those
40 > packages and rebuilt them, but now ever since doing that, I am stuck
41 > with a message telling me about preserve libs and to run emerge
42 > @preserved-rebuild to get rid of them, which I tried of course, but it
43 > doesn't actually rebuild anything and the message stays.
44 >
45 > I also tried manually rebuilding those packages, rebuilding packages
46 > which depended on them, I even tried to rebuild @world in an effort to
47 > get rid of this message, but nothing seems to be working.
48 >
49 > The list of affected libs are as follows:
50 > !!! existing preserved libs:
51 >>>> package: app-arch/bzip2-1.0.8-r1
52 > *  - /usr/lib/libbz2.so.1
53 > *  - /usr/lib/libbz2.so.1.0.8
54 > *      used by /usr/lib/libfreetype.so.6 (preserved)
55 > *      used by /usr/lib/libfreetype.so.6.18.0 (preserved)
56 >>>> package: dev-libs/glib-2.68.4
57 > *  - /usr/lib/libglib-2.0.so.0
58 > *  - /usr/lib/libglib-2.0.so.0.6800.4
59 > *      used by /usr/lib/libharfbuzz.so.0 (preserved)
60 > *      used by /usr/lib/libharfbuzz.so.0.20901.0 (preserved)
61 >>>> package: dev-libs/libpcre-8.45
62 > *  - /usr/lib/libpcre.so.1
63 > *  - /usr/lib/libpcre.so.1.2.13
64 > *      used by /usr/lib/libglib-2.0.so.0 (preserved)
65 > *      used by /usr/lib/libglib-2.0.so.0.6800.4 (preserved)
66 >>>> package: media-gfx/graphite2-1.3.14
67 > *  - /usr/lib/libgraphite2.so.3
68 > *  - /usr/lib/libgraphite2.so.3.2.1
69 > *      used by /usr/lib/libharfbuzz.so.0 (preserved)
70 > *      used by /usr/lib/libharfbuzz.so.0.20901.0 (preserved)
71 >>>> package: media-libs/freetype-2.11.0-r1
72 > *  - /usr/lib/libfreetype.so.6
73 > *  - /usr/lib/libfreetype.so.6.18.0
74 > *      used by /usr/lib/libharfbuzz.so.0 (preserved)
75 > *      used by /usr/lib/libharfbuzz.so.0.20901.0 (preserved)
76 >>>> package: media-libs/harfbuzz-2.9.1
77 > *  - /usr/lib/libharfbuzz.so.0
78 > *  - /usr/lib/libharfbuzz.so.0.20901.0
79 > *      used by /usr/lib/libfreetype.so.6 (preserved)
80 > *      used by /usr/lib/libfreetype.so.6.18.0 (preserved)
81 >>>> package: media-libs/libpng-1.6.37-r2
82 > *  - /usr/lib/libpng16.so.16
83 > *  - /usr/lib/libpng16.so.16.37.0
84 > *      used by /usr/lib/libfreetype.so.6 (preserved)
85 > *      used by /usr/lib/libfreetype.so.6.18.0 (preserved)
86 >>>> package: sys-libs/zlib-1.2.11-r4
87 > *  - /usr/lib/libz.so.1
88 > *  - /usr/lib/libz.so.1.2.11
89 > *      used by /usr/lib/libfreetype.so.6 (preserved)
90 > *      used by /usr/lib/libfreetype.so.6.18.0 (preserved)
91 > *      used by /usr/lib/libpng16.so.16 (preserved)
92 > *      used by /usr/lib/libpng16.so.16.37.0 (preserved)
93 > Use emerge @preserved-rebuild to rebuild packages using these libraries
94 >
95 > I would appreciate any help to get rid of this message.
96 >
97 > Thanks,
98 > Julien
99 >
100 > --
101 > Sent with Tutanota, the secure & ad-free mailbox.

Replies

Subject Author
Re: [gentoo-user] Can't get rid of preserved libs Julien Roy <julien@××××.ca>