Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503728 - app-editors/nano: shouldn't be part of system profile
Summary: app-editors/nano: shouldn't be part of system profile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 14:01 UTC by David Heidelberg (okias)
Modified: 2014-03-07 14:27 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 David Heidelberg (okias) 2014-03-07 14:01:40 UTC
-

Reproducible: Always

Steps to Reproduce:
leonix / # emerge --depclean -av nano

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 

All selected packages: app-editors/nano-2.3.2

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

Would you like to unmerge these packages? [Yes/No] ^CInterrupted.
leonix / # emerge -av1 virtual/editor

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild   R    ] virtual/editor-0  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

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

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) virtual/editor-0
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/virtual/editor-0/work
>>> Preparing source in /var/tmp/portage/virtual/editor-0/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/virtual/editor-0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/virtual/editor-0/work ...
>>> Source compiled.
>>> Test phase [not enabled]: virtual/editor-0

>>> Install editor-0 into /var/tmp/portage/virtual/editor-0/image/ category virtual
>>> Completed installing editor-0 into /var/tmp/portage/virtual/editor-0/image/


>>> Installing (1 of 1) virtual/editor-0
 * Removing /usr/share/man
 * Removing /usr/share/info
 * Removing /usr/share/doc
 * checking 0 files for package collisions
>>> Merging virtual/editor-0 to /
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> virtual/editor-0 merged.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

leonix / # emerge --depclean -av nano

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 

All selected packages: app-editors/nano-2.3.2

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

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

pc / # emerge -s vim

*  app-editors/vim
      Latest version available: 7.4.169
      Latest version installed: 7.4.169
      Size of files: 9,827 kB
      Homepage:      http://www.vim.org/
      Description:   Vim, an improved vi-style text editor
      License:       vim


pc / # 
Actual Results:  
nano shouldn't be part of system profile.



Expected Results:  
System profile should depend only on virtual/editor, which app-editors/vim fullfil.

Tested on few machines, different arch, always behave same.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-03-07 14:11:13 UTC
That's already how it is:

$ grep nano /usr/portage/profiles/base/packages

$ grep editor /usr/portage/profiles/base/packages
*virtual/editor

(In reply to David Heidelberger (okias) from comment #0)
> Would you like to unmerge these packages? [Yes/No] ^CInterrupted.

^ That's your problem, press Y instead of CTRL-C ;-)

It's normal for --depclean to warn if you are about to wipe one of the providers
I have only vim here, and 'emerge -avDNut world' and such don't try to pull it back
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-03-07 14:11:36 UTC
See also https://blog.flameeyes.eu/2009/10/more-explanations-why-nano-is-gentoo-s-default-editor which makes an explicit reference to the system set.
Comment 3 David Heidelberg (okias) 2014-03-07 14:27:08 UTC
oh, you have right, it warn me about vim removal too.

Anyway, we could add some newbie use flag ;)

before they run vim, there will be small note which has to be confirmed by enter:

For editing file press "a".
For saving file press ":w".
For quiting editor press ":q".
For quitting without saving changes ":q!".

That's just small idea, it could be installed by default with this and after removing newbie flag it return to normal.