Hi, I'm using alternatives.eclass in a couple of ebuilds and think it is handy to manipulate symlinks in pkg_postinst (good job!). However, I think alternatives.eclass should use `ln -sf` instead of `ln -s` because `ln -s` fails if there exists a binary in destination. alternatives_makesym/alternatives_auto_makesym is typically called from pkg_postinst, and when you upgrade ebuilds it is likely that there is a binary from previous version and symlink fails.
thanks, thats a good idea. i've changed alternatives.eclass to use ln -sf