Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting rid of an obsolete package
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
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 8:29 am    Post subject: Getting rid of an obsolete package Reply with quote

Hello,

I have an obsolete package installed in my system (app-text/ghostscript-gpl). It is not in the world file, but several packages depend on it:

Code:
app-text/doxygen-1.13.0-r1 (app-text/ghostscript-gpl)
                           (app-text/ghostscript-gpl)
app-text/epspdf-0.6.5.1 (app-text/ghostscript-gpl)
app-text/gv-3.7.4 (app-text/ghostscript-gpl)
                  (app-text/ghostscript-gpl)
app-text/libspectre-0.2.12 (>=app-text/ghostscript-gpl-9.53.0)
                           (>=app-text/ghostscript-gpl-9.53.0)
app-text/qpdf-11.10.1 (test ? app-text/ghostscript-gpl[tiff(+)])
dev-lang/nasm-2.16.03 (doc ? app-text/ghostscript-gpl)
media-gfx/gimp-2.10.38-r1 (postscript ? app-text/ghostscript-gpl)
                          (postscript ? app-text/ghostscript-gpl)
media-gfx/graphviz-12.2.1-r1 (postscript ? app-text/ghostscript-gpl)
                             (postscript ? app-text/ghostscript-gpl)
                             (doc ? app-text/ghostscript-gpl)
media-gfx/kio-ps-thumbnailer-24.12.2 (app-text/ghostscript-gpl)
media-libs/libwmf-0.2.13-r1 (app-text/ghostscript-gpl)
                            (app-text/ghostscript-gpl)
net-print/cups-meta-1 (postscript ? >=app-text/ghostscript-gpl-9.09[cups])
net-print/libcupsfilters-2.1.0 (postscript ? app-text/ghostscript-gpl[cups])
                               (postscript ? app-text/ghostscript-gpl[cups])
net-print/libppd-2.1.0 (postscript ? >=app-text/ghostscript-gpl-9.09[cups])
                       (postscript ? >=app-text/ghostscript-gpl-9.09[cups])
sci-visualization/gnuplot-6.0.2 (doc ? app-text/ghostscript-gpl)
x11-libs/cairo-1.18.2-r1 (test ? app-text/ghostscript-gpl)


Some of the dependences can be turn off by supressing USE flags. But not all of them.

How can I get rid of it? Do I have to uninstall all dependences?
_________________
p.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 8:31 am    Post subject: Reply with quote

This is equery output. It's not always accurate. Equery takes shortcuts and usually overreports.

Post the output of
Code:
emerge -pvc ghostscript-gpl


Best Regards,
Georgi
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 9:09 am    Post subject: Reply with quote

emerge -pvc ghostscript-gpl gives:
Code:
Calculating dependencies... done!
  app-text/ghostscript-gpl-10.01.2 pulled in by:
    app-text/doxygen-1.13.0-r1 requires app-text/ghostscript-gpl
    app-text/epspdf-0.6.5.1 requires app-text/ghostscript-gpl
    app-text/gv-3.7.4 requires app-text/ghostscript-gpl
    app-text/libspectre-0.2.12 requires >=app-text/ghostscript-gpl-9.53.0:=, >=app-text/ghostscript-gpl-9.53.0:0/10.01=
    media-gfx/gimp-2.10.38-r1 requires app-text/ghostscript-gpl:=, app-text/ghostscript-gpl:0/10.01=
    media-gfx/graphviz-12.2.1-r1 requires app-text/ghostscript-gpl
    media-gfx/kio-ps-thumbnailer-24.12.2 requires app-text/ghostscript-gpl
    media-libs/libwmf-0.2.13-r1 requires app-text/ghostscript-gpl
    net-print/cups-meta-1 requires >=app-text/ghostscript-gpl-9.09[cups]
    net-print/libcupsfilters-2.1.0 requires app-text/ghostscript-gpl[cups]
    net-print/libppd-2.1.0 requires >=app-text/ghostscript-gpl-9.09[cups]

>>> No packages selected for removal by depclean
Packages installed:   1626
Packages in world:    84
Packages in system:   49
Required packages:    1626
Number to remove:     0

_________________
p.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 10:41 am    Post subject: Reply with quote

Try emerge --deselect all the lib stuff and see what happens then. When I get on my computer I'll investigate if more of the rest should be cleaned as well.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54916
Location: 56N 3W

PostPosted: Sun Feb 23, 2025 11:37 am    Post subject: Reply with quote

