Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616830 - sys-devel/portage - depclean unmerge some world packages
Summary: sys-devel/portage - depclean unmerge some world packages
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 11:47 UTC by Lagu
Modified: 2017-04-29 20:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2017-04-28 11:47:25 UTC
Hi all, i'm afraid to run the depclean command because when i read what files will unmerge there was packages of the world....

emerge -a --depclean

Here is what is trying to clean:

>>> These are the packages that would be unmerged:

 gnome-extra/gnome-search-tool
    selected: 3.6.0 
   protected: none 
     omitted: none 

 dev-ruby/json
    selected: 1.8.2-r1 
   protected: none 
     omitted: 2.0.3 

 sys-devel/automake
    selected: 1.14.1 
   protected: none 
     omitted: 1.9.6-r4 1.11.6-r1 1.15 

 dev-python/keyring
    selected: 10.2 
   protected: none 
     omitted: none 

 dev-ruby/tins
    selected: 1.6.0 
   protected: none 
     omitted: none 

 net-im/empathy
    selected: 3.12.12 
   protected: none 
     omitted: none 

 app-admin/gnome-system-log
    selected: 3.9.90 
   protected: none 
     omitted: none 

 dev-libs/libgames-support
    selected: 1.0.2 
   protected: none 
     omitted: none 

 app-arch/rpm
    selected: 4.11.0.1 
   protected: none 
     omitted: none 

 net-wireless/cpyrit-cuda
    selected: 0.5.0 
   protected: none 
     omitted: none 

 sys-kernel/hardened-sources
    selected: 4.9.20 
   protected: none 
     omitted: 4.9.24 

 mail-client/mailx-support
    selected: 20060102-r2 
   protected: none 
     omitted: none 

 dev-cpp/gmock
    selected: 1.7.0-r1 
   protected: none 
     omitted: none 

 dev-ruby/typhoeus
    selected: 0.6.9 
   protected: none 
     omitted: 1.1.2 

 sys-kernel/hardened-sources
    selected: 4.9.21 
   protected: none 
     omitted: 4.9.24 

 media-libs/libebur128
    selected: 1.2.0-r1 
   protected: none 
     omitted: none 

 sys-kernel/hardened-sources
    selected: 4.9.22 
   protected: none 
     omitted: 4.9.24 

 dev-lang/vala
    selected: 0.30.1 
   protected: none 
     omitted: 0.34.7 

 dev-ruby/celluloid-io
    selected: 0.16.2 
   protected: none 
     omitted: none 

 dev-util/debhelper
    selected: 9.20160814 
   protected: none 
     omitted: none 

 dev-java/jaxme
    selected: 0.5.2-r2 
   protected: none 
     omitted: none 

 dev-cpp/gtksourceviewmm
    selected: 3.18.0 
   protected: none 
     omitted: none 

 dev-python/regex
    selected: 2016.01.10 
   protected: none 
     omitted: none 

 gnome-extra/gconf-editor
    selected: 3.0.1-r1 
   protected: none 
     omitted: none 

 sci-libs/ufconfig
    selected: 3.5.0 
   protected: none 
     omitted: none 

 media-libs/libpng
    selected: 1.2.57 
   protected: none 
     omitted: 1.6.27 

 dev-python/oauth2
    selected: 1.9.0_p1 
   protected: none 
     omitted: none 

 dev-lang/vala
    selected: 0.32.1 
   protected: none 
     omitted: 0.34.7 

 dev-python/sqlalchemy
    selected: 1.0.15 
   protected: none 
     omitted: none 

 java-virtuals/stax-api
    selected: 1-r4 
   protected: none 
     omitted: none 

 sys-apps/mlocate
    selected: 0.26-r2 
   protected: none 
     omitted: none 

 dev-python/secretstorage
    selected: 2.3.1 
   protected: none 
     omitted: none 

 net-libs/telepathy-farstream
    selected: 0.6.2 
   protected: none 
     omitted: none 

 net-libs/webkit-gtk
    selected: 2.4.11-r1 
   protected: none 
     omitted: 2.4.11-r200 2.16.1 

 media-libs/clutter-gst
    selected: 2.0.18 
   protected: none 
     omitted: 3.0.24 

 net-im/telepathy-connection-managers
    selected: 2-r2 
   protected: none 
     omitted: none 

 dev-python/httplib2
    selected: 0.9.2-r2 
   protected: none 
     omitted: none 

 dev-util/nvidia-cuda-toolkit
    selected: 8.0.61 
   protected: none 
     omitted: none 

 dev-cpp/gtest
    selected: 1.7.0 
   protected: none 
     omitted: none 

 dev-ruby/celluloid
    selected: 0.16.0-r1 
   protected: none 
     omitted: none 

 dev-java/xmldb
    selected: 20011111-r1 
   protected: none 
     omitted: none 

 dev-db/hsqldb
    selected: 1.8.1.3-r2 
   protected: none 
     omitted: none 

 net-voip/telepathy-gabble
    selected: 0.18.3 
   protected: none 
     omitted: none 

 java-virtuals/servlet-api
    selected: 2.5-r1 
   protected: none 
     omitted: 2.4 3.0-r1 

 net-irc/telepathy-idle
    selected: 0.2.0 
   protected: none 
     omitted: none 

 dev-java/tomcat-servlet-api
    selected: 6.0.44-r1 
   protected: none 
     omitted: 5.5.27-r1 7.0.73 

