Got this while updating. ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-geosciences/josm-3966/work/josm ... Rewriting source attributes /var/tmp/portage/sci-geosciences/josm-3966/temp/environment: line 2106: xml-rewrite-2.py: command not found * ERROR: sci-geosciences/josm-3966 failed (configure phase): * xml-rewrite2 failed: ./build.xml File exists. Tried export PATH="$PATH:/usr/javatoolkit/bin" Did not help.
Try re-emerging javatoolkit emerge -1 javatoolkit
emerge -e world solved my problem. The bug is somewhere else.