Preserved libs [Solved]

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Post Reply
msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Preserved libs [Solved]

Post by msdobrescu » Sat Dec 07, 2019 8:00

Hi, now comes that time of the year again, when I'm dumb...

I get the following:

Code: Select all

equo pl list
╠ /usr/lib64/libssl.so.1.0.0 [libssl.so.1.0.0:2 -> dev-libs/openssl-1.1.1d-r2]
╠ /usr/lib64/libcrypto.so.1.0.0 [libcrypto.so.1.0.0:2 -> dev-libs/openssl-1.1.1d-r2]
╠ /usr/lib64/libffi.so.6.0.4 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2]
╠ /usr/lib64/libffi.so.6 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2]
╠ /usr/lib32/libffi.so.6.0.4 [libffi.so.6:1 -> dev-libs/libffi-3.2.1-r2]
╠ /usr/lib32/libffi.so.6 [libffi.so.6:1 -> dev-libs/libffi-3.2.1-r2]
If I want to check why are those left and maybe remove them, what should I do next?

Sorry if I am a troll, but I can't figure out this, this time.
Last edited by msdobrescu on Sat Feb 08, 2020 9:04, edited 3 times in total.

joost
Sagely Hen
Posts: 2805
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Preserved libs

Post by joost » Sat Dec 07, 2019 15:32

This means the system keeps those libs around because some packages you installed still require them. To find out what packages do this:

example:

Code: Select all

equo pl list -v
╠ /usr/lib64/libffi.so.6.0.4 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2], needed by:
╠  -> sys-devel/llvm-8.0.1
╠ /usr/lib64/libffi.so.6 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2], needed by:
╠  -> sys-devel/llvm-8.0.1
╠ /usr/lib32/libffi.so.6.0.4 [libffi.so.6:1 -> dev-libs/libffi-3.2.1-r2], needed by:
╠  -> sys-devel/llvm-8.0.1
╠ /usr/lib32/libffi.so.6 [libffi.so.6:1 -> dev-libs/libffi-3.2.1-r2], needed by:
╠  -> sys-devel/llvm-8.0.1
Possible packages are packages that are not in Entropy anymore (and should be removed). Or packages installed from 3th party repositories that not have been rebuild against the newer lib. (Or the Entropy maintainer somehow forgot to update a package, in that case it would be a bug and this should be reported)

In my example above there was an old llvm (and clang) SLOT installed. We actually don't need it anymore:

Code: Select all

equo remove sys-devel/llvm-8.0.1
╠  @@ These are the packages that would be removed:
╠  ## [sabayon-limbo] sys-devel/clang-8.0.1 [169.0MB]
╠  ## [sabayon-limbo] sys-devel/llvm-8.0.1 [171.2MB]
╠  @@ Packages that would be removed: 2
╠  @@ Freed disk space: 340.2MB
╠  @@ Total bandwidth wasted: 86.9MB
╠  --- >>>  (1/2) sys-devel/clang-8.0.1
╠    ## Removing: sys-devel/clang-8.0.1
╠    ## Removing from Entropy: sys-devel/clang-8.0.1
>>> Regenerating /etc/ld.so.cache...
╠    ## Package phase: postremove
╠  --- >>>  (2/2) sys-devel/llvm-8.0.1
╠    ## Removing: sys-devel/llvm-8.0.1
╠    ## Removing from Entropy: sys-devel/llvm-8.0.1
☛    :: Removing library: /usr/lib64/libffi.so.6.0.4 [libffi.so.6, 2]
☛    :: Removing library: /usr/lib64/libffi.so.6 [libffi.so.6, 2]
☛    :: Removing library: /usr/lib32/libffi.so.6.0.4 [libffi.so.6, 1]
☛    :: Removing library: /usr/lib32/libffi.so.6 [libffi.so.6, 1]
>>> Regenerating /etc/ld.so.cache...
╠  @@ All done.
╠  @@ No configuration files to update.
As you can see, it now removed the preserved libraries libffi.so.6 and libffi.so.6.0.4
My blog | Mastodon | Please support Sabayon: Become a Patron

Stupot
Sagely Hen
Posts: 1793
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Preserved libs

Post by Stupot » Sat Dec 07, 2019 16:34

What is weird is that doing an equo search doesn't show that these things are installed on my system.

Code: Select all

