There appears to be a syntax error in /usr/portage/eclass/db.eclass Original code (starting at line 48): <code> if [ -n ${target} ]; then ewarn "Could not find ${target}/db.h" elif einfo "Apparently you just removed the last instance of $PN. Removing the symlinks" fi </code> The 'elif' on line 49 has no condition after it, hence causing the syntax error at 'fi'. My solution was to change 'elif' to an 'else' and it seemed to work just fine. I'm not sure if this should be considered a 'major' issue, but it prevented me from doing 'emerge -u world' until I fixed it. Reproducible: Always Steps to Reproduce: 1.emerge db 2. 3. Actual Results: Emerge crashed with a syntax error. Expected Results: Emerged db.
Already fixed, please 'emerge --sync' again. Thanks for reporting.