Re: WIP: mediatomb-0.12.1

2010-09-23 Thread Federico G. Schwindt
[..] Right, so I committed this, but we want to know what is going on in the threadpool.c diff. Where did the magical numbers 0 and 31 come from?: +minPriority = 0; +maxPriority = 31; [..] egrep -r PTHREAD_M(IN|AX)_PRIORITY /usr/src//lib/libpthread/uthread/*.h f.-

Re: WIP: mediatomb-0.12.1

2010-09-23 Thread Antoine Jacoutot
On Thu, 23 Sep 2010, Federico G. Schwindt wrote: [..] Right, so I committed this, but we want to know what is going on in the threadpool.c diff. Where did the magical numbers 0 and 31 come from?: +minPriority = 0; +maxPriority = 31; [..] egrep -r

Re: WIP: mediatomb-0.12.1

2010-09-23 Thread Edd Barrett
On Thu, Sep 23, 2010 at 11:25:08AM +0200, Antoine Jacoutot wrote: On Thu, 23 Sep 2010, Federico G. Schwindt wrote: [..] Right, so I committed this, but we want to know what is going on in the threadpool.c diff. Where did the magical numbers 0 and 31 come from?: +

sched_get_priority_* (was Re: WIP: mediatomb-0.12.1)

2010-09-23 Thread Stuart Henderson
On 2010/09/23 11:25, Edd Barrett wrote: Where did the magical numbers 0 and 31 come from?: +minPriority = 0; +maxPriority = 31; [..] egrep -r PTHREAD_M(IN|AX)_PRIORITY /usr/src//lib/libpthread/uthread/*.h Of course, but I think the point was whether

Re: sched_get_priority_* (was Re: WIP: mediatomb-0.12.1)

2010-09-23 Thread David Coppa
On Thu, Sep 23, 2010 at 12:40 PM, Stuart Henderson st...@openbsd.org wrote: we have support for thread priorities, see src/lib/libpthread/uthread/ and pthreads(3), just not the sched_get_priority_*() functions. it might make sense to add them though, we have patches in a few ports for this:

Re: sched_get_priority_* (was Re: WIP: mediatomb-0.12.1)

2010-09-23 Thread Edd Barrett
On Thu, Sep 23, 2010 at 11:40:38AM +0100, Stuart Henderson wrote: we have support for thread priorities, see src/lib/libpthread/uthread/ and pthreads(3), just not the sched_get_priority_*() functions. Good, thanks for clarifying. it might make sense to add them though, we have patches in a

Re: sched_get_priority_* (was Re: WIP: mediatomb-0.12.1)

2010-09-23 Thread Stuart Henderson
On 2010/09/23 12:06, Edd Barrett wrote: On Thu, Sep 23, 2010 at 11:40:38AM +0100, Stuart Henderson wrote: we have support for thread priorities, see src/lib/libpthread/uthread/ and pthreads(3), just not the sched_get_priority_*() functions. Good, thanks for clarifying. it might make

Re: WIP: mediatomb-0.12.1

2010-09-23 Thread Federico G. Schwindt
On Thu, Sep 23, 2010 at 11:25:08AM +0200, Antoine Jacoutot wrote: On Thu, 23 Sep 2010, Federico G. Schwindt wrote: [..] Right, so I committed this, but we want to know what is going on in the threadpool.c diff. Where did the magical numbers 0 and 31 come from?: +

Re: sched_get_priority_* (was Re: WIP: mediatomb-0.12.1)

2010-09-23 Thread Federico G. Schwindt
On Thu, Sep 23, 2010 at 12:17:54PM +0100, Stuart Henderson wrote: On 2010/09/23 12:06, Edd Barrett wrote: On Thu, Sep 23, 2010 at 11:40:38AM +0100, Stuart Henderson wrote: we have support for thread priorities, see src/lib/libpthread/uthread/ and pthreads(3), just not the

Re: sched_get_priority_* (was Re: WIP: mediatomb-0.12.1)

2010-09-23 Thread Federico G. Schwindt
On Thu, Sep 23, 2010 at 12:49:50PM +0200, David Coppa wrote: On Thu, Sep 23, 2010 at 12:40 PM, Stuart Henderson st...@openbsd.org wrote: we have support for thread priorities, see src/lib/libpthread/uthread/ and pthreads(3), just not the sched_get_priority_*() functions. it might make

Re: WIP: mediatomb-0.12.1

2010-09-22 Thread Edd Barrett
On Sun, Aug 22, 2010 at 09:51:28PM +0100, Federico G. Schwindt wrote: On Sun, Aug 22, 2010 at 10:04:07PM +0200, Markus Bergkvist wrote: A work-in-progress port of mediatomb, I'm stuck and need some help: * the configure script picks up spidermonkey headers (jsapi.h) but the libjs/libsmjs

Re: WIP: mediatomb-0.12.1

2010-09-20 Thread Edd Barrett
On Sun, Sep 19, 2010 at 08:27:37PM -0500, Abel Abraham Camarillo Ojeda wrote: Tested on OpenBSD -current on amd64 with a PS3. * remove hard coded udn from config file. * allow mediatomb to write away it's own udn based on system uuid. (requires changing ownership of config file, done with

