Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210475 - gentoolkit-0.2.4_pre7 should handle missing .la files gracefully
Summary: gentoolkit-0.2.4_pre7 should handle missing .la files gracefully
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-17 15:02 UTC by Kyle Elbert
Modified: 2008-02-18 17:43 UTC (History)
2 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 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.