Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --depclean wants to remove nano, why?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
tant0c1b0
n00b
n00b


Joined: 01 Aug 2013
Posts: 59

PostPosted: Sat Dec 21, 2013 1:20 pm    Post subject: emerge --depclean wants to remove nano, why? Reply with quote

Hi,
I can't understand why emerge --depclean wants to remove nano (and maybe other unwanted things; I'm not able to judge since my knowledge isn't so wide). Please check the following:
Code:
sudo emerge --depclean --ask

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.

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

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


!!! 'app-editors/nano' (virtual/editor) is part of your system profile.
!!! Unmerging it may be damaging to your system.


 app-editors/nano
    selected: 2.3.2
   protected: none
     omitted: none

 app-text/docbook-xml-dtd
    selected: 4.3-r1
   protected: none
     omitted: 4.1.2-r6 4.2-r2 4.4-r2

 dev-db/postgresql-base
    selected: 9.2.4-r1
   protected: none
     omitted: 9.3.2

 dev-lang/python
    selected: 3.2.5-r3
   protected: none
     omitted: 2.7.5-r3 3.3.2-r2

 gnome-base/gsettings-desktop-schemas
    selected: 3.8.2
   protected: none
     omitted: none

 perl-core/ExtUtils-Command
    selected: 1.170.0
   protected: none
     omitted: none

 perl-core/JSON-PP
    selected: 2.272.0
   protected: none
     omitted: none

 perl-core/MIME-Base64
    selected: 3.130.0
   protected: none
     omitted: none

 perl-core/Perl-OSType
    selected: 1.2.0
   protected: none
     omitted: none

 perl-core/Test-Simple
    selected: 0.980.0
   protected: none
     omitted: none

 perl-core/digest-base
    selected: 1.170.0
   protected: none
     omitted: none

 sys-devel/libperl
    selected: 5.10.1
   protected: none
     omitted: none

 x11-themes/gnome-icon-theme
    selected: 3.8.3
   protected: none
     omitted: none

All selected packages: perl-core/Test-Simple-0.980.0 app-editors/nano-2.3.2 sys-devel/libperl-5.10.1 gnome-base/gsettings-desktop-schemas-3.8.2 perl-core/MIME-Base64-3.130.0 x11-themes/gnome-icon-theme-3.8.3 perl-core/Perl-OSType-1.2.0 dev-lang/python-3.2.5-r3 perl-core/JSON-PP-2.272.0 perl-core/digest-base-1.170.0 dev-db/postgresql-base-9.2.4-r1 app-text/docbook-xml-dtd-4.3-r1 perl-core/ExtUtils-Command-1.170.0

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

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

Quitting.

Packages installed:   875
Packages in world:    64
Packages in system:   44
Required packages:    862
Number to remove:     13

Thanks in advance :)
Back to top
View user's profile Send private message
Apheus
Apprentice
Apprentice


Joined: 12 Jul 2008
Posts: 235

PostPosted: Sat Dec 21, 2013 1:32 pm    Post subject: Reply with quote

nano has been removed from @system a while ago. If you want to keep it, just add it to world:

Code:
emerge --noreplace app-editors/nano


I don't know what to make of the output "app-editors/nano is part of system", this has not been true for months. Except maybe if you do not have any other editor installed.

I doubt the other packages have to do with nano, just try it after adding nano to world.
Back to top
View user's profile Send private message
tant0c1b0
n00b
n00b


Joined: 01 Aug 2013
Posts: 59

PostPosted: Sat Dec 21, 2013 3:27 pm    Post subject: Reply with quote

Apheus wrote:
nano has been removed from @system a while ago. If you want to keep it, just add it to world:

Code:
emerge --noreplace app-editors/nano


I don't know what to make of the output "app-editors/nano is part of system", this has not been true for months. Except maybe if you do not have any other editor installed.

I doubt the other packages have to do with nano, just try it after adding nano to world.


I did emerge --depclean after adding nano to world favourites as you suggested. The problem is that it removed the icon pack in use, so I had to reinstall it. Now I am a bit worried, because if emerging --deplcean had removed an unwanted thing like gnome-icon-theme, it could also have unmerge necessary packages concerning perl (in my case). The question is: why depclean doesn't know important packages that should not be removed?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 21, 2013 3:35 pm    Post subject: Reply with quote

tant0c1b0,

Its getting better, a long time ago it removed glibc for me :)
There is a warning about reviewing the package list.
_________________
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
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2369
Location: Dallas area

PostPosted: Sat Dec 21, 2013 3:40 pm    Post subject: Reply with quote

I always use either the pretend "-p" or ask "-a" option for emerging, revdep-rebuild or depclean before allowing it to run willy-nilly.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Dec 21, 2013 6:28 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favor of --depclean wants to remove nano!, which explains the whole rationale and the work-around.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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