From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 19 11:00:12 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97646106567E for ; Thu, 19 Jun 2008 11:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7006D8FC1E for ; Thu, 19 Jun 2008 11:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5JB0Cpm036044 for ; Thu, 19 Jun 2008 11:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5JB0Ce0036043; Thu, 19 Jun 2008 11:00:12 GMT (envelope-from gnats) Resent-Date: Thu, 19 Jun 2008 11:00:12 GMT Resent-Message-Id: <200806191100.m5JB0Ce0036043@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Pietro Cerutti" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3A60106566C for ; Thu, 19 Jun 2008 10:58:00 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 563098FC1B for ; Thu, 19 Jun 2008 10:58:00 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpa (Exim 4.68) (envelope-from ) id 1K9Hq0-00062D-3m for FreeBSD-gnats-submit@freebsd.org; Thu, 19 Jun 2008 12:57:56 +0200 Received: from gahrtop.localhost (localhost [127.0.0.1]) by gahrtop.localhost (Postfix) with ESMTP id 6838C50841 for ; Thu, 19 Jun 2008 12:57:49 +0200 (CEST) Message-Id: <1213873069.52717@gahrtop.localhost> Date: Thu, 19 Jun 2008 12:57:49 +0200 From: "Pietro Cerutti" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: Subject: ports/124755: [patch] emulators/win4bsd IGNORE if scheduler is not 4BSD X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 11:00:12 -0000 >Number: 124755 >Category: ports >Synopsis: [patch] emulators/win4bsd IGNORE if scheduler is not 4BSD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 19 11:00:12 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 8.0-CURRENT i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD 8.0-CURRENT #0: Wed Jun 18 01:38:09 CEST 2008 root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 >Description: The kqemu module needed by win4bsd needs the 4BSD scheduler: > cat /tmp/build-kqemu.log Source path /usr/tmp/.build_kqemu-54331/kqemu C compiler gcc Host C compiler gcc make gmake host CPU i386 Warning: Object directory not changed from original /usr/tmp/.build_kqemu-54331/kqemu @ -> /usr/src/sys machine -> /usr/src/sys/i386/include cc -O2 -pipe -march=prescott -fno-strict-aliasing -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c kqemu-freebsd.c kqemu-freebsd.c: In function 'kqemu_schedule': kqemu-freebsd.c:211: error: 'sched_lock' undeclared (first use in this function) kqemu-freebsd.c:211: error: (Each undeclared identifier is reported only once kqemu-freebsd.c:211: error: for each function it appears in.) *** Error code 1 Stop in /usr/tmp/.build_kqemu-54331/kqemu. >How-To-Repeat: >Fix: --- win4bsd.diff begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/win4bsd/Makefile,v retrieving revision 1.5 diff -u -u -r1.5 Makefile --- Makefile 6 Jun 2008 13:27:06 -0000 1.5 +++ Makefile 19 Jun 2008 10:52:44 -0000 @@ -34,13 +34,18 @@ .include .if ${OSVERSION} > 600000 -LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x +LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x .endif .if !exists(/usr/src/sys/kern) IGNORE= requires system source for installing kqemu, the accelerator that provides native CPU speed in Win4BSD. Please install the system sources in /usr/src (e.g. using sysinstall), and run make again .endif +SCHED_NAME!= ${SYSCTL} -n kern.sched.name +.if ${SCHED_NAME} != "4BSD" +IGNORE= requires the traditional 4BSD scheduler. Please rebuild your kernel with options SCHED_4BSD, and run make again +.endif + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/+POST-* \ ${WRKSRC}/usr/local/lib/win4bsd/bin/postinstall.sh \ --- win4bsd.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: