USE="-nsplugin" emerge =dev-java/ibm-jdk-bin-1.6.0.9_p2-r1 Fails on rm "${ED}${plugin}" || die Snippet from ebuild: if use x86 || use ppc; then if use nsplugin; then local plugin="/opt/${P}/jre/plugin/$(get_system_arch)/ns7/libjavaplugin_oji.so" install_mozilla_plugin "${plugin}" else rm "${ED}${plugin}" || die fi fi With -nsplugin, $plugin is unset; rm tries to delete the $ED directory and dies. Please switch the 2 lines: if use x86 || use ppc; then local plugin="/opt/${P}/jre/plugin/$(get_system_arch)/ns7/libjavaplugin_oji.so" if use nsplugin; then install_mozilla_plugin "${plugin}" else rm "${ED}${plugin}" || die fi fi Reproducible: Always
Fixed, thanks for the report.