Specifically, in these lines: pushd "${ED}"usr/bin >/dev/null || die for f in netsurf{,.*} ; do mv -v $f ${f/netsurf/netsurf-gtk} || die /var/tmp/portage/www-client/netsurf-3.3-r1/image/usr/bin/ contains only a "netsurf" binary. The loop blows up when the command tries to move "netsurf.*", which doesn't exist. I don't know if the latter is *supposed* to exist, but adding "test -f $f || continue" lets it install successfully. The same should probably be done for the fbcon lines above it too. (also /etc/input/mice in the elog looks like a typo... shouldn't that be /dev/?)
Tweaked elog message as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63dbca535b930794fb1fb1bf9ad986a4cf7482bb And the src_install phase as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c28cf799ee244b6b75999924f1d04cff9060f58d Thank you!