Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 458306

Summary: revdep-rebuild exit code can indicate success even if there was a failure
Product: Portage Development Reporter: Robert Forsman <gentoo>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert Forsman 2013-02-19 15:16:28 UTC
Several packages have post-installation messages of the form

revdep-rebuild --library something-obsolete.so && rm something-obsolete.so

Unfortunately, revdep-rebuild sometimes exits with a success status even when things go horribly wrong.  In my case I was rebuilding packages depending on libgmp.so, one of which is gcc.  When /usr filled up, the rebuild malfunctioned, revdep-rebuild indicated success, and libgmp was deleted, crippling the system compiler and probably several other applications.

To recover I had to cross-compile gcc on another computer and install the resulting binary package.


Reproducible: Always

Steps to Reproduce:
1. have an almost-full /usr
2. revdep-rebuild something
3. echo $?
Actual Results:  
revdep-rebuild indicated success even though the ebuild died in the middle.

Expected Results:  
revdep-rebuild should have indicated a failure.
Comment 1 Robert Forsman 2013-02-19 16:13:39 UTC
revdep-rebuild is from gentoolkit-0.3.0.4
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-20 14:27:50 UTC
(In reply to comment #1)
> revdep-rebuild is from gentoolkit-0.3.0.4

You may want to upgrade to 0.3.0.7.

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