TritonDataCenter / pkgsrc-legacy

Automatically updated conversion of the "pkgsrc" module from anoncvs.netbsd.org
http://www.pkgsrc.org
127 stars 64 forks source link

Please consider packaging: Wine builds, runs with minor fixes #376

Open allquixotic opened 8 years ago

allquixotic commented 8 years ago

wine 1.9.11 (latest devel release) builds fine on SmartOS joyent zone, 32-bit, and here is proof (cmd.exe is a 32-bit Windows program running at the end there).

Build notes:

#ifndef INFINITY
  #define INFINITY (1.0/0.0)
#endif

These two changes are minor enough that upstream might be willing to accept some form of fix for them, though probably not the hackjob fixes I cooked up in 5 minutes after diagnosing the problems.

Caveats/challenges:

Also, on Ubuntu and Fedora, somehow they have a multi-arch wine command that I think can run both 32-bit and 64-bit Windows binaries (that is, both Win32 and Win64) in a single binary. I'm not sure how this works (wrapper script, perhaps?) but I know it does require the dual 32-bit/64-bit libraries, so that would be a prerequisite at least (unless, again, we want to statically link the world and ship that).

Purpose

The purpose of getting wine running on SmartOS:

mamash commented 8 years ago

pkgsrc does have the previous Wine stable (1.6.2) and turns out I can make it build 32bit on SmartOS with just two minor modifications and run 'wine cmd' properly. I'll do that for the starters.

The next step would be to update it to the current 1.8 stable, where more work will likely be involved (must be a reason why nobody has cared to updated it in the past 2.5 years).