Re: WIP: mediatomb-0.12.1

2010-09-19 Thread Abel Abraham Camarillo Ojeda
Edd Barrett vex...@gmail.com wrote: On Thu, Sep 16, 2010 at 05:31:55PM +0100, Edd Barrett wrote: OK? Tested with PS3 from an x86 machine. Works for me (tm). -- Best Regards Edd Barrett http://www.theunixzoo.co.uk It doesn't work with me... it complains about orc-4.0, while trying

Re: WIP: mediatomb-0.12.1

2010-09-19 Thread Abel Abraham Camarillo Ojeda
Edd Barrett vex...@gmail.com wrote: On Thu, Sep 16, 2010 at 05:31:55PM +0100, Edd Barrett wrote: OK? Tested with PS3 from an x86 machine. Works for me (tm). -- Best Regards Edd Barrett http://www.theunixzoo.co.uk Sorry, I forgot to do a pkg_update -uv; after that mediatomb builds

Re: WIP: mediatomb-0.12.1

2010-09-18 Thread Edd Barrett
On Thu, Sep 16, 2010 at 05:31:55PM +0100, Edd Barrett wrote: OK? Tested with PS3 from an x86 machine. Works for me (tm). -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: WIP: mediatomb-0.12.1

2010-09-16 Thread Edd Barrett
Hi, On Tue, Sep 14, 2010 at 11:10:59PM +0100, Robert Bronsdon wrote: Should rc.local check for an active network connection? Can it? It's just mediatomb will fail to start unless it can bind itself to an address/port. It should bind loopback atleast, but ideally i recommend a network card;

Re: WIP: mediatomb-0.12.1

2010-09-16 Thread Abel Abraham Camarillo Ojeda
On Thu, Sep 16, 2010 at 11:31 AM, Edd Barrett vex...@gmail.com wrote: Hi, On Tue, Sep 14, 2010 at 11:10:59PM +0100, Robert Bronsdon wrote: Should rc.local check for an active network connection? Can it? It's just mediatomb will fail to start unless it can bind itself to an address/port.

Re: WIP: mediatomb-0.12.1

2010-09-14 Thread Jasper Lievisse Adriaanse
On Mon, Sep 13, 2010 at 10:39:02PM +0200, Markus Bergkvist wrote: On 09/10/10 13:43, Edd Barrett wrote: Here is an updated (unfinished) port. There is a bug in mediatomb where it ignores -c. I don't have any more time to look at this now, so a I am posting my work thus far. This port

Re: WIP: mediatomb-0.12.1

2010-09-14 Thread Edd Barrett
On Mon, Sep 13, 2010 at 10:39:02PM +0200, Markus Bergkvist wrote: It still ignores any signals. Might this be related? http://marc.info/?l=openbsd-techm=128398746609607w=2 Maybe, unsure. Maybe someone me knows? Will this remove the database on pkg_add -u too? @extraunexec rm -rf

Re: WIP: mediatomb-0.12.1

2010-09-14 Thread Antoine Jacoutot
On Tue, 14 Sep 2010, Edd Barrett wrote: On Mon, Sep 13, 2010 at 10:39:02PM +0200, Markus Bergkvist wrote: It still ignores any signals. Might this be related? http://marc.info/?l=openbsd-techm=128398746609607w=2 Maybe, unsure. Maybe someone me knows? Will this remove the database on

Re: WIP: mediatomb-0.12.1

2010-09-14 Thread Stuart Henderson
On 2010/09/14 22:39, Edd Barrett wrote: On Mon, Sep 13, 2010 at 10:39:02PM +0200, Markus Bergkvist wrote: It still ignores any signals. Might this be related? http://marc.info/?l=openbsd-techm=128398746609607w=2 Maybe, unsure. Maybe someone me knows? Will this remove the database on

Re: WIP: mediatomb-0.12.1

2010-09-14 Thread Robert Bronsdon
Should rc.local check for an active network connection? Can it? It's just mediatomb will fail to start unless it can bind itself to an address/port. -- Robert Bronsdon

Re: WIP: mediatomb-0.12.1

2010-09-13 Thread Markus Bergkvist
On 09/10/10 13:43, Edd Barrett wrote: Here is an updated (unfinished) port. There is a bug in mediatomb where it ignores -c. I don't have any more time to look at this now, so a I am posting my work thus far. This port creates a new user and prints a installation message suitible for rc.local.

Re: WIP: mediatomb-0.12.1

2010-09-10 Thread Edd Barrett
On Tue, Sep 07, 2010 at 03:00:18PM +0100, Edd Barrett wrote: On Sun, Sep 05, 2010 at 04:12:52PM -0700, Allie Daneman wrote: I'll try this very soon as well, I can dump the linux box I'm running mediatomb on now if it works ;) Thanks for the portthis will be huge if it works well. It

Re: WIP: mediatomb-0.12.1

2010-09-07 Thread Edd Barrett
On Sun, Sep 05, 2010 at 04:12:52PM -0700, Allie Daneman wrote: I'll try this very soon as well, I can dump the linux box I'm running mediatomb on now if it works ;) Thanks for the portthis will be huge if it works well. It will be moderatley sized perhaps, yes. Here is an updated

