Subject: bsd.pkg.mk problem
To: None <tech-pkg@netbsd.org>
From: Kazuki Sakamoto <sakamoto@cec.co.jp>
List: tech-pkg
Date: 04/22/1999 14:36:05
% cd /usr/pkgsrc/devel/cvs
% make
Variable PATCH_SITES is recursive.
*** Error code 2

Stop.
*** Error code 1

Stop.


If MASTER_SITE_OVERRIDE defined,

  $NetBSD: bsd.pkg.mk,v 1.257 1999/04/20 11:07:34 agc Exp $
  line 627
  PATCH_SITES:=   ${MASTER_SITE_OVERRIDE} ${PATCH_SITES}

this line causes the error.
Because PATCH_SITES appears first here, though depends on package.

add "PATCH_SITES?=" before this line?

or

.if defined(PATCH_SITES)
PATCH_SITES:=	${MASTER_SITE_OVERRIDE} ${PATCH_SITES}
.else
PATCH_SITES:=	${MASTER_SITE_OVERRIDE}
.endif

?

sakamoto@netbsd.org
sakamoto@cec.co.jp