Subject: Re: NetBSD pkgsrc on FreeBSD and QNX
To: David Yeske <dyeske@yahoo.com>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-pkg
Date: 11/20/2002 01:33:30
On Tue, 19 Nov 2002 13:52:42 -0800 (PST), David Yeske writes:
>So I got bmake and parts of pkgsrc going on QNX.
Cool.
>bmake has issues with the QNX sys/cdefs.h so I had to build without -Werror
Can you elaborate? Linux has issues too but since it uses gcc, we can
include ./missing/sys/cdefs.h and have it include sys/cdefs.h to
pickup the needed extras.
>This is the diff against bootstrap-pkgsrc...
>
>http://pigseye.kennesaw.edu/~dyeske/qnx/patch-bootstrap-pkgsrc
Rather than adding checks for __QNX__ it would be better to do:
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#else
# include <signal.h>
#endif
and add sys/signal.h to the list of headers checked for by configure.
I'll include these in the next version of bmake - still need to finish
test/debugging some changes in netbsd make that will be the reason for
the next bmake version.
Thanks
--sjg