Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246456 - dev-dotnet/pe-format-0 should tell difference between wine and mono
Summary: dev-dotnet/pe-format-0 should tell difference between wine and mono
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 04:56 UTC by gfl3162+gbugzilla
Modified: 2010-09-12 17:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
check if file is mono or wine (check-wine-mono.c,478 bytes, text/plain)
2008-11-12 04:57 UTC, gfl3162+gbugzilla
Details
tell between mono and wine (check-wine-mono.c,506 bytes, text/plain)
2008-11-12 05:03 UTC, gfl3162+gbugzilla
Details
pe-format with exe format guessing (pe-format.tar.bz2,3.71 KB, application/octet-stream)
2009-11-21 14:59 UTC, Michał Górny
Details
The ebuild for pe-format-2.0.3 (pe-format-2.0.3.ebuild,500 bytes, text/plain)
2010-09-07 19:14 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gfl3162+gbugzilla 2008-11-12 04:56:15 UTC
When you use pe-format, you can only choose between mono and ilrun. Wine should also be included; further more, binfmt_misc should call a binary to figure out whether to call wine or mono.
Comment 1 gfl3162+gbugzilla 2008-11-12 04:57:55 UTC
Created attachment 171499 [details]
check if file is mono or wine
Comment 2 gfl3162+gbugzilla 2008-11-12 05:03:10 UTC
Created attachment 171500 [details]
tell between mono and wine

previous file guessed the size of char and int
Comment 3 Anton Romanov 2008-12-18 15:45:06 UTC
there was once also this bug#29795 with tiny C app detecting dos/win32/clr executables
Comment 4 Alexander Dubov 2009-07-12 14:55:33 UTC
Bump to this bug.

There are (and will be in foreseeable future) considerable more Wine users than Mono ones, even if only for the sake of real .Net. ;-)
Comment 5 gfl3162+gbugzilla 2009-07-14 04:26:33 UTC
Instead of creating an entirely new package, why not just include it with pe-format?
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-11-21 14:59:47 UTC
Created attachment 210794 [details]
pe-format with exe format guessing

The attached archive contains:
* pe-exec.c, executable wrapper based on code from bug #29795,
* modified cil-coff.h from above bug (fixed for amd64),
* modified pe-format init.d & conf.d files to use above (and fixed to work with OpenRC using any POSIX-capable shell).

The init.d script reads preferred executors from conf.d file and writes them into simple-to-read form, then associates MZ executables with wrapper. The wrapper reads preferred executors, tries to recognize executable type and executes it using preferred application.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-07-03 17:52:11 UTC
I've created an alternative to pe-format, supporting the mentioned feature. You can find it in Sunrise overlay as 'sys-apps/pe-format2' (bug #321233).
Comment 8 Pacho Ramos gentoo-dev 2010-09-07 15:21:52 UTC
(In reply to comment #7)
> I've created an alternative to pe-format, supporting the mentioned feature. You
> can find it in Sunrise overlay as 'sys-apps/pe-format2' (bug #321233).
> 

Have you think about simply bumping pe-format instead of "forking" it? I would be willing to proxy you for maintaining it if you are willing to do that :-)
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-07 15:37:37 UTC
(In reply to comment #8)
> Have you think about simply bumping pe-format instead of "forking" it? I would
> be willing to proxy you for maintaining it if you are willing to do that :-)

That was basically the idea, and I'm ready to 'transform' pe-format2-0.2 into pe-format-2.0.3 (with updated init.d/conf.d names).
Comment 10 Pacho Ramos gentoo-dev 2010-09-07 17:59:31 UTC
I will do that then, if you want, you can attach updated ebuild here and I will review and commit if possible

Thanks a lot
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-07 19:14:19 UTC
Created attachment 246387 [details]
The ebuild for pe-format-2.0.3

Here you are.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-07 19:15:40 UTC
Ah, and the expected checksum is:

EBUILD pe-format-2.0.3.ebuild 500 RMD160 6418282d9ffea23a18b9e5d8510852213e39971a SHA1 29c044e48c453f7c7475e3bb0ba369b3765f59b7 SHA256 533884c4de7adf1a33311d262c86610a8d883b76e9365e08aa1bcc39182a254c

github servers are laggy a little so you can get a broken file instead.
Comment 13 Pacho Ramos gentoo-dev 2010-09-07 19:20:23 UTC
OK, thanks, I will CC QA team to let them give their opinion since maybe there is something that needs to be handled before 
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-11 13:04:42 UTC
BTW I suggest moving the package into a less 'dotnetish' category afterwards.
Comment 15 Pacho Ramos gentoo-dev 2010-09-12 17:47:14 UTC
(In reply to comment #14)
> BTW I suggest moving the package into a less 'dotnetish' category afterwards.
> 

For now it will be kept in dotnet, maybe in the future... :-/


+*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.
+