Created attachment 273195 [details, diff] bash-4.2_p10.ebuild.patch As can be seen with strace, ln -sf removes /bin/sh before rewriting it: symlink("bash", "/bin/sh") = -1 EEXIST (File exists) unlink("/bin/sh") = 0 symlink("bash", "/bin/sh") = 0 Here's a patch which should fix that by moving the new symlink from a temp file.
looks fine, feel free to commit to all the vers in the tree
Fixed. 'touch -h "${ROOT}"/bin/sh' would be better but I'm not sure it would work everywhere yet.