rar (http://www.rarlabs.org) has a seperate unrar utility. Granted rar -x does just that, extract etc. however rar is closed source. unrar however has it's full source code available. With the whole open sourceness and optimized builds gentoo follows emerging rar should depend on unrar therefor, and not install unrar from the binary package. Personally I'd even go as far as saying unrar should be installed from 'gentoo genuine' binaries when users don't want to compile things, and thus rar should always depend on unrar or unrar-bin. I'm no ebuild scripter. I don't know how to write ebuilds. But my guess is that, RDEPEND needs something along the lines of + >=apps-arch/unrar-${PV} - dosym /opt/rar/bin/unrar /opt/bin/unrar and maybe even + mv /opt/rar/bin/unrar /opt/rar/bin/unrar-bin Reproducible: Always Steps to Reproduce:
doesnt really matter, /usr/bin is in PATH before /opt/bin