pstickar,

Why do you think that ghostscript-gpl is obsolete?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 12:32 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Why do you think that ghostscript-gpl is obsolete?


It is my interpretation of the error message:
Code:
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/jbig2dec:0

  (media-libs/jbig2dec-0.20:0/0.20::gentoo, ebuild scheduled for merge) USE="png -static-libs -test" ABI_X86="(64)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (media-libs/jbig2dec-0.19-r1:0/0.19::gentoo, installed) USE="png -static-libs -test" ABI_X86="(64)" pulled in by
    >=media-libs/jbig2dec-0.19:0/0.19= required by (app-text/ghostscript-gpl-10.01.2:0/10.01::gentoo, installed) USE="X cups dbus gtk (unicode) -static-libs" ABI_X86="(64)" L10N="de (-ja) -ko -zh-CN -zh-TW"
                              ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                               


!!! The slot conflict(s) shown above involve package(s) which may need to
!!! be rebuilt in order to solve the conflict(s). However, the following
!!! package(s) cannot be rebuilt for the reason(s) shown:

  (app-text/ghostscript-gpl-10.01.2:0/10.01::gentoo, installed): ebuild is masked or unavailable


Besides, emerge --search ghostscript-gpl gives
Code:
*  app-text/ghostscript-gpl
      Latest version installed: 10.01.2
      Homepage:      https://ghostscript.com/ https://git.ghostscript.com/?p=ghostpdl.git;a=summary
      Description:   Interpreter for the PostScript language and PDF
      License:       AGPL-3 CPL-1.0


Hence the ebuild is not masked but unavailable. For that reason I think that it is obsolete.
_________________
p.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 1:01 pm    Post subject: Reply with quote

pstickar wrote:
NeddySeagoon wrote:
Why do you think that ghostscript-gpl is obsolete?


It is my interpretation of the error message:
Code:
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/jbig2dec:0

  (media-libs/jbig2dec-0.20:0/0.20::gentoo, ebuild scheduled for merge) USE="png -static-libs -test" ABI_X86="(64)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (media-libs/jbig2dec-0.19-r1:0/0.19::gentoo, installed) USE="png -static-libs -test" ABI_X86="(64)" pulled in by
    >=media-libs/jbig2dec-0.19:0/0.19= required by (app-text/ghostscript-gpl-10.01.2:0/10.01::gentoo, installed) USE="X cups dbus gtk (unicode) -static-libs" ABI_X86="(64)" L10N="de (-ja) -ko -zh-CN -zh-TW"
                              ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                               


!!! The slot conflict(s) shown above involve package(s) which may need to
!!! be rebuilt in order to solve the conflict(s). However, the following
!!! package(s) cannot be rebuilt for the reason(s) shown:

  (app-text/ghostscript-gpl-10.01.2:0/10.01::gentoo, installed): ebuild is masked or unavailable


Besides, emerge --search ghostscript-gpl gives
Code:
*  app-text/ghostscript-gpl
      Latest version installed: 10.01.2
      Homepage:      https://ghostscript.com/ https://git.ghostscript.com/?p=ghostpdl.git;a=summary
      Description:   Interpreter for the PostScript language and PDF
      License:       AGPL-3 CPL-1.0


Hence the ebuild is not masked but unavailable. For that reason I think that it is obsolete.


Well, your interpretation is... you guessed it - incorrect. To further diagnose your situation I'm going to need the full command you're running with the full output. You can use wgetpaste for that.

Code:
wgetpaste -ic 'your command here'


Be careful not to pass -a (--ask) but -p (--pretend) option to emerge.

Best Regards,
Georgi
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 1:17 pm    Post subject: Reply with quote

The paste can be seen here: https://bpa.st/PJ3A.

It is the first problem of the many that appear.
_________________
p.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54916
Location: 56N 3W

PostPosted: Sun Feb 23, 2025 1:32 pm    Post subject: Reply with quote

pstickar,

Code:
$ emerge --search ghostscript
 
[ Results for search key : ghostscript ]
Searching...

*  app-text/ghostscript-gpl
      Latest version available: 10.04.0
      Latest version installed: 10.04.0
      Size of files: 66,479 KiB
      Homepage:      https://ghostscript.com/ https://git.ghostscript.com/?p=ghostpdl.git;a=summary
      Description:   Interpreter for the PostScript language and PDF
      License:       AGPL-3 CPL-1.0


Its still available here.

