From owner-freebsd-ports Wed Aug 23 17:59: 3 2000 Delivered-To: freebsd-ports@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 9BBF037B422; Wed, 23 Aug 2000 17:58:58 -0700 (PDT) Received: from [128.130.111.2] (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id CAA17145; Thu, 24 Aug 2000 02:58:57 +0200 (MET DST) Date: Thu, 24 Aug 2000 02:58:56 +0200 (CEST) From: Gerald Pfeifer To: freebsd-gnats-submit@FreeBSD.org, sheldonh@FreeBSD.org Cc: nox@jelal.kn-bremen.de, freebsd-ports@FreeBSD.org Subject: Re: kern/11287: rfork(RFMEM...) doesn't share LDTs set byi386_set_ldt, breaking wine Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org sheldonh wrote: > This one can be closed now, no? Not yet, but nearly! :-) The following patch for the Wine port finally allows this PR to be fully closed. (The kernel has already been updated, but neither the Wine port nor this PR have been...) Please install the patch below and remove files/patch-3.3-sys-fsgs from the Wine port and also from pkg/PLIST of that port. Approved by the maintainer of that port. (Myself ;-) ) Gerald Index: Makefile =================================================================== RCS file: /sw/FreeBSD/CVSUP/ports/emulators/wine/Makefile,v retrieving revision 1.91 diff -u -3 -p -r1.91 Makefile --- Makefile 2000/08/21 22:51:45 1.91 +++ Makefile 2000/08/24 00:46:56 @@ -101,7 +101,6 @@ do-install: ${PREFIX}/lib/wine/reg ${INSTALL_DATA} ${FILESDIR}/README.patch \ ${FILESDIR}/patch-3.3-sys-sigtrap \ - ${FILESDIR}/patch-3.3-sys-fsgs \ ${PREFIX}/lib/wine ${INSTALL_DATA} ${WRKSRC}/winedefault.reg ${PREFIX}/lib/wine ${ECHO} Index: files/README.patch =================================================================== RCS file: /sw/FreeBSD/CVSUP/ports/emulators/wine/files/README.patch,v retrieving revision 1.4 diff -u -3 -p -r1.4 README.patch --- files/README.patch 2000/08/21 19:27:04 1.4 +++ files/README.patch 2000/08/21 22:57:51 @@ -1,38 +1,20 @@ -Here are some patches for FreeBSD's kernel that are necessary for wine -(well not strictly _necessary_ but without them parts of it won't work.) +Here are some patches for FreeBSD's kernel that are necessary for Wine +(Well not strictly _necessary_ but without them parts of it won't work). They unfortunately didn't make it into the base distribution in time for the 3.3 release code freeze... patch-3.3-sys-sigtrap: stop wine's SIGTRAP handler from being called in the sigreturn syscall, -causing problems for wine's internal debugger. (it would still +causing problems for wine's internal debugger. (It would still correctly show a crash backtrace but all commands that use single- stepping failed.) -patch-3.3-sys-fsgs: -always set/use the sc_fs and sc_gs entries in the sigcontext struct, -making -stable behave the same as -current there. this should finally -allow signal handling of a wine that was built on -stable to correctly -run on -current too. The corresponding wine change is in the port in -patches/patch-af, it is also in wine's CVS tree now, so that file will -disappear when the port is updated after the next wine release. -(this one was MFC'd Nov 15 1999, so you only need it if you're running a -system from the -stable branch older than that, like a 3.3-RELEASE. If you -happen to try to apply it when its already there patch(1) should complain -`Reversed (or previously applied) patch detected! Assume -R? [y]', -just hit ^C then...) - Apply as follows: (cd /usr/src/sys && patch )