Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with preserved-libs & more (driving me mad!) SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
_kopsu_
n00b
n00b


Joined: 31 Mar 2003
Posts: 72
Location: Muurame, Finland

PostPosted: Fri Jul 30, 2021 8:03 am    Post subject: problems with preserved-libs & more (driving me mad!) Reply with quote

Hi, I have had much trouble lately with Gentoo. It all started when I mistakenly downgraded glibc. I did have later to chroot to get my system to work (installed working toolchain and compiled system again etc.)
Ok, now I have had troubles with certain programs, thunderbird was the latest. It compiled good but never installed so I did install it manually. It works but ofcourse portage says it's not installed, there's strange errors that refer to localization of thunderbird in install phase.

The gentoo system of mine is old as heaven, it think I have migrated it at least 10 times or something during 15-18 years

Ok, now the preserved-libs problem is following:

Code:


!!! existing preserved libs:
>>> package: app-arch/bzip2-1.0.8-r1
 *  - /usr/lib/libbz2.so.1
 *  - /usr/lib/libbz2.so.1.0.8
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.17.4 (preserved)
>>> package: dev-libs/glib-2.68.3-r1
 *  - /usr/lib/libglib-2.0.so.0
 *  - /usr/lib/libglib-2.0.so.0.6800.1
 *      used by /usr/lib/libharfbuzz.so.0 (preserved)
 *      used by /usr/lib/libharfbuzz.so.0.20801.0 (preserved)
>>> package: dev-libs/libpcre-8.45
 *  - /usr/lib/libpcre.so.1
 *  - /usr/lib/libpcre.so.1.2.12
 *      used by /usr/lib/libglib-2.0.so.0 (preserved)
 *      used by /usr/lib/libglib-2.0.so.0.6800.1 (preserved)
>>> package: media-gfx/graphite2-1.3.14
 *  - /usr/lib/libgraphite2.so.3
 *  - /usr/lib/libgraphite2.so.3.2.1
 *      used by /usr/lib/libharfbuzz.so.0 (preserved)
 *      used by /usr/lib/libharfbuzz.so.0.20801.0 (preserved)
>>> package: media-libs/freetype-2.11.0
 *  - /usr/lib/libfreetype.so.6
 *  - /usr/lib/libfreetype.so.6.17.4
 *      used by /usr/lib/libharfbuzz.so.0 (preserved)
 *      used by /usr/lib/libharfbuzz.so.0.20801.0 (preserved)
>>> package: media-libs/harfbuzz-2.8.2-r1
 *  - /usr/lib/libharfbuzz.so.0
 *  - /usr/lib/libharfbuzz.so.0.20801.0
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.17.4 (preserved)
>>> package: media-libs/libpng-1.6.37-r2
 *  - /usr/lib/libpng16.so.16
 *  - /usr/lib/libpng16.so.16.37.0
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.17.4 (preserved)
>>> package: sys-libs/zlib-1.2.11-r4
 *  - /usr/lib/libz.so.1
 *  - /usr/lib/libz.so.1.2.11
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.17.4 (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
Valhalla /home/kopsu # emerge -pv @preserved-rebuild

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 KiB



What do you think would solve this situation? I've reinstalled libs and programs but nothing works... zlib bzip2 glib pcre pcre2 glibc gcc libtool util-linux binutils etc. (essentially whole @system)

Help needed! this is driving me nuts!


Last edited by _kopsu_ on Tue Aug 03, 2021 7:09 am; edited 4 times in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Jul 31, 2021 2:42 am    Post subject: Reply with quote

You can emerge them by hand and they will go off preserved-rebuild list. In any case, we should look at your emerge --info for starters.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Phoenix591
Guru
Guru


Joined: 17 Sep 2007
Posts: 487

PostPosted: Sat Jul 31, 2021 3:23 pm    Post subject: Reply with quote

it looks like you have a circle of preserved libs all depending on each other holding each other in place: (preserved) is behind all of the used by entries.

Try removing /usr/lib/libfreetype.so.6.17.4 and /usr/lib/libfreetype.so.6 .
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Aug 01, 2021 2:59 am    Post subject: Reply with quote

Phoenix591 wrote:
it looks like you have a circle of preserved libs all depending on each other holding each other in place: (preserved) is behind all of the used by entries.

Try removing /usr/lib/libfreetype.so.6.17.4 and /usr/lib/libfreetype.so.6 .

Those are current lib files provided by freetype-2.10.4 with a long list of dependencies. Removing them sounds like a bad idea. Re-emerging freetype sounds like a good idea to me.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
_kopsu_
n00b
n00b


Joined: 31 Mar 2003
Posts: 72
Location: Muurame, Finland

PostPosted: Mon Aug 02, 2021 7:05 am    Post subject: Reply with quote

emerge --info

Code:

ortage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop, gcc-11.1.0, glibc-2.33-r1, 5.11.12-gentoo x86_64)
=================================================================
System uname: Linux-5.11.12-gentoo-x86_64-AMD_Ryzen_5_2600X_Six-Core_Processor-with-glibc2.33
KiB Mem:    16403376 total,  11486000 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Fri, 30 Jul 2021 00:45:01 +0000
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p4) 2.36.1
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.7.11::gentoo, 3.8.11::gentoo, 3.9.6::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-lang/rust-bin:        1.53.0::gentoo
dev-util/ccache:          4.3-r3::gentoo
dev-util/cmake:           3.21.1::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.12.6-r2::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.3.0-r2::gentoo, 11.1.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.at.gentoo.org/gentoo-portage
    priority: -1000
    sync-webrsync-verify-signature: true