Code:
...
(no parents that aren't satisfied by other packages in this slot)
..
is part of an informational message that a newer version of a package is available but you can't have it because something else needs an older one.
That sort ot thing is a feature of rolling releases. Eventually the dependency will be updated and that informational message will go away.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 1:58 pm    Post subject: Reply with quote

pstickar wrote:
The paste can be seen here: https://bpa.st/PJ3A.

It is the first problem of the many that appear.


So you are on ~amd64:

Code:
ACCEPT_KEYWORDS="amd64 ~amd64"


The conflicts are so many that I'd rather have a peek in your world and start from there:

Code:
wgetpaste /var/lib/portage/world


But first try to run emerge -ca and tell me is it wants to clean something. If that something is something you don't need go ahead and clean it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 2:24 pm    Post subject: Reply with quote

The world file: https://bpa.st/RKOA.

The cleaning got rid of a few packages that I deselected before my previous post.
_________________
p.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 2:47 pm    Post subject: Reply with quote

pstickar wrote:
The world file: https://bpa.st/RKOA.

The cleaning got rid of a few packages that I deselected before my previous post.


First thing I notice is you having jabref and jabref-bin, which may or may not be a bad thing but it's definitely not the problem.

The next suspicious things are a few sci-libs, which you may deselect if they don't sound familiar to you.

The last thing is you should not have elogind there, it should be selected by either your profile or plasma.

However I don't think there's anything substantial in those above except the sci-libs packages.

If you see anything you can't think of why it's there' deselect it and run a fresh depcelan. If it doesn't remove anything you want to keep, let it go.

Do you happen to have any sets? If so, post them. If you don't, then give me a fresh wgetpsate of your world update command.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2755
Location: Here and Away Again

PostPosted: Sun Feb 23, 2025 3:39 pm    Post subject: Reply with quote

Of some interest/hint might be, that the specific version 'app-text/ghostscript-gpl-10.01.2' was removed nearly 12 months ago [1], back in 2024-03-04.

Are higher versions of it masked perhaps?

1. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24933ad6c83ee757a70ae4219aae8925d61f8a77
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 4:01 pm    Post subject: Reply with quote

I deselected several things (jabref,...).
The update command now gives: https://bpa.st/XL7A and the remaining world file is https://bpa.st/GFSQ.

I basically removed user applications that I may add later. I was afraid of deselecting elogind (and not knowing what to do if emerge -ca wants to remove it).

But the two errors remain. It is about ghostscript-gpl and the conflict between dev-util/gdbus-codegen and dev-libs/glib.
_________________
p.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 4:06 pm    Post subject: Reply with quote

Chiitoo wrote:

Are higher versions of it masked perhaps?


Yes, next step was going to be /etc/portage :)

Code:
wgetpaste -c 'grep -r "" /etc/portage/package.*
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 4:24 pm    Post subject: Reply with quote

logrusx wrote:
Chiitoo wrote:

Are higher versions of it masked perhaps?


Yes, next step was going to be /etc/portage :)

Code:
wgetpaste -c 'grep -r "" /etc/portage/package.*


https://bpa.st/QQKA

Yes, they are masked. Unmasking them, the update command turns out to be https://bpa.st/62UQ.

Thank you people for the time you invested helping me to find the problem.
The second conflict remains...
_________________
p.


Last edited by pstickar on Sun Feb 23, 2025 4:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 4:31 pm    Post subject: Reply with quote

Code:
/etc/portage/package.mask/ghostscript:>app-text/ghostscript-gpl-10.01.2


You also have plenty of ruby_targets_ruby30 which is going to cause trouble very soon.

Also plenty of python_targets_python3_11. You should not need those. Try moving ruby and python_upgrade_from_311_to_312 files out of package.use and run a full world update to see if you still need those.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54916
Location: 56N 3W

PostPosted: Sun Feb 23, 2025 4:56 pm    Post subject: Reply with quote

pstickar,

The hint is in the error
Code:
[blocks B      ] <dev-util/gdbus-codegen-2.82.5 ("<dev-util/gdbus-codegen-2.82.5" is soft blocking dev-libs/glib-2.82.5)

<dev-util/gdbus-codegen-2.82.5" is soft blocking ... update gdbus-codegen to at least 2.82.5 to fix that.

If you add --backtrack=500 to your emerge command portage will try harder to solve the dependency graph and take longer until it gives up.

Let your profile manage PYTHON and RUBY unless you know you need versions that it will not provide.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 5:04 pm    Post subject: Reply with quote

