From owner-freebsd-current@FreeBSD.ORG Sun Oct 21 16:50:33 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 7B70F16A41A for ; Sun, 21 Oct 2007 16:50:33 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outN.internet-mail-service.net (outN.internet-mail-service.net [216.240.47.237]) by mx1.freebsd.org (Postfix) with ESMTP id 643A213C4F2 for ; Sun, 21 Oct 2007 16:50:32 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Sun, 21 Oct 2007 09:50:05 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 03AB0126771; Sun, 21 Oct 2007 09:50:04 -0700 (PDT) Message-ID: <471B8353.4050600@elischer.org> Date: Sun, 21 Oct 2007 09:50:27 -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: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 16:50:33 -0000 ## resend as the original seems to have gotten hung up somewhere... 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