pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/strigi: pthread_setschedparam() instead of sched_setscheduler()



On Thu, Feb 07, 2008 at 01:47:09PM +0100, Tobias Nygren wrote:

> sched_setscheduler is in <sched.h>
> 
> See:
> 
> http://www.opengroup.org/onlinepubs/009695399/functions/sched_setscheduler.html

Ok, thanks - I thought it would be getting somehow deprecated as we don't even 
have the man page for it.

Btw, why not? ;)

> Also, you will need to link with -lrt on current.
>
> Look at revision 1.17 of audio/portaudio/Makefile for one approach.
> (But we will probably need to handle this in a cleaner manner in the
> future.)

True, but as implemented in there, it doesn't work:

[snip]
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
RT_LIB_SCHED=           -lrt
.else
RT_LIB_SCHED=           # empty
.endif
MAKE_ENV+=              RT_LIB_SCHED=${RT_LIB_SCHED}
[/snip]

What's necessary is that LDFLAGS+= -lrt, so what about doing it like the
following instead:

[snip]
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
LDFLAGS+=           -lrt
.endif
[/snip]

There are even packages imposing LDFLAGS+=-lrt to each NetBSD system
by LDFLAGS.NetBSD+=-lrt because of these sched stuff.

-- 
hernani

Attachment: pgpH_E2iI7lEg.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index