sabayon /home/stupot # equo search llvm
╠  @@ Searching...
╠      @@ Package: sys-devel/llvm-9.0.0 branch: 5, [sabayonlinux.org] 
╠          Available:     version: 9.0.0 ~ tag: NoTag ~ revision: 1
╠          Installed:     version: 9.0.0 ~ tag: NoTag ~ revision: 1
╠          Slot:          9
╠          Homepage:      https://llvm.org/ 
╠          Description:   Low Level Virtual Machine 
╠          License:       Apache-2.0-with-LLVM-exceptions BSD UoI-NCSA public-domain rc
╠      @@ Package: sys-devel/llvm-common-9.0.0 branch: 5, [sabayonlinux.org] 
╠          Available:     version: 9.0.0 ~ tag: NoTag ~ revision: 0
╠          Installed:     version: 9.0.0 ~ tag: NoTag ~ revision: 0
╠          Slot:          0
╠          Homepage:      https://llvm.org/ 
╠          Description:   Common files shared between multiple 
╠                         slots of LLVM 
╠          License:       Apache-2.0-with-LLVM-exceptions UoI-NCSA
╠   Keywords:  llvm
╠   Found:     2 entries
sabayon /home/stupot # equo remove sys-devel/llvm-8.0.1
╠  @@ These are the packages that would be removed:
╠  ## [sabayon-limbo] sys-devel/clang-8.0.1 [169.0MB]
╠  ## [sabayon-limbo] sys-devel/llvm-8.0.1 [171.2MB]
╠  @@ Packages that would be removed: 2
╠  @@ Freed disk space: 340.2MB
╠  @@ Total bandwidth wasted: 86.9MB
╠  --- >>>  (1/2) sys-devel/clang-8.0.1
╠    ## Removing: sys-devel/clang-8.0.1
╠    ## Removing from Entropy: sys-devel/clang-8.0.1
python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4
python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4
>>> Regenerating /etc/ld.so.cache...
╠    ## Package phase: postremove
╠  --- >>>  (2/2) sys-devel/llvm-8.0.1
╠    ## Removing: sys-devel/llvm-8.0.1
╠    ## Removing from Entropy: sys-devel/llvm-8.0.1
python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4
python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4
>>> Regenerating /etc/ld.so.cache...
╠  @@ All done.
╠  @@ No configuration files to update.
☛ There are 6 preserved libraries on the system
╠ /usr/lib64/libgdbm.so.4.0.0 [libgdbm.so.4:2 -> sys-libs/gdbm-1.13-r2]
╠ /usr/lib64/libgdbm.so.4 [libgdbm.so.4:2 -> sys-libs/gdbm-1.13-r2]
╠ /usr/lib64/libffi.so.6.0.4 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2]
╠ /usr/lib64/libffi.so.6 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2]
╠ /usr/lib32/libffi.so.6.0.4 [libffi.so.6:1 -> dev-libs/libffi-3.2.1-r2]
╠ /usr/lib32/libffi.so.6 [libffi.so.6:1 -> dev-libs/libffi-3.2.1-r2]
sabayon /home/stupot # 
Apparently llvms are just living around in secret?

Code: Select all

╠ /usr/lib64/libffi.so.6.0.4 [libffi.so.6:2 -> dev-libs/libffi-3.2.1-r2], needed by:
╠  -> dev-lang/ruby-2.3.8-r1
╠  -> dev-lang/python-3.4.5
╠  -> dev-lang/python-3.5.5-r1
╠  -> sys-devel/llvm-5.0.2
╠  -> sys-devel/llvm-4.0.1-r1
╠  -> sys-devel/llvm-6.0.1
╠  -> dev-lang/ghc-8.0.2
╠  -> sys-devel/llvm-8.0.1
╠  -> sys-devel/llvm-7.0.1
None of those things show up when I do an equo search for them. I did not install them via portage and fail to sync.

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Preserved libs

Post by msdobrescu » Sat Dec 07, 2019 18:53

I have two system, on the second one I have a strange issue.
On the first, I've had ghc installed. I had to remove it and re-add all that was removed back.
Worked flawlessly.

On the second, I've removed ghc and a plethora of packages depending on it.
I've re-installed ghc. Worked.
But haskell-update throws an error:

Code: Select all

/usr/lib64/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
Same when I install the packages depending on it, removed in the first place.

I don't get it.

BTW, I don't program in Haskell, I have no idea why is there, also both systems were setup differently in this regard...

joost
Sagely Hen
Posts: 2805
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Preserved libs

Post by joost » Sat Dec 07, 2019 19:19

From what repository do you have ghc installed?
My blog | Mastodon | Please support Sabayon: Become a Patron

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Preserved libs

Post by msdobrescu » Sat Dec 07, 2019 19:40

Code: Select all

# equo i ghc
╠  @@ Calculating dependencies...
╠  ## [N] [sabayonlinux.org] dev-lang/ghc-8.0.2|0
╠  ## [N] [sabayonlinux.org] app-admin/haskell-updater-1.3.1|0
╠  @@ Packages needing to be installed/updated/downgraded: 2
╠  @@ Packages needing to be removed: 0
╠  @@ Download size: 0b
╠  @@ Used disk space: 1322.4MB
╠  @@ You need at least: 1605.7MB of free space
╠  ::: >>>  (1/1) 2 packages
╠    ## Downloading: 2 packages
╠    ## ( mirror #1 ) [dev-lang:ghc-8.0.2.50dfb6c5cf1885c489f67f11673a2ccfa6d1f9b3~0.tbz2] @ http://mirror.dkm.cz
╠    ## ( mirror #1 ) [app-admin:haskell-updater-1.3.1.f72a3bfc35b326e48d0bc1e4964e73853cae85e5~0.tbz2] @ http://mirror.dkm.cz
╠   ## Aggregated download: 2 items
╠    ## Checking package checksum...
╠    ## Checking package checksum...
╠    # [1] mirror.dkm.cz => dev-lang:ghc-8.0.2.50dfb6c5cf1885c489f67f11673a2ccfa6d1f9b3~0.tbz2
╠    # [2] mirror.dkm.cz => app-admin:haskell-updater-1.3.1.f72a3bfc35b326e48d0bc1e4964e73853cae85e5~0.tbz2
╠    ## ( mirror #1 ) [dev-lang:ghc-8.0.2.50dfb6c5cf1885c489f67f11673a2ccfa6d1f9b3~0.tbz2] success @ http://mirror.dkm.cz
╠    ## ( mirror #1 ) [app-admin:haskell-updater-1.3.1.f72a3bfc35b326e48d0bc1e4964e73853cae85e5~0.tbz2] success @ http://mirror.dkm.cz
╠  +++ >>>  (1/2) dev-lang/ghc-8.0.2
╠    ## Unpacking: dev-lang:ghc-8.0.2.50dfb6c5cf1885c489f67f11673a2ccfa6d1f9b3~0.tbz2
╠    ## Package phase: setup
 * Checking for at least 2 GiB disk space at "//usr" ...                                                                                                                                                                                                                              [ ok ]
 * Checking for at least 2 GiB disk space at "//usr" ...                                                                                                                                                                                                                              [ ok ]
╠    ## Package phase: preinstall
gtk-update-icon-cache: The generated cache was invalid.
gtk-update-icon-cache: The generated cache was invalid.
╠    ## Installing package: dev-lang/ghc-8.0.2
╠    ## [The Glasgow Haskell Compiler]
╠    ## Updating installed packages repository: dev-lang/ghc-8.0.2
╠    ## Package phase: postinstall
 * Recaching GHC package DB
/usr/lib64/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
 * 
 * ************************************************************************
 * 
 * You have just upgraded from an older version of GHC.
 * You may have to run
 *       'haskell-updater'
 * to rebuild all ghc-based Haskell libraries.
 * 
 * ************************************************************************
 * 
gtk-update-icon-cache: The generated cache was invalid.
gtk-update-icon-cache: The generated cache was invalid.
╠    ## Cleaning: dev-lang/ghc-8.0.2
╠  +++ >>>  (2/2) app-admin/haskell-updater-1.3.1
╠    ## Unpacking: app-admin:haskell-updater-1.3.1.f72a3bfc35b326e48d0bc1e4964e73853cae85e5~0.tbz2
╠    ## Package phase: setup
/usr/lib64/ghc-8.0.2/bin/ghc: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
╠    ## Installing package: app-admin/haskell-updater-1.3.1
╠    ## [Rebuild Haskell dependencies in Gentoo]
╠    ## Updating installed packages repository: app-admin/haskell-updater-1.3.1
╠    ## Package phase: postinstall
 * Recaching GHC package DB
/usr/lib64/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
gtk-update-icon-cache: The generated cache was invalid.
gtk-update-icon-cache: The generated cache was invalid.
╠    ## Cleaning: app-admin/haskell-updater-1.3.1
╠  @@ Installation complete.
╠  @@ No configuration files to update.
# haskell-updater                                                              
haskell-updater: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
# equo rm dev-lang/ghc-8.0.2              
╠  @@ These are the packages that would be removed:
╠  ## [sabayonlinux.org] app-admin/haskell-updater-1.3.1 [616.2kB]
╠  ## [sabayonlinux.org] dev-lang/ghc-8.0.2 [1321.8MB]
╠  @@ Packages that would be removed: 2
╠  @@ Freed disk space: 1322.4MB
╠  @@ Total bandwidth wasted: 141.6MB
╠  --- >>>  (1/2) app-admin/haskell-updater-1.3.1
╠    ## Removing: app-admin/haskell-updater-1.3.1
╠    ## Removing from Entropy: app-admin/haskell-updater-1.3.1
>>> Regenerating /etc/ld.so.cache...
╠    ## Package phase: postremove
 * Recaching GHC package DB
/usr/lib64/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
╠  --- >>>  (2/2) dev-lang/ghc-8.0.2
╠    ## Removing: dev-lang/ghc-8.0.2
╠    ## Removing from Entropy: dev-lang/ghc-8.0.2
╠    ## Package phase: preremove
>>> Regenerating /etc/ld.so.cache...
╠    ## Package phase: postremove
 * Recaching GHC package DB
/var/tmp/entropy/dev-lang_ghc-8.0.2/portage/._unmerge_/dev-lang/ghc-8.0.2/temp/environment: line 2579: recache: command not found
╠  @@ All done.
╠  @@ No configuration files to update.

joost
Sagely Hen
Posts: 2805
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Preserved libs

Post by joost » Sat Dec 07, 2019 19:49

That indeed looks like a bug. I'll work out a new version.
My blog | Mastodon | Please support Sabayon: Become a Patron

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Preserved libs [Solved]

Post by msdobrescu » Sun Dec 08, 2019 7:41

Thank you, Joost, your support is, as always, stellar!

Post Reply