emerge bcel failed with: "Could not find package regexp-bin", which is generated by: java-config --classpath=regexp-bin Reproducible: Always Steps to Reproduce: 1.emerge regexp-bin 2.java-config --classpath=regexp-bin 3. Actual Results: Could not find package regexp-bin Expected Results: /usr/share/regexp-bin/lib/regexp-1.3.jar Solution: Replace "dojar" with "java-pkg_dojar" in regexp ebuild and re-emerge regexp-bin package this way: sed -i 's/\(dojar\)/java-pkg_\1/' \ /usr/portage/dev-java/regexp-bin/regexp-bin-1.3.ebuild emerge --oneshot regexp-bin
should be fixed now