* - /usr/lib/libbz2.so.1package: app-arch/bzip2-1.0.8-r1
* - /usr/lib/libglib-2.0.so.0package: dev-libs/glib-2.68.4
* - /usr/lib/libpcre.so.1package: dev-libs/libpcre-8.45
* - /usr/lib/libgraphite2.so.3package: media-gfx/graphite2-1.3.14
* - /usr/lib/libfreetype.so.6package: media-libs/freetype-2.11.0-r1
* - /usr/lib/libharfbuzz.so.0package: media-libs/harfbuzz-2.9.1
* - /usr/lib/libpng16.so.16package: media-libs/libpng-1.6.37-r2
* - /usr/lib/libz.so.1package: sys-libs/zlib-1.2.11-r4
Hello,
Some time ago I installed Steam on my system, which required me to add
the abi_x86_32 USE flag to a bunch of packages. Eventually I removed
Steam from my system and thus removed the abi_x86_32 USE flag from those packages and rebuilt them, but now ever since doing that, I am stuck
with a message telling me about preserve libs and to run emerge @preserved-rebuild to get rid of them, which I tried of course, but it doesn't actually rebuild anything and the message stays.
I also tried manually rebuilding those packages, rebuilding packages
which depended on them, I even tried to rebuild @world in an effort to
get rid of this message, but nothing seems to be working.
The list of affected libs are as follows:
!!! existing preserved libs:
* - /usr/lib/libbz2.so.1package: app-arch/bzip2-1.0.8-r1
* - /usr/lib/libbz2.so.1.0.8
* used by /usr/lib/libfreetype.so.6 (preserved)
* used by /usr/lib/libfreetype.so.6.18.0 (preserved)
* - /usr/lib/libglib-2.0.so.0package: dev-libs/glib-2.68.4
* - /usr/lib/libglib-2.0.so.0.6800.4
* used by /usr/lib/libharfbuzz.so.0 (preserved)
* used by /usr/lib/libharfbuzz.so.0.20901.0 (preserved)
* - /usr/lib/libpcre.so.1package: dev-libs/libpcre-8.45
* - /usr/lib/libpcre.so.1.2.13
* used by /usr/lib/libglib-2.0.so.0 (preserved)
* used by /usr/lib/libglib-2.0.so.0.6800.4 (preserved)
* - /usr/lib/libgraphite2.so.3package: media-gfx/graphite2-1.3.14
* - /usr/lib/libgraphite2.so.3.2.1
* used by /usr/lib/libharfbuzz.so.0 (preserved)
* used by /usr/lib/libharfbuzz.so.0.20901.0 (preserved)
* - /usr/lib/libfreetype.so.6package: media-libs/freetype-2.11.0-r1
* - /usr/lib/libfreetype.so.6.18.0
* used by /usr/lib/libharfbuzz.so.0 (preserved)
* used by /usr/lib/libharfbuzz.so.0.20901.0 (preserved)
* - /usr/lib/libharfbuzz.so.0package: media-libs/harfbuzz-2.9.1
* - /usr/lib/libharfbuzz.so.0.20901.0
* used by /usr/lib/libfreetype.so.6 (preserved)
* used by /usr/lib/libfreetype.so.6.18.0 (preserved)
* - /usr/lib/libpng16.so.16package: media-libs/libpng-1.6.37-r2
* - /usr/lib/libpng16.so.16.37.0
* used by /usr/lib/libfreetype.so.6 (preserved)
* used by /usr/lib/libfreetype.so.6.18.0 (preserved)
* - /usr/lib/libz.so.1package: sys-libs/zlib-1.2.11-r4
* - /usr/lib/libz.so.1.2.11
* used by /usr/lib/libfreetype.so.6 (preserved)
* used by /usr/lib/libfreetype.so.6.18.0 (preserved)
* used by /usr/lib/libpng16.so.16 (preserved)
* used by /usr/lib/libpng16.so.16.37.0 (preserved)
Use emerge @preserved-rebuild to rebuild packages using these libraries
I would appreciate any help to get rid of this message.
Thanks,
Julien
--
Sent with Tutanota, the secure & ad-free mailbox.
<snip>
Use emerge @preserved-rebuild to rebuild packages using these libraries
I would appreciate any help to get rid of this message.
<span style="font-size:10px">Use emerge @preserved-rebuild to rebuild packages using these libraries</span></span><br></div><div><br></div><div dir="auto">I would appreciate any help to get rid of this message.<br></div><div dir="auto"><br></div><br></
</blockquote><div><br></div><div> <a href="https://wiki.gentoo.org/wiki/User:Sam/Portage_help/Circular_dependencies">https://wiki.gentoo.org/wiki/User:Sam/Portage_help/Circular_dependencies</a> <br></div></div></div>
I bet you've got a circular dependency on freetype and harfbuzz. Look for a thread I started with the subject "The old wine/harfbuzz/freetype circle" - you need to track down the package which is holding those two.Whoops!
What I would try is to forcibly remove (emerge -C) both those two packages, and then hope it sorts itself out. The danger is you then get another nasty conundrum as they try and re-install themselves .
The other thing is, try and find out whether libglib and libpng16 are critical. libpng certainly not, libglib I don't know. You might have to forcibly remove them as well.
I had the problem the other way round, I was trying to add abi_x86_32 for wine, and basically it's that harfbuzz won't install because it needs freetype to be installed first, and freetype won't install because it needs harfbuzz to be installed first.
You need to force harfbuzz to install with "USE=-freetype", then you can install freetype, then you can install harfbuzz (or the other way round, doesn't matter). What does matter is you need to track down the problematic package that needs bothharfbuzz and freetype and is locking them in.
I *think* what I did was try to force install one of them without depending on the other, then looking at the trace which told me which package was over-riding my use settings, temporarily deleting that package (emerge -C pango in my case), emergingfreetype and harfbuzz --oneshot without dependencies on each other, and then just an "update world" to clean up the mess.
Cheers,
Wol
</div><div>I had the problem the other way round, I was trying to add abi_x86_32 for wine, and basically it's that harfbuzz won't install because it needs freetype to be installed first, and freetype won't install because it needs harfbuzz to beinstalled first. Whoops!<br></div><div><br></div><div>You need to force harfbuzz to install with "USE=-freetype", then you can install freetype, then you can install harfbuzz (or the other way round, doesn't matter). What does matter is you need to track
<br></div><div>Cheers,<br></div><div>Wol<br></div></blockquote><div dir="auto"><br></div> </body></html>
Thanks for this, I first tried to unmerge freetype and harfbuzz,
then re-emerge them both with -harfbuzz USE flag on freetype, which
didn't solve my problem, so I decided to unmerge all the packages
that were listed in the message, which, although risky (bzip2 was
included!), solved my problem.
I did end up "breaking" my system due to unmerging bzip2 but
thankfully I had another Gentoo system on the same architecture to
copy over the bzip2 binary and allow me to rebuild the packages.
After doing this, I no longer have any preserved packages output
from portage, so my problem is solved!
Thanks again,
Julien
I don't really look forward to uninstalling bzip2. Manually
uninstalling and reinstalling freetype and harfbuzz doesn't fix the
issue. I am thinking about deleting all of these libraries by hand
and then rebuilding the packages, or perhaps unmerging freetype and
harfbuzz with FEATURES="-preserved-libs". I'm not sure if this will
clean up all of Portage's metadata about the libraries though.
Any insight into a 'proper' way to fix this would be appreciated.
On 12/12/2021 05:55, Bryan Gardiner wrote:
I don't really look forward to uninstalling bzip2. Manually
uninstalling and reinstalling freetype and harfbuzz doesn't fix the
issue. I am thinking about deleting all of these libraries by hand
and then rebuilding the packages, or perhaps unmerging freetype and harfbuzz with FEATURES="-preserved-libs". I'm not sure if this will
clean up all of Portage's metadata about the libraries though.
Any insight into a 'proper' way to fix this would be appreciated.
If you read the messages, it should tell you which program is actually pulling freetype and harfbuzz in with the flags you don't want. Are they currently installed with the correct flags you want?
If they don't have the flags you want, try to force-emerge them with the flags you do want and portage will complain "can't do that because of
..." That should tell you the problem program. Do an emerge -C on that program, re-emerge harfbuzz and freetype with the correct flags, and you SHOULD be home and dry ...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:33:40 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,574 |