From nobody@FreeBSD.org  Wed Oct 11 23:07:26 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6F2D216A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Oct 2006 23:07:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8F44A43D64
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Oct 2006 23:07:22 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9BN7MjO039796
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Oct 2006 23:07:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9BN7MD6039794;
	Wed, 11 Oct 2006 23:07:22 GMT
	(envelope-from nobody)
Message-Id: <200610112307.k9BN7MD6039794@www.freebsd.org>
Date: Wed, 11 Oct 2006 23:07:22 GMT
From: Stephanie<stephanie@sosdg.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports/wine should be installable on amd64
X-Send-Pr-Version: www-3.0

>Number:         104311
>Category:       amd64
>Synopsis:       ports/wine should be installable on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 11 23:10:17 GMT 2006
>Closed-Date:    Sun May 09 00:58:35 UTC 2010
>Last-Modified:  Sun May 09 00:58:35 UTC 2010
>Originator:     Stephanie
>Release:        6.2-BETA2
>Organization:
.
>Environment:
6.2-BETA GENERIC amd64
>Description:
ports/wine is not installable under amd64 under any version of freebsd to date. I don't remember what the underlying technical problem is, but this makes the amd64 build of freebsd absolutely useless to me, due to the need to run some Windows applications.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: "Scot Hetzel" <swhetzel@gmail.com>
To: bug-followup@FreeBSD.org, stephanie@sosdg.org
Cc:  
Subject: Re: amd64/104311: ports/wine should be installable on amd64
Date: Thu, 12 Oct 2006 01:25:37 -0500

 > ports/wine is not installable under amd64 under any version of freebsd to date. I don't remember what the underlying technical problem is, but this makes the amd64 build of freebsd absolutely useless to me, due to the need to run some Windows applications.
 
 The technical problem is that to build wine under amd64, you need to
 be able to build 32bit libraries for all of wine's dependant ports.
 
 You can make wine run on amd64, but you must first build it on i386.
 Then copy it to your amd64 system, including all of the library
 dependancies (untested).
 
 Wine64 (the 64bit version of wine) will not build on FreeBSD/amd64 due
 to it needs someone to write the code to save/restore the cpu
 registers.  Wine64 will only run 64bit windows applications, you won't
 be able to run 32bit windows applications on wine64.
 
 If wine is important to you, then you have 3 choices:
 
 1. submit patches to create the lib32-* library ports and the
 necessary patches to Mk/bsd.ports.mk and emulators/wine to allow it to
 build on the amd64 architecture.
 
 2. Set your system to dual boot FreeBSD/amd64 and FreeBSD/i386.
 
 3. Reinstall your system with FreeBSD/i386 only.
 
 Scot
state-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Dec 18 12:41:50 UTC 2006 
State-Changed-Why:  
Three solutions are now proposed in the Audit-Trail. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104311 

From: Stephanie Erin Daugherty <stephanie@sosdg.org>
To: bug-followup@FreeBSD.org,  stephanie@sosdg.org
Cc:  
Subject: Re: amd64/104311: ports/wine should be installable on amd64
Date: Mon, 18 Dec 2006 15:57:34 -0500

 This was closed with proposed solutions, however, 2 of the solutions do 
 not solve the problem of being able to run wine on amd64, and
 the remaining solution requires that a developer write and submit 
 patches, which hasn't happened.
 
 Please reopen.
 
State-Changed-From-To: closed->suspended 
State-Changed-By: linimon 
State-Changed-When: Tue Dec 19 17:09:35 UTC 2006 
State-Changed-Why:  
Re-opened at submitter's request, but marked suspended awaiting patches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104311 
State-Changed-From-To: suspended->open 
State-Changed-By: kmacy 
State-Changed-When: Sat Aug 23 05:03:30 UTC 2008 
State-Changed-Why:  
amd64 now saves segment registers on context switches for 32-bit executables as of recent RELENG_7 and HEAD.     



Responsible-Changed-From-To: freebsd-amd64->gerald 
Responsible-Changed-By: kmacy 
Responsible-Changed-When: Sat Aug 23 05:03:30 UTC 2008 
Responsible-Changed-Why:  




AMD64 now saves segment registers for 32-bit executables as of recent RELENG_7 and HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104311 

From: Kostik Belousov <kostikbel@gmail.com>
To: kmacy@freebsd.org
Cc: stephanie@sosdg.org, freebsd-amd64@freebsd.org, gerald@freebsd.org,
        bug-followup@freebsd.org