Installed sets: @perl-cleanup
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=znver1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 1 --load-average 3.5 --autounmask=y --autounmask-write=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg ccache config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ rsync://ftp.belnet.be/gentoo/gentoo/ ftp://mirror.netcologne.de/gentoo/ https://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/usr/lib/systemd"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fi"
MAKEOPTS="-j4 -l"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="16k_voice 3dnow 64-bit-bfd S3TC X a52 aac aacplus aacs acl acpi all_sfx alsa amd64 amr animation-rtl apng archive artworkextra ass audiofile audioscrobbler auto-hinter autoipd avahi avcodec avconv avformat bash-completion bluetooth bluray bookmarks bs2b btrfs buspirate-spi bzip2 cairo cdda cddb cdio cdr cdrdao clang cli clutter colord contrast corefonts cpudetection crypt cryptsetup css ctags cube cups curl curlwrappers cvs cxx cycles d3d9 dbus deep-sky demosaic development dhcp dhcpcd dirac dos download dri drm dso dts dv dvb dvd dvdnav dvdr efi efiemu elogind emboss encode epub eselect eselect-ldso ewf exif extensions extra-ciphers f2fs faac faad facebook fading-colors fam fastscroll fat fbcon_frontend_sdl fbcondecor ffmpeg ffmpegthumbnailer fftw flac flickr fontconfig foomatic frei0r fuse g3dvl gallium gbm gdbm gentoo-vm geo geoip gflags gif gimp git glamor glib glibc-omitfp glut google googledrive gphoto2 gpm gpu-accel graphicsmagick graphite gstreamer gtk gtk3 gudev gui gzip harfbuzz hddtemp hdri heif hires-icons hwaccel hwdb i18n iconv icu id3 id3tag infinality initramfs inotify introspection iplayer ipp_autosetup ipv6 irc javafx javascript jbig jfs jpeg jpeg2k jumbo-build keymap lastfm lcms lensfun libass libburn libcanberra libdrm libffi libglvnd libinput libkms libmpeg2 libmpv libnl libnotify libtirpc libv4l2 libvisual libxml2 live llvm lm-sensors lock lua52compat luajit lz4 lzma lzo mad map markdown matroska mdnsresponder-compat media-library minizip mms mmx mmxext mng modemmanager modern-top mp3 mp4 mpeg mpeg2 mpg123 msn mtp multilib musepack musicbrainz ncurses netloc network networkmanager nls nmap-update nptl nptlonly nsplugin ntfs ntfsprogs nut obex odf offensive offlinehelp ogg ogg123 opencl openexr opengl openimageio openmp openntpd openrc openssl opensubdiv opus orc osmesa pam pango pcap pclm pcre pdf pdf-writer perl perl-geoipupdate picasa playlist png policykit postproc postscript ppds printsupport projectm pulseaudio qt5 quicktime rar raw readline realtime rle rpc rtmp s3tc savedconfig schroedinger sdl seccomp session sftp sha1 sha2 sha3 shared-glapi shout smp sndfile speex split-usr sqlite sse sse2 sse3 sse4a ssh ssl staging stars startup-notification stream subversion sudo suid svg svg2 symlink syslog system-cairo system-jpeg system-llvm system-sqlite taglib tcpd textures theora threads threadsafe thumbnail thunar tiff timezone tls-heartbeat totem transcode truetype tsmuxer ttf tty-helpers twolame udev udf udisks unicode unzip update_drivedb upnp upower usb utp v4l v8 vala vdpau vector-icons verify-sig vim-syntax vimeo vkd3d voices vorbis vpx vte vulkan vulkaninfo wav wavpack webgl webkit webkit2 webm webp webphoto webready webrtc-aec webserver widevine widgets wifi wma wma-fixed wmf workbench wxwidgets x264 x265 xattr xcb xcomposite xdg xfce xfs xft xml xmp xorg xpm xpresent xrandr xscreensaver xulrunner xv xvid xvidmode zeroconf zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon* nikon*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu pc efi-32 efi-64" INPUT_DEVICES="keyboard mouse libinput" KERNEL="linux" L10N="en fi" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-3 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27 ruby30" SANE_BACKENDS="canon pixma epson epson2 sharp" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLA
Back to top
View user's profile Send private message
_kopsu_
n00b
n00b


Joined: 31 Mar 2003
Posts: 72
Location: Muurame, Finland

PostPosted: Mon Aug 02, 2021 7:06 am    Post subject: Reply with quote

Emerging freetype does nothing, the preserved-libs issue does not go away.
Back to top
View user's profile Send private message
_kopsu_
n00b
n00b


Joined: 31 Mar 2003
Posts: 72
Location: Muurame, Finland

PostPosted: Mon Aug 02, 2021 9:53 am    Post subject: Reply with quote

Ok, i think i solved the problem by removing freetype libs manually as suggested and emerging freetype again. As i tried before it compiles and installs fine so i had a nerve to do it and remove the libs.
Actually this was only cosmetic as i guess freetype worked.
A bit scary fix but nothing compared to glibc things or @system stuff that can be b0rked.

I still have other issues that are not related to this and many compiles still fail on other errors. :-( I will post them in other threads.

Thank you.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Aug 02, 2021 4:34 pm    Post subject: Reply with quote

Well done and thanks for closing this loop.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum