start-stop-daemon.c wont compile on Gentoo/NetBSD because there are some missmatches betwen <sys/proc.h> (tested on baselayout-1.12.0_pre8) but NetBSD has been included to if statment with FreeBSD and OpenBSD (i think this statment wont work with obsd but i'm just guessing) Diffs: There is no ki_* (eg. ki_rpid) in kinfo_proc structure but there is p_* (eg. p_rpid) in kinfo_proc2 struct. here is patch for baselayout-1.12.0_pre8 to be applied on src/start-stop-daemon.c http://thunder.netbsd.edu.pl/netbsd-baselayout-1.12.0_pre8.patch Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 68550 [details, diff] ssd-netbsd.patch so you duplicated all that code just because two structs have slightly different names and slightly different members ? what about this much simpler (and untested) patch ?
SpanKY it also works. Thx. I've created new 'if' statements for NetBSD cause i've thought that there will be more changes.
Works fine on G/FBSD too, patch applied to bsd-porting branch of baselayout. Mike can you move that to trunk, and then close the bug?
done, thanks