logrusx wrote:
You also have plenty of ruby_targets_ruby30 which is going to cause trouble very soon.

Also plenty of python_targets_python3_11. You should not need those. Try moving ruby and python_upgrade_from_311_to_312 files out of package.use and run a full world update to see if you still need those.


Moved the said files out of package.use and the update command does not need them: https://bpa.st/OCHA. Thank you for the hint.
_________________
p.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54916
Location: 56N 3W

PostPosted: Sun Feb 23, 2025 5:57 pm    Post subject: Reply with quote

pstickar,

Tell portage to try harder.
Code:
emerge -p --verbose-conflicts --update --newuse --deep --with-bdeps=y @world --backtrack=500


What does that say?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 6:02 pm    Post subject: Reply with quote

NeddySeagoon wrote:
pstickar,

The hint is in the error
Code:
[blocks B      ] <dev-util/gdbus-codegen-2.82.5 ("<dev-util/gdbus-codegen-2.82.5" is soft blocking dev-libs/glib-2.82.5)

<dev-util/gdbus-codegen-2.82.5" is soft blocking ... update gdbus-codegen to at least 2.82.5 to fix that.

If you add --backtrack=500 to your emerge command portage will try harder to solve the dependency graph and take longer until it gives up.

Let your profile manage PYTHON and RUBY unless you know you need versions that it will not provide.


Thank you for the didactical hints but I still do not get it. emerge --search dev-util/gdbus-codegen gives:
Code:
*  dev-util/gdbus-codegen
      Latest version available: 2.82.4
      Latest version installed: 2.82.4
      Size of files: 5.427 KiB
      Homepage:      https://www.gtk.org/
      Description:   GDBus code and documentation generator
      License:       LGPL-2+

which means to me that I have no chance of getting version 2.82.5. It is not available. I checked if I have that one masked, but no, there is no mention to gdbus in the /etc/portage/package.* files.
I also tried --backtrack=1000, to no avail. The conflict stays the same.
_________________
p.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2757

PostPosted: Sun Feb 23, 2025 6:07 pm    Post subject: Reply with quote

pstickar wrote:
NeddySeagoon wrote:
pstickar,

The hint is in the error
Code:
[blocks B      ] <dev-util/gdbus-codegen-2.82.5 ("<dev-util/gdbus-codegen-2.82.5" is soft blocking dev-libs/glib-2.82.5)

<dev-util/gdbus-codegen-2.82.5" is soft blocking ... update gdbus-codegen to at least 2.82.5 to fix that.

If you add --backtrack=500 to your emerge command portage will try harder to solve the dependency graph and take longer until it gives up.

Let your profile manage PYTHON and RUBY unless you know you need versions that it will not provide.


Thank you for the didactical hints but I still do not get it. emerge --search dev-util/gdbus-codegen gives:
Code:
*  dev-util/gdbus-codegen
      Latest version available: 2.82.4
      Latest version installed: 2.82.4
      Size of files: 5.427 KiB
      Homepage:      https://www.gtk.org/
      Description:   GDBus code and documentation generator
      License:       LGPL-2+

which means to me that I have no chance of getting version 2.82.5. It is not available. I checked if I have that one masked, but no, there is no mention to gdbus in the /etc/portage/package.* files.
I also tried --backtrack=1000, to no avail. The conflict stays the same.


Code:
# ACCEPT_KEYWORDS="~amd64" emerge --search gdbus-codegen
 
[ Results for search key : gdbus-codegen ]
Searching...

*  dev-util/gdbus-codegen
      Latest version available: 2.82.5
      Latest version installed: 2.80.5
      Size of files: 5,425 KiB
      Homepage:      https://www.gtk.org/
      Description:   GDBus code and documentation generator
      License:       LGPL-2+

[ Applications found : 1 ]


When did you last sync?
Back to top
View user's profile Send private message
pstickar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 89
Location: Germany

PostPosted: Sun Feb 23, 2025 6:17 pm    Post subject: Reply with quote

logrusx wrote:
When did you last sync?

Today in the morning.
This is good news. Tomorrow, when I sync again, I'll get it. I would do it right now ... but it is against the rules.
_________________
p.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23131

PostPosted: Sun Feb 23, 2025 8:16 pm    Post subject: Reply with quote

Instead of using emerge --search, tell Portage exactly what you want: emerge --ask --verbose other options '>=dev-util/gdbus-codegen-2.82.5' other packages / sets. This will either do what you instructed, or explain why not.
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