Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351849 - portage should clearly warn and force user to remove packages not available in tree to prevent file collisions
Summary: portage should clearly warn and force user to remove packages not available i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 358521 (view as bug list)
Depends on:
Blocks: 349307
  Show dependency tree
 
Reported: 2011-01-16 15:22 UTC by John Feuerstein
Modified: 2011-03-29 19:03 UTC (History)
7 users (show)

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 John Feuerstein 2011-01-16 15:22:19 UTC
Comparing the distfile of x11-proto/printproto-1.0.5 with 1.0.4 shows that it now includes a man page, which is automatically installed by the ebuild:

printproto-1.0.5
|-- man
|   |-- Xprint.man
|   `-- Xprint.sgml

However, this man page is also installed by app-doc/xorg-docs-1.4-r1:

 * Detected file collision(s):
 * 
 *      /usr/share/man/man7/Xprint.7.bz2
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-doc/xorg-docs-1.4-r1
 *      /usr/share/man/man7/Xprint.7.bz2


Reproducible: Always

Steps to Reproduce:
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2011-01-22 09:15:36 UTC
xorg-docs has been gone from portage for a looooooooooooong time.

Thanks
Comment 2 Ulrich Müller gentoo-dev 2011-01-22 09:41:24 UTC
(In reply to comment #1)
> xorg-docs has been gone from portage for a looooooooooooong time.

Which doesn't make it magically vanish from users' systems. ;)
Putting a blocker against it into printproto cannot harm.
Comment 3 Didier Barvaux 2011-01-23 11:27:42 UTC
Hit by this bug too. A blocker would be welcome.
Comment 4 Matthew Schultz 2011-02-21 20:03:05 UTC
Ran into the same problem.  No matter how old the package is, if one blocks the other it should remain in there if you don't update your box very often.  In my case I do update it fairly often and yet I still ran into this issue.
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2011-02-21 20:22:43 UTC
Not too often?

This package is masked for removal since 19 September 2009 and gone from main tree 30 days after that. For how long we should support removed things from main tree?

Anyway we could add the blocker to eclass given the fact quite more packages now pull in the manpages from old xorg-docs.
Or we can make portage scream way way harder on users keeping removed packags.
Comment 6 Matthew Schultz 2011-02-21 21:28:04 UTC
I'm for screaming harder with keeping unused packages.  A file collision error is not obvious as to what's going on.  It would help if there was a list of packages which were not found in any repo when running emerge -uDNa world even if there wasn't a blocked for removal message for them.

I'm not sure how this problem arised since I update this system on a fairly regular basis other than a perfect storm where I did not update it during the time there existed a blocked for removal message and when the package was removed, so was that message thereby not notifying me that I needed to remove the package.
Comment 7 Matthew Schultz 2011-02-21 21:28:58 UTC
(In reply to comment #6)
> I'm for screaming harder with keeping unused packages. 

Sorry I meant removed packages not existing in any repo.
Comment 8 Zac Medico gentoo-dev 2011-02-21 23:21:31 UTC
I think this is a symptom of people not using emerge --depclean as they should. I'm planning to add a suggestion about --depclean to the emerge man page, as a response to bug 354787. Maybe emerge should also display a reminder after world updates.
Comment 9 Matthew Schultz 2011-02-22 15:31:12 UTC
(In reply to comment #8)
> I think this is a symptom of people not using emerge --depclean as they should.
> I'm planning to add a suggestion about --depclean to the emerge man page, as a
> response to bug 354787. Maybe emerge should also display a reminder after world
> updates.
> 

Sounds good to me.  I was not aware that depclean is used for obsolete packages.  A reminder after a world update would help.
Comment 10 Zac Medico gentoo-dev 2011-03-08 02:25:05 UTC
Since portage-2.1.9.41 and 2.2.0_alpha25, emerge suggests to run
--depclean after world updates:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=550795df709cfa9ec4a9502a4ad835319f778e95

The message looks like this:

 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2011-03-29 19:03:41 UTC
*** Bug 358521 has been marked as a duplicate of this bug. ***