Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52809 - unmerge fails *silently* on read-only filesystem
Summary: unmerge fails *silently* on read-only filesystem
Status: RESOLVED DUPLICATE of bug 23851
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Bug
: 69479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-02 12:57 UTC by Joseph Turian
Modified: 2005-10-07 09:25 UTC (History)
4 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 Joseph Turian 2004-06-02 12:57:34 UTC
If one has /usr mounted read-only, "emerge unmerge foo" will remove ebuild foo from the list of installed packages. However, despite being unable actually to remove the package's files, portage will file silently, giving the same output as if it were successful and actually had removed the files.

I have verified this with portage-2.0.50-r7
Comment 1 Paul Furley 2005-06-28 10:26:21 UTC
(In reply to comment #0)
> If one has /usr mounted read-only, "emerge unmerge foo" will remove ebuild foo
from the list of installed packages. However, despite being unable actually to
remove the package's files, portage will file silently, giving the same output
as if it were successful and actually had removed the files.
> 
> I have verified this with portage-2.0.50-r7

I can confirm that this is still a bug, one year after filing, in portage-2.0.51.19.

* Expected:

On trying to remove a file belonging to the package using rm, portage would
report its inability to write to /usr/whatever.

* What actually happens:

Portage displays its normal unmerging output, listing all the files it is
removing with no error or warning. It then removes the package from the database.

* Problem:

The /usr filesystem can get filled up with old files from "unmerged" packages.
These files can be difficult to distinguish from files which are needed, leading
to potentially lots of cruft.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-09 22:56:51 UTC
*** Bug 69479 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2005-08-12 16:08:02 UTC
Currently, dblink.unmerge() simply ignores any exceptions thrown during the
os.unlink() operation.  Similar to bug 9849, we need better error handling here.
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-10-07 09:25:44 UTC

*** This bug has been marked as a duplicate of 23851 ***