Platform is Gentoo Prefix. Emerging both unix2dos and dos2unix (in either order) fails. If the attempted order is unix2dos, dos2unix then the failure looks like: $ emerge dos2unix Calculating dependencies... done! [ebuild N ] app-text/dos2unix-5.1 USE="nls" [blocks B ] >=app-text/dos2unix-5 (">=app-text/dos2unix-5" is blocking app-text/unix2dos-2.2-r1) [blocks B ] app-text/unix2dos ("app-text/unix2dos" is blocking app-text/dos2unix-5.1) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. ('installed', '/', 'app-text/unix2dos-2.2-r1', 'nomerge') pulled in by app-text/unix2dos required by @selected ('ebuild', '/', 'app-text/dos2unix-5.1', 'merge') pulled in by dos2unix
Since version 5.0 app-text/dos2unix contains unix2dos executeable as well. That's why it's blocking the unix2dos package. Please unmerge app-text/unix2dos and try to upgrade to >=app-text/dos2unix-5.0
I tried your recipe. By default dos2unix-5.1 gets emerged successfully. As you say it contains both commands dos2unix and unix2dos.