Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144018 - Missing quotes in db.eclass, breaks removing symlinks
Summary: Missing quotes in db.eclass, breaks removing symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 09:53 UTC by Chris L. Mason
Modified: 2006-08-15 12:43 UTC (History)
0 users

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 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