All selected packages: =mail-client/mailx-support-20060102-r2 =gnome-extra/gconf-editor-3.0.1-r1 =sys-apps/mlocate-0.26-r2 =dev-libs/libgames-support-1.0.2 =net-im/empathy-3.12.12 =app-admin/gnome-system-log-3.9.90 =net-irc/telepathy-idle-0.2.0 =dev-util/nvidia-cuda-toolkit-8.0.61 =dev-ruby/celluloid-io-0.16.2 =dev-ruby/celluloid-0.16.0-r1 =dev-ruby/json-1.8.2-r1 =net-libs/webkit-gtk-2.4.11-r1 =dev-python/oauth2-1.9.0_p1 =dev-lang/vala-0.30.1 =media-libs/libpng-1.2.57 =net-libs/telepathy-farstream-0.6.2 =dev-ruby/typhoeus-0.6.9 =net-im/telepathy-connection-managers-2-r2 =dev-python/httplib2-0.9.2-r2 =dev-ruby/tins-1.6.0 =dev-db/hsqldb-1.8.1.3-r2 =sci-libs/ufconfig-3.5.0 =media-libs/libebur128-1.2.0-r1 =media-libs/clutter-gst-2.0.18 =net-voip/telepathy-gabble-0.18.3 =dev-java/tomcat-servlet-api-6.0.44-r1 =dev-python/regex-2016.01.10 =gnome-extra/gnome-search-tool-3.6.0 =dev-python/keyring-10.2 =app-arch/rpm-4.11.0.1 =dev-cpp/gtksourceviewmm-3.18.0 =java-virtuals/servlet-api-2.5-r1 =dev-java/jaxme-0.5.2-r2 =dev-java/xmldb-20011111-r1 =java-virtuals/stax-api-1-r4 =dev-lang/vala-0.32.1 =sys-devel/automake-1.14.1 =dev-python/sqlalchemy-1.0.15 =dev-cpp/gtest-1.7.0 =dev-cpp/gmock-1.7.0-r1 =dev-python/secretstorage-2.3.1 =sys-kernel/hardened-sources-4.9.20 =sys-kernel/hardened-sources-4.9.21 =sys-kernel/hardened-sources-4.9.22 =dev-util/debhelper-9.20160814 =net-wireless/cpyrit-cuda-0.5.0


I use the hardened-sources, obvs is in the world file:

grep hardened world
sys-kernel/hardened-sources


The reason because i'm afraif of run depclean is because can accidentally remove some important package.....


Well, but testing now if i run depclean with '--with-bdeps=y' at least now don't try to remove the kernel, i can't confirm if there isn't other problem.

I test this in portage 2.3.5 (unstable) and 2.3.3 (stable) and have the same behavior.

Note: I'm using x64

Thx. Cya.
Comment 1 Coacher 2017-04-28 19:25:11 UTC
You currently have both 4.9.21 and 4.9.24 versions of hardened-sources installed.

Portage says:
 sys-kernel/hardened-sources
    selected: 4.9.21 
   protected: none 
     omitted: 4.9.24

This means that hardened-sources-4.9.21 is selected for removal,
but hardened-sources-4.9.24 is omitted and will be preserved.

This is the normal and expected behaviour of portage. You shouldn't worry, as portage won't remove your world package completely, just prune older versions.
Comment 2 Lagu 2017-04-29 02:02:20 UTC
UU, Sorry, Sorry, I post the second emerge, with the bdeps option, here is the first:

sudo emerge -a --depclean hardened-sources
Contraseña: 

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 sys-kernel/hardened-sources
    selected: 4.9.23 4.9.24 
   protected: none 
     omitted: none 

All selected packages: =sys-kernel/hardened-sources-4.9.23 =sys-kernel/hardened-sources-4.9.24

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] 

Thx. Cya.
Comment 3 Greg Kubaryk 2017-04-29 02:42:27 UTC
(In reply to Lagu from comment #2)
> sudo emerge -a --depclean hardened-sources

It's doing what you asked it to do.  This is not a bug.
Comment 4 Lagu 2017-04-29 03:51:10 UTC
Def of depclean:

Cleans  the  system by removing packages that are not associated with explicitly merged packages. Depclean works by creating the full dependency tree from the @world set, then comparing it to installed packages. Packages installed, but not part of the dependency tree, will be  uninstalled  by  dep‐clean.


Why is trying to uninstall all the hardened-sources if is in the world file?

Ans have a different behavior with bdeps option.

Thx. Cya.
Comment 5 Coacher 2017-04-29 09:30:04 UTC
(In reply to Lagu from comment #4)
> Def of depclean:
> 
> [...]
> 
> Why is trying to uninstall all the hardened-sources if is in the world file?
Because you've asked it to do so by passing hardened-sources as a command-line option.

Please read the paragraph you've cited further:
When given one or more atoms, it will unmerge matched packages that have no reverse dependencies.
Comment 6 Lagu 2017-04-29 20:28:32 UTC
Hi, mm, when i test this in first place i do this with a normal depclean, and there i get the problem, is right, the last output is wrong.

Anyway, now for some reason is working fine (i uninstall the hardened-sources old version, then i reinstall it to test this, but there i can't see the problem).

If i found other thing i'll post it.

Thx for your time.

Cya.