Subject: Re: pkgsrc Darwin 7.9.0/powerpc bulk build results 2005-06-14
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Yuji Yamano <yyamano@kt.rim.or.jp>
List: pkgsrc-bulk
Date: 06/16/2005 03:17:53
>> net/mDNSResponder          146     tech-pkg@NetBSD.org
>
> Looks like this failure is caused by this bit of the mDNSResponder Makefile:
> 
> 	.elif ${OPSYS} == "Darwin"
> 	MAKE_ENV+=      os=jaguar
> 	SO_SUFFIX=      dylib
> 	.else
> 
> We have the choice of  os=jaguar, os=panther or os=tiger and presumably 
> Darwin 7.9.0 should be "panther" or "tiger".  Anybody know how to 
> equate a Darwin version to an OSX codename?

Darwin 7.x is panther. I think the following patch fix the build
error. It works on Darwin 8.1.0 (tiger).

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/mDNSResponder/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	10 Jun 2005 23:01:39 -0000	1.4
+++ Makefile	15 Jun 2005 18:15:39 -0000
@@ -27,7 +27,13 @@
 .elif ${OPSYS} == "Linux"
 MAKE_ENV+=	os=linux
 .elif ${OPSYS} == "Darwin"
+.if !empty(OS_VERSION:M[6]\.*)
 MAKE_ENV+=	os=jaguar
+.elif !empty(OS_VERSION:M[7]\.*)
+MAKE_ENV+=	os=panther
+.elif !empty(OS_VERSION:M[8]\.*) 
+MAKE_ENV+=	os=tiger
+.endif
 SO_SUFFIX=	dylib
 .else
 MAKE_ENV+=	os=netbsd

-- 
Yuji Yamano