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