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"
Fixed in CVS