Subject: pkg/24348: devel/nbitools build failed on Darwin.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 02/08/2004 05:31:30
>Number:         24348
>Category:       pkg
>Synopsis:       devel/nbitools build failed on Darwin.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 07 20:32:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
System: Darwin ibook.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh powerpc
	
>Description:
Trying make in devel/nbitools is failed on MacOS X 10.3.2.

>How-To-Repeat:
# cd devel/nbitools
# bmake
>Fix:

diff -buNr nbitools.orig/distinfo nbitools/distinfo
--- nbitools.orig/distinfo	Wed Jan 28 23:35:28 2004
+++ nbitools/distinfo	Sun Feb  8 05:04:49 2004
@@ -8,3 +8,5 @@
 SHA1 (patch-ad) = b0c18505891834182c57819489b7d9890802d550
 SHA1 (patch-ae) = 0a0acf8798055a7b1b292e8d2edf998857641550
 SHA1 (patch-af) = b1efcdea967489a035048fc2e7389ac82b106535
+SHA1 (patch-ag) = 650948aa40cd870d81c5c5cf1ea0dafecb90cfda
+SHA1 (patch-ah) = b29a31d609c4cc75982335bfc5b76c0066a1ae38
diff -buNr nbitools.orig/patches/patch-ag nbitools/patches/patch-ag
--- nbitools.orig/patches/patch-ag	Thu Jan  1 09:00:00 1970
+++ nbitools/patches/patch-ag	Sun Feb  8 05:04:49 2004
@@ -0,0 +1,12 @@
+$NetBSD$
+--- config/imake/imake.c.orig	Sun Feb  8 04:50:46 2004
++++ config/imake/imake.c	Sun Feb  8 04:51:03 2004
+@@ -145,7 +145,7 @@
+  *	#include INCLUDE_IMAKEFILE
+  *	<add any global targets like 'clean' and long dependencies>
+  */
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ /* This needs to be before _POSIX_SOURCE gets defined */
+ # include <sys/param.h>
+ # include <sys/types.h>
diff -buNr nbitools.orig/patches/patch-ah nbitools/patches/patch-ah
--- nbitools.orig/patches/patch-ah	Thu Jan  1 09:00:00 1970
+++ nbitools/patches/patch-ah	Sun Feb  8 05:04:49 2004
@@ -0,0 +1,13 @@
+$NetBSD$
+--- config/imake/imakemdep.h.orig	Sun Feb  8 04:58:16 2004
++++ config/imake/imakemdep.h	Sun Feb  8 04:58:39 2004
+@@ -290,6 +290,9 @@
+ #if defined (__QNX__)
+ #define DEFAULT_CPP "/usr/X11R6/bin/cpp"
+ #endif 
++#if defined (__APPLE__)
++#define DEFAULT_CPP "/usr/bin/cpp"
++#endif
+ 
+ #if defined(Lynx)
+ /* On LynxOS 2.4.0 imake gets built with the old "legacy"
>Release-Note:
>Audit-Trail:
>Unformatted: