Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem uninstalling wine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Carlosk465
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2022
Posts: 78

PostPosted: Sat May 11, 2024 1:59 pm    Post subject: [SOLVED] Problem uninstalling wine Reply with quote

After uninstalling wine I had packages left that I can't rebuild because emerge @preserved-rebuild it doesn't work

I saw a similar problem but it could break the system if I uninstall all these packages right?
https://forums.gentoo.org/viewtopic-t-1142532-start-0.html

Code:

!!! existing preserved libs:
>>> package: app-arch/brotli-1.1.0
 *  - /usr/lib/libbrotlicommon.so.1
 *  - /usr/lib/libbrotlicommon.so.1.1.0
 *  - /usr/lib/libbrotlidec.so.1
 *  - /usr/lib/libbrotlidec.so.1.1.0
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.20.1 (preserved)
>>> package: app-arch/bzip2-1.0.8-r5
 *  - /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.20.1 (preserved)
>>> package: dev-libs/glib-2.78.6
 *  - /usr/lib/libglib-2.0.so.0
 *  - /usr/lib/libglib-2.0.so.0.7800.4
 *      used by /usr/lib/libharfbuzz.so.0 (preserved)
 *      used by /usr/lib/libharfbuzz.so.0.60830.0 (preserved)
>>> package: dev-libs/libpcre2-10.43
 *  - /usr/lib/libpcre2-8.so.0
 *  - /usr/lib/libpcre2-8.so.0.12.0
 *      used by /usr/lib/libglib-2.0.so.0 (preserved)
 *      used by /usr/lib/libglib-2.0.so.0.7800.4 (preserved)
>>> package: media-gfx/graphite2-1.3.14_p20210810-r3
 *  - /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.60830.0 (preserved)
>>> package: media-libs/freetype-2.13.2
 *  - /usr/lib/libfreetype.so.6
 *  - /usr/lib/libfreetype.so.6.20.1
 *      used by /usr/lib/libharfbuzz.so.0 (preserved)
 *      used by /usr/lib/libharfbuzz.so.0.60830.0 (preserved)
>>> package: media-libs/harfbuzz-8.3.0
 *  - /usr/lib/libharfbuzz.so.0
 *  - /usr/lib/libharfbuzz.so.0.60830.0
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.20.1 (preserved)
>>> package: media-libs/libpng-1.6.43
 *  - /usr/lib/libpng16.so.16
 *  - /usr/lib/libpng16.so.16.43.0
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.20.1 (preserved)
>>> package: sys-libs/zlib-1.3.1-r1
 *  - /usr/lib/libz.so.1
 *  - /usr/lib/libz.so.1.3.1
 *      used by /usr/lib/libfreetype.so.6 (preserved)
 *      used by /usr/lib/libfreetype.so.6.20.1 (preserved)
 *      used by /usr/lib/libpng16.so.16 (preserved)
 *      used by /usr/lib/libpng16.so.16.43.0 (preserved)
Use emerge @preserved-rebuild to rebuild packages using these libraries
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.


Code:
emerge @preserved-rebuild --ask

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

Calculating dependencies... done!
Dependency resolution took 3.58 s (backtrack: 0/20).


Nothing to merge; quitting.


After trying several times, I ruined freetype

Code:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.12/site-packages/portage/util/_async/ForkProcess.py", line 329, in _bootstrap
    sys.exit(target(*(args or []), **(kwargs or {})))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/_MergeProcess.py", line 275, in _target
    rval = mylink.merge(
           ^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 1898, in wrapper
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 6046, in merge
    retval = self.treewalk(
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 5094, in treewalk
    unmerge_rval = dblnk.unmerge(
                   ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 1898, in wrapper
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 2428, in unmerge
    self._prune_plib_registry(
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 2243, in _prune_plib_registry
    cpv_lib_map = self._find_unused_preserved_libs(unmerge_no_replacement)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/dbapi/vartree.py", line 3735, in _find_unused_preserved_libs
    for c in self.vartree.dbapi._linkmap.findConsumers(f):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/util/_dyn_libs/LinkageMapELF.py", line 912, in findConsumers
    raise KeyError(f"{obj_key} ({obj}) not in object list")
KeyError: '<portage.util._dyn_libs.LinkageMapELF.LinkageMapELF._ObjectKey object at 0x7f47680367a0> (/usr/lib/libfreetype.so.6.20.1) not in object list'

>>> Completed (1 of 9) media-libs/freetype-2.13.2::gentoo

>>> Failed to install media-libs/freetype-2.13.2, Log file:

>>>  '/var/tmp/portage/media-libs/freetype-2.13.2/temp/build.log'

_________________
Sorry for my way of writing, I try to ensure that the translator translates correctly and does not change the words.


Last edited by Carlosk465 on Sun May 12, 2024 3:11 am; edited 1 time in total
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1468
Location: Earth

PostPosted: Sat May 11, 2024 8:48 pm    Post subject: Reply with quote

try emerge -va @preserved-rebuild && revdep-rebuild -vp

or re-emerge the libs manually !

have you deinstalled via emerge -va --depclean wine ?

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Carlosk465
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2022
Posts: 78

PostPosted: Sat May 11, 2024 9:10 pm    Post subject: Reply with quote

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

Calculating dependencies... done!
Dependency resolution took 9.50 s (backtrack: 0/20).


Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.

 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
 * Collecting dynamic linking information
 * Scanning files
 * Checking dynamic linking consistency

Your system is consistent


I uninstalled it like this:
Code:
emerge --ask --unmerge wine-vanilla

and remove all the 32-bit USE that wine asked for
_________________
Sorry for my way of writing, I try to ensure that the translator translates correctly and does not change the words.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1468
Location: Earth

PostPosted: Sat May 11, 2024 9:38 pm    Post subject: Reply with quote

from https://wiki.gentoo.org/wiki/Gentoo_Cheat_Sheet#--depclean
Quote:
Warning
There is an --unmerge option (-C), but this is not recommended and can break the system if not used with caution. This should only ever be used if necessary, and once properly informed of what it does. This will break the system, or other software, if used on some packages. The correct way to remove packages in Gentoo is virtually always with the --depclean option, as described above. This may sometimes be useful to temporarily remove a hard block though.

have you tried via manual re-emerge the libs ?

or, just initiate @world << this will maybe re-emerge wine (not sure) and afterwords emerge -va depclean wine-vanilla.

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Carlosk465
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2022
Posts: 78

PostPosted: Sat May 11, 2024 9:49 pm    Post subject: Reply with quote

I do not understand this.
CooSee wrote:
or, just initiate @world << this will maybe re-emerge wine (not sure) and afterwords emerge -va depclean wine-vanilla.

8)


After uninstalling wine-vanilla run the following commands:

Code:
emerge --ask --verbose --update --deep --newuse --with-bdeps=y --changed-use @world
emerge --ask --depclean


Then I rebuilt all the packages that appear in the list, and I also tried to rebuild the packages that depend on it, but it didn't work.
Try with:
Code:
equery d app-arch/brotli
emerge --ask --oneshot (all the packages that the previous command gave me)


but since it didn't work I didn't continue with the others.
_________________
Sorry for my way of writing, I try to ensure that the translator translates correctly and does not change the words.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1912

PostPosted: Sat May 11, 2024 10:19 pm    Post subject: Reply with quote

The problem is the cyclical dependency of harfbuzz and freetype.

I would suggest moving /usr/lib/libharfbuzz.so* to another location until portage recognizes to clean up the other libs (like a full world update or some emaint command probably).

If this causes more issues, then it wouldn't be hard to move them back.
Back to top
View user's profile Send private message
Carlosk465
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2022
Posts: 78

PostPosted: Sat May 11, 2024 11:21 pm    Post subject: Reply with quote

grknight wrote:
The problem is the cyclical dependency of harfbuzz and freetype.

I would suggest moving /usr/lib/libharfbuzz.so* to another location until portage recognizes to clean up the other libs (like a full world update or some emaint command probably).

If this causes more issues, then it wouldn't be hard to move them back.


It worked, but I also had to move libfreetype.so.6.20.1, then it was installed correctly, I left the files in the original place and rebuilt freetype and hardbuzz again. (it's strange because I thought rebuilding freetype would create a new libfreetype.so.6.20.1 but it didn't)

Now I don't get any preserved libs. Was it corrected or just hidden?
_________________
Sorry for my way of writing, I try to ensure that the translator translates correctly and does not change the words.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1912

PostPosted: Sat May 11, 2024 11:33 pm    Post subject: Reply with quote

Carlosk465 wrote:
Now I don't get any preserved libs. Was it corrected or just hidden?

So long as all of the libraries listed in the first post are removed from /usr/lib/ then portage would have cleaned them up and removed notice in its preserved data store. If they are all gone, then it is done.
Back to top
View user's profile Send private message
Carlosk465
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2022
Posts: 78

PostPosted: Sun May 12, 2024 12:25 am    Post subject: Reply with quote

Only left:

Code:
libfreetype.so.6
libfreetype.so.6.20.1
libharfbuzz.so.0
libharfbuzz.so.0.60830.0


Thank you
_________________
Sorry for my way of writing, I try to ensure that the translator translates correctly and does not change the words.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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