I made this because Wine cannot run CLR binaries, Mono/PNet cannot run MSDOS/WIN32 binaries and the kernel binfmt_misc is not advanced enough to differ the types of Windows EXEs. It is a tiny C-program (winexe-detector) that detects if it is a CLR, MSDOS or WIN32 EXE, and a small shellscript (run-exe) that reads /etc/conf.d/run-exe and executes CLR binaries with either mono or pnet/ilrun or some other program, MSDOS binaries with dosemu or wine and WIN32 binaries with wine. And a /etc/init.d/run-exe script to register Windows EXEs with /usr/bin/run-exe. It will conflict with the /etc/{conf,init}.d/dotnet support in the mono ebuild that was added (partly by me) some time ago. This solution is much better!
Created attachment 18413 [details] sys-apps/run-exe/run-exe-0.8.ebuild
Created attachment 18414 [details] distfiles/run-exe-0.8.tar.bz2 It's less than 4 KB so I attach it here.. ;)
*** Bug 88380 has been marked as a duplicate of this bug. ***
6 years later, and Gentoo still lacks this obvious functionality... bump (Also, bug 246456 is dupe-like)
I've modified attached app a little and attached it to bug #246456 with pe-format integration in mind.
These update notifications sometimes make me so nostalgic... :)
I've commited similar solution of mine to the Sunrise Overlay per bug #321233. The package is named 'sys-apps/pe-format2', and as dotnet team doesn't maintain the original 'pe-format' anymore, there is a slight chance that it will replace it at some point.
+*pe-format-2.0.3 (12 Sep 2010) + + 12 Sep 2010; Pacho Ramos <pacho@gentoo.org> +pe-format-2.0.3.ebuild, + metadata.xml: + Version bump with a new upstream, new proxy maintainer and fixing old bugs + #246456, #29795 (for support more exe files), #294749 (stop using bashisms + and adapt script to openrc), #321233 (pe-format2 is now pe-format). Really + thanks a lot to Michał Górny for taking care of this package. +