From owner-freebsd-current@FreeBSD.ORG Sun Oct 21 15:35:59 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0300616A41B; Sun, 21 Oct 2007 15:35:58 +0000 (UTC) (envelope-from prvs=julian=807159884@ironport.com) Received: from c60-outbound.ironport.com (c60-outbound.ironport.com [63.251.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id D4F8F13C4BB; Sun, 21 Oct 2007 15:35:22 +0000 (UTC) (envelope-from prvs=julian=807159884@ironport.com) DomainKey-Signature: s=key512; d=ironport.com; c=nofws; q=dns; h=Received:Message-ID:Date:From:User-Agent:MIME-Version: To:Subject:Content-Type; b=cqd3na0RX8QXGkfQu5jvVQGcCLj26CeGy36zzURBd5YCMUA2rozzC wlWPvfmwbC9LdnVolb9wXre6iJ4l1QqkQ==; Received: from unknown (HELO julian-mac.elischer.org) ([10.251.60.48]) by c60-outbound.ironport.com with ESMTP; 21 Oct 2007 00:53:41 -0700 Message-ID: <471B059B.1060604@ironport.com> Date: Sun, 21 Oct 2007 00:54:03 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: ports@freebsd.org, FreeBSD Current Content-Type: multipart/mixed; boundary="------------020109050100080401060100" X-Mailman-Approved-At: Sun, 21 Oct 2007 21:00:45 +0000 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: question for both ports and current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 15:35:59 -0000 This is a multi-part message in MIME format. --------------020109050100080401060100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In a move to support real krenel threads doing work in the kernel, the code that creates kerel processes has been renamed kthread_xxx to kproc_xxx teh following ports seem to reference the renamed functions in kld modules they create. I'm not a ports export so I'm not sure how to get a port to change it's behaviour in 8.0 as opposed to 7.0.... these are the ports (in fact the lines in the ports) that will fail at this time.. # find . -name "*.[ch]" |xargs grep kthread ./audio/emu10kx/work/emu10kx-2005-10-21/emu10kx-dev.c:#include not sure why this is needed as it doesn;t seem to use it.. ./devel/sdl12/work/SDL-1.2.11/src/thread/dc/SDL_systhread_c.h:typedef struct kthread* SYS_ThreadHandle; seems to be a namespace collision. ./emulators/snespp/work/snespp-1.0/snespp.c:#include ./emulators/snespp/work/snespp-1.0/snespp.c:/* kthread to poll the controllers. ./emulators/snespp/work/snespp-1.0/snespp.c: kthread_exit(error); ./emulators/snespp/work/snespp-1.0/snespp.c: kthread_suspend_check(snespp_eventq_proc); ./emulators/snespp/work/snespp-1.0/snespp.c: kthread_exit(0); ./emulators/snespp/work/snespp-1.0/snespp.c: error = kthread_create(snespp_updateeventq, (void *)sc, ./emulators/snespp/work/snespp-1.0/snespp.c: device_printf(sc->device, "timeout on eventq kthread.\n"); snespp seems to really need some of the entries replaced.. ./misc/zaptel/work/zaptel-bsd-1.4.6/wcfxs/wcfxs.c:#include ./misc/zaptel/work/zaptel-bsd-1.4.6/wcfxs/wcfxs.c: /* struct proc *kthread; */ ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c:#include ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c:static struct proc *kthread; ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c:static int kthread_must_exit; ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: wakeup(kthread); ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: if (kthread_must_exit) { ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: kthread_exit(0); ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: tsleep(kthread, PZERO, "waitdata", 10); ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: kthread_must_exit = 0; ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: if (kthread_create(selwakeup_thread_handler, (void *)toselwakeup, &kthread, 0, 0, "zt_selwakeup_thread")) ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: printf("Failed to create kthread\n"); ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: if (kthread) { ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: kthread_must_exit = 1; ./misc/zaptel/work/zaptel-bsd-1.4.6/zaptel/zaptel.c: wakeup(kthread); zaptel seems real. needs to be handled. ./net/p54u/work/p54u-0.8/driver/devnode.c:#include this seems unused.. I'm not sure how I go about patching these two ports to handle the kthread->kproc for 8.0 rename. Any help appreciated. julian --------------020109050100080401060100--