Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2016 19:05:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 41543] [patch] [request] easier wine/w23 support
Message-ID:  <bug-41543-4077-h2kzZ9vyfg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-41543-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-41543-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D41543

--- Comment #5 from Jan Beich <jbeich@FreeBSD.org> ---
Would binmissctl(8) help? It's already used by poudriere + qemu-user-static=
 to
run build tools as a kind of slow cross-compilation.

  $ chmod +x foo.exe

  $ ./foo.exe
  zsh: exec format error: ./foo.exe

  $ hd -n20 foo.exe
  00000000  4d 5a 90 00 03 00 00 00  04 00 00 00 ff ff 00 00=20
|MZ..............|
  00000010  b8 00 00 00                                       |....|
  00000014

  $ binmiscctl add wine32 --interpreter /usr/local/bin32/wine \
     --magic
"\x4d\x5a\x90\x00\x03\x00\x00\x00\x04\x00\x00\x00\xff\xff\x00\x00\xb8\x00\x=
00\x00"
\
     --mask=20
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x=
ff\xff"
\
     --size 20 --set-enabled

  $ ./foo.exe
  fixme:winediag:start_process Wine Staging 1.9.4 is a testing version
containing experimental patches.
  fixme:winediag:start_process Please mention your exact version when filing
bug reports on winehq.org.
  fixme:ntdll:__syscall_NtCreateNamedPipeFile Message mode not supported,
falling back to byte mode.
  load: 0.16  cmd: wine 3685 [piperd] 7.64r 0.05u 0.10s 0% 11496k

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-41543-4077-h2kzZ9vyfg>