Subject: Re: amd64/104311: ports/wine should be installable on amd64
Date: Sat, 23 Aug 2008 13:54:44 +0300

 --+HaDSJYnsYzHewVa
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Sat, Aug 23, 2008 at 05:09:19AM +0000, kmacy@freebsd.org wrote:
 > amd64 now saves segment registers on context switches for 32-bit executab=
 les as of recent RELENG_7 and HEAD.   =20
 
 Yes, kernel saves the segment registers, but I very much doubt that
 creation of the ldt segments is supported (i.e. I am sure it is not).
 
 --+HaDSJYnsYzHewVa
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (FreeBSD)
 
 iEYEARECAAYFAkiv7HQACgkQC3+MBN1Mb4ggxgCfZOgWPReQQVeC9kCzmOzZ9yBV
 fMYAnRilZ7yM0KUUPwb7X1EX5DphtUID
 =GWSf
 -----END PGP SIGNATURE-----
 
 --+HaDSJYnsYzHewVa--

From: "Kip Macy" <kmacy@freebsd.org>
To: "Kostik Belousov" <kostikbel@gmail.com>
Cc: stephanie@sosdg.org, freebsd-amd64@freebsd.org, gerald@freebsd.org, 
	bug-followup@freebsd.org
Subject: Re: amd64/104311: ports/wine should be installable on amd64
Date: Sat, 23 Aug 2008 16:26:49 -0700

 Ok, I've cooked up a patch to do this. However, it will require a fair
 bit of testing ...
 -Kip
 
 On Sat, Aug 23, 2008 at 3:54 AM, Kostik Belousov <kostikbel@gmail.com> wrote:
 > On Sat, Aug 23, 2008 at 05:09:19AM +0000, kmacy@freebsd.org wrote:
 >> amd64 now saves segment registers on context switches for 32-bit executables as of recent RELENG_7 and HEAD.
 >
 > Yes, kernel saves the segment registers, but I very much doubt that
 > creation of the ldt segments is supported (i.e. I am sure it is not).
 >
Responsible-Changed-From-To: gerald->ports 
Responsible-Changed-By: gerald 
Responsible-Changed-When: Mon Sep 1 21:40:28 UTC 2008 
Responsible-Changed-Why:  
Even with the kernel infrastructure in place I am not quite sure how this 
is supposed to work on FreeBSD amd64 where we only have 64-bit versions of 
libraries, the compiler, etc.  when Wine really needs to compile and run as 
32-bit to be compatible with the respective Windows programs. 
Am I missing something here?  It seems this is nothing a port can just take 
care of, it's really FreeBSD as such that needs full bi-arch support here. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104311 
Responsible-Changed-From-To: ports->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Sep 2 22:49:23 UTC 2008 
Responsible-Changed-Why:  
Canonicalize assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104311 

From: Dominic Fandrey <kamikaze@bsdforen.de>
To: bug-followup@FreeBSD.org, stephanie@sosdg.org
Cc:  
Subject: Re: amd64/104311: ports/wine should be installable on amd64
Date: Mon, 09 Feb 2009 13:05:22 +0100

 Building and running wine under amd64 is not possible.
 
 Members of the German community BSDForen.de have experimented
 with 32-bit jails (you need to copy some ld.elf.so stuff into
 the jail and mount the 32-bit compat base libraries into it to
 get that running) and a parallel 32 bit hierarchy under
 /usr/local32 (which can be achieved by setting lots of
 environment variables).
 
 There is a linker bug in the 32 bit compatibility layer
 that prevents the resolution of indirect links.
 Until this bug is fixed 32-bit jails or a 32-bit
 hierarchy is entirely useless. If this bug should be fixed,
 be assured that we shall thoroughly document our means of
 building and running 32-bit wine under FreeBSD on the
 official wiki.

From: Ulrich Spoerlein <uqs@spoerlein.net>
To: bug-followup@FreeBSD.org, stephanie@sosdg.org
Cc:  
Subject: Re: amd64/104311: ports/wine should be installable on amd64
Date: Mon, 31 Aug 2009 23:12:42 +0200

 I'm please to report that an i386 binary of wine compiled under FreeBSD
 8.0/amd64 is happily running Diablo II for me. So any linker bugs seem
 to have been resolved. Now we are simply missing the build glue inside
 the FreeBSD ports.
 
 See the wiki under http://wiki.freebsd.org/Wine for a step by step build
 instruction.
 
 Cheers,
 Uli
State-Changed-From-To: open->closed 
State-Changed-By: sylvio 
State-Changed-When: Sun May 9 00:58:35 UTC 2010 
State-Changed-Why:  
Currently this port already there is to amd64. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104311 
>Unformatted:

Passing over to Gerald to enable WINE on amd64 now that segment registers are saved on context switches. 
