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

Bug 210475

Summary: gentoolkit-0.2.4_pre7 should handle missing .la files gracefully
Product: Portage Development Reporter: Kyle Elbert <g2g591+gentoobugzilla>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED NEEDINFO    
Severity: trivial CC: jakub, michael
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kyle Elbert 2008-02-17 15:02:50 UTC
After screwing up my squashfs update to my /usr partation, some files are missing , and revdep-rebuild considers it to be just fine. it spits out errors when it tries to open the missing files with awk, but it completes fine without rebuilding the appropriate package. A sample block of the errors it spews without rebuilding the relevant package:
" 79% ] awk: cmd. line:5: fatal: cannot open file `/usr/lib/libulockmgr.la' for reading (No such file or directory)
awk: cmd. line:5: fatal: cannot open file `/usr/lib/libuninameslist-fr.la' for reading (No such file or directory)
awk: cmd. line:5: fatal: cannot open file `/usr/lib/libuninameslist.la' for reading(No such file or directory) "

Reproducible: Always

Steps to Reproduce:
1.remove a file in /usr/ (i think only /usr/lib may be affected, but I am unsure) that is included in a portage package
2.run revdep-rebuild
3.

Actual Results:  
revdep-rebuild considers the missing file just fine and does not rebuild the package containing it

Expected Results:  
revdep-rebuild should rebuild the package containing that missing file
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 15:34:27 UTC
revdep-rebuild's job is to fix screwed linkage after libs switched their ABI, not to fix filesystem screw-ups. If the .la file is missing, it's none of revdep-rebuild's job to guess whether a rebuild is needed or not, there are people who INSTALL_MASK *.la files among others. 

It should just handle those gracefully without spewing out similar errors.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2008-02-18 17:08:17 UTC
As far as revdep-rebuild is concerned, removing .la files is just fine.  What is causing the problem in this case is that when revdep-rebuild is looking for libraries, the find command is finding the .la files.  Then when it goes to read them, it can't.

However, in order to verify what is happening. Please attach all of the .revdep-rebuild temporary files.  You can use revdep-rebuild --keep-temp to ensure that revdep-rebuild does not delete the files.