From owner-freebsd-ports Thu Oct 19 7:27:41 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 0CC3337B4D7; Thu, 19 Oct 2000 07:27:37 -0700 (PDT) Received: from m434-mp1-cvx1c.gui.ntl.com ([62.252.13.178]) by mta01-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20001019142735.DHJN16640.mta01-svc.ntlworld.com@m434-mp1-cvx1c.gui.ntl.com>; Thu, 19 Oct 2000 15:27:35 +0100 Date: Thu, 19 Oct 2000 15:28:50 +0100 (BST) From: George Reid To: ports@freebsd.org, sobomax@freebsd.org Subject: svgalib port bug 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 Hey, Thanks for porting svgalib to FreeBSD :) One minor problem, though...the VT_SETMODE ioctl doesn't work. I had a similar problem when I was porting vlock (which is as yet uncommitted :P) to FreeBSD - the vt_mode structure must have a valid frsig member (even though the kernel sources indicate it is unused). The ioctl will fail without a valid frsig. Patch (after existing patches): --- vga.c.orig Thu Oct 19 15:27:04 2000 +++ vga.c Thu Oct 19 15:27:24 2000 @@ -1659,6 +1659,7 @@ newvtmode.mode = VT_PROCESS; /* handle VT changes */ newvtmode.relsig = SVGALIB_RELEASE_SIG; /* I didn't find SIGUSR1/2 anywhere */ newvtmode.acqsig = SVGALIB_ACQUIRE_SIG; /* in the kernel sources, so I guess */ + newvtmode.frsig = SVGALIB_ACQUIRE_SIG; /* needed, but unused */ /* they are free */ SETSIG(siga, SVGALIB_RELEASE_SIG, __svgalib_releasevt_signal); SETSIG(siga, SVGALIB_ACQUIRE_SIG, __svgalib_acquirevt_signal); (End patch) G --- "And then it comes to be that the soothing light at the end of your tunnel was just a freight train, comin' your way." George Reid * geeorgy@nevernet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message