Subject: BUILD_DEPENDS {alternates} (and gettext in mk/bsd.pkg.use.mk for
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/07/2006 10:51:54
Two issues in this email:

I see that BUILD_USES_MSGFMT does a BUILD_DEPENDS on gettext. but now 
msgfmt is in gettext-tools.

--- mk/bsd.pkg.use.mk   5 Mar 2006 16:27:29 -0000       1.28
+++ mk/bsd.pkg.use.mk   6 Mar 2006 23:45:51 -0000
@@ -63,7 +63,7 @@
 
 .if defined(BUILD_USES_MSGFMT) && \
     (!exists(/usr/bin/msgfmt) || ${_USE_GNU_GETTEXT} == "yes")
-BUILD_DEPENDS+=                gettext>=0.10.35nb1:../../devel/gettext
+BUILD_DEPENDS+=                {gettext>=0.10.35nb1,gettext-tools>=0.14.5}:../.
./devel/gettext-tools
 .endif

But my problem is:

===> Required package {gettext>=0.10.35nb1,gettext-tools>=0.14.5}: NOT 
found
pkg_info: Malformed alternate `{gettext'

I am not sure what is causing this. I replaced that first "gettext" with 
"perl" to test and it didn't have any problem:

===> Required installed package {perl>=0.10.35nb1,gettext-tools>=0.14.5}: 
perl-5.8.7nb4 found

But when I replaced with "bogus" is had:

===> Required package {bogus>=0.10.35nb1,gettext-tools>=0.14.5}: NOT found
pkg_info: Malformed alternate `{bogus'

I notice that it works when I have it point to a package that exists (like 
xworm) but fails when package is not installed (like xwoorm):

===> Required installed package {xworm>=0.10.35nb1,gettext-tools>=0.14.5}: 
xworm-1.02 found

and

===> Required package {xwoorm>=0.10.35nb1,gettext-tools>=0.14.5}: NOT 
found
pkg_info: Malformed alternate `{xwoorm'



 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/