Re: WIP: mediatomb-0.12.1

2010-09-05 Thread Markus Bergkvist
On 09/04/10 14:29, Edd Barrett wrote: On Sat, Sep 04, 2010 at 12:50:43PM +0100, Edd Barrett wrote: On Tue, Aug 24, 2010 at 04:23:48PM +0200, Markus Bergkvist wrote: Builds with no warnings now. Didn't notice them previously, was only redirecting stdout to portslogger. Does someone with an

Re: WIP: mediatomb-0.12.1

2010-09-05 Thread Edd Barrett
On Sun, Sep 05, 2010 at 12:31:22PM +0200, Markus Bergkvist wrote: What home directory should be used? What user/group should mediatomb be executed as? Should we add a _mediatomb user/group? I don't see why not. This would be the OpenBSD way to do it ;) I will have a look at this shortly. --

Re: WIP: mediatomb-0.12.1

2010-09-05 Thread Allie Daneman
I'll try this very soon as well, I can dump the linux box I'm running mediatomb on now if it works ;) Thanks for the portthis will be huge if it works well. On Sat, 04 Sep 2010 12:50:43 +0100, Edd Barrett vex...@gmail.com wrote: Does someone with an account have a PS3 to test this with. It

Re: WIP: mediatomb-0.12.1

2010-09-04 Thread Edd Barrett
On Tue, Aug 24, 2010 at 04:23:48PM +0200, Markus Bergkvist wrote: Builds with no warnings now. Didn't notice them previously, was only redirecting stdout to portslogger. Does someone with an account have a PS3 to test this with. It would be awesome to get this in. My new housemate is bringing a

Re: WIP: mediatomb-0.12.1

2010-09-04 Thread Edd Barrett
On Sat, Sep 04, 2010 at 12:50:43PM +0100, Edd Barrett wrote: On Tue, Aug 24, 2010 at 04:23:48PM +0200, Markus Bergkvist wrote: Builds with no warnings now. Didn't notice them previously, was only redirecting stdout to portslogger. Does someone with an account have a PS3 to test this with.

Re: WIP: mediatomb-0.12.1

2010-09-04 Thread Robert Bronsdon
On Sat, 04 Sep 2010 12:50:43 +0100, Edd Barrett vex...@gmail.com wrote: Does someone with an account have a PS3 to test this with. It would be awesome to get this in. My new housemate is bringing a ps3 sometimethis week ;) Tested with a PS3 and seems to be working OK. Just a quick note,

Re: WIP: mediatomb-0.12.1

2010-09-04 Thread Edd Barrett
On Sat, Sep 04, 2010 at 04:18:24PM +0100, Robert Bronsdon wrote: On Sat, 04 Sep 2010 12:50:43 +0100, Edd Barrett vex...@gmail.com wrote: Does someone with an account have a PS3 to test this with. It would be awesome to get this in. My new housemate is bringing a ps3 sometimethis week ;)

Re: WIP: mediatomb-0.12.1

2010-08-24 Thread Federico G. Schwindt
On Mon, Aug 23, 2010 at 10:51:53PM +0200, Markus Bergkvist wrote: On 08/22/10 22:51, Federico G. Schwindt wrote: On Sun, Aug 22, 2010 at 10:04:07PM +0200, Markus Bergkvist wrote: A work-in-progress port of mediatomb, I'm stuck and need some help: * the configure script picks up

Re: WIP: mediatomb-0.12.1

2010-08-24 Thread Markus Bergkvist
On 08/24/10 13:28, Federico G. Schwindt wrote: Your patch for ThreadPool.c is wrong. You didn't remove OpenBSD from the first ifdef. As for the first part of it, although my diff was wrong you still want to return the min/max priorities, so it should be something like this (not a real diff

Re: WIP: mediatomb-0.12.1

2010-08-23 Thread Nick Templeton
I've been working on a mediatomb port for a bit myself. When I get home I can share what I did to work around this. I'm sure it's wrong, but it got it working. -Nick On Aug 22, 2010 3:06 PM, Markus Bergkvist lt;markus.bergkv...@telia.comgt; wrote: A work-in-progress port of mediatomb, I'm

Re: WIP: mediatomb-0.12.1

2010-08-23 Thread Markus Bergkvist
On 08/22/10 22:51, Federico G. Schwindt wrote: On Sun, Aug 22, 2010 at 10:04:07PM +0200, Markus Bergkvist wrote: A work-in-progress port of mediatomb, I'm stuck and need some help: * the configure script picks up spidermonkey headers (jsapi.h) but the libjs/libsmjs link fails, shouldn't

Re: WIP: mediatomb-0.12.1

2010-08-22 Thread Federico G. Schwindt
On Sun, Aug 22, 2010 at 10:04:07PM +0200, Markus Bergkvist wrote: A work-in-progress port of mediatomb, I'm stuck and need some help: * the configure script picks up spidermonkey headers (jsapi.h) but the libjs/libsmjs link fails, shouldn't checking for JS_NewObject in -ljs work? * how do