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

Bug 144018

Summary: Missing quotes in db.eclass, breaks removing symlinks
Product: Gentoo Linux Reporter: Chris L. Mason <clmason>
Component: EclassesAssignee: Paul de Vrieze (RETIRED) <pauldv>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris L. Mason 2006-08-15 09:53:09 UTC
The logic in db.eclass for removing /usr/include/db.h and db_185.h symlinks fails because of missing quotes in a "-n" test.  So when you unemerge the last db package, the symlinks aren't removed.  The following patch fixes it:

@@ -50,7 +50,7 @@
                ln -sf ${target}/db.h .
                ln -sf ${target}/db_185.h .
        elif [ ! -e "${target}/db.h" ]; then
-               if [ -n ${target} ]; then
+               if [ -n "${target}" ]; then
                        ewarn "Could not find ${target}/db.h"
                elif [ -h db.h ]; then
                        einfo "Apparently you just removed the last instance of $PN. Removing the symlinks"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2006-08-15 12:43:34 UTC
Fixed in CVS