question for both ports and current

Erwin Lansing erwin at FreeBSD.org
Mon Oct 22 11:48:25 PDT 2007


Hi Julian,

On Sun, Oct 21, 2007 at 12:54:03AM -0700, Julian Elischer wrote:
> 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

[snip]
> 
> I'm not sure how I go about patching these two ports to  handle the 
> kthread->kproc
> for 8.0
> 
> rename. Any help appreciated.
> 
The ports infrastructure has an easy mechanism to add patches to the
source of a port before it is build, which can be made dependend on
OSVERSION.  If you can create pachtes against the source of those ports,
I'd be happy to get them incorporated in the ports themselves, and do
buildtime testing.

It would be as simple as a block of:
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 800001
PATCHFILES=		somefile.patch
PATCHSITES=		${MASTER_SITE_LOCAL}
MASTER_SITE_LOCAL=	julian
.endif

and put the patches on freefall in ~/public_distfiles/
But like I said, I'd be happy to fix this, if you can create the
patches.

Cheers,
-erwin


-- 
Erwin Lansing                                     http://droso.org
Security is like an onion.          (o_ _o)
It's made up of several layers   \\\_\   /_///    erwin at FreeBSD.org
And it makes you cry.            <____) (____>    erwin at aauug.dk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071022/90e10934/attachment.pgp


More information about the freebsd-current mailing list