From 00602d09260ca1b69df82ca536c2dafe18babbb0 Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas Date: Thu, 9 Mar 2006 12:55:02 +0000 Subject: [PATCH] After revision 1.4 of `src/usr.sbin/bsnmpd/bsnmpd/Makefile' the gensnmptree utility is required at "make depend" time, because it is used to generate `oid.h' for bsnmpd. This means that all versions of HEAD before 2004/01/23 16:22:49 need gensnmptree as a bootstrap util when it's not already installed as part of the base system. The first __FreeBSD_version that we can assume this can work is 700014 which happened after the gensnmptree change (in -r 1.263 of `src/sys/sys/param.h', at 2006/02/17 14:14:15). For __FreeBSD_version values before 700014 add gensnmptree to the bootstrap tools, to allow upgrades from versions of FreeBSD before that date. Approved by: ru, harti --- Makefile.inc1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 9a47ce20b246..ea688cfc5d6c 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -824,6 +824,10 @@ _crunchgen= usr.sbin/crunch/crunchgen _pwd_mkdb= usr.sbin/pwd_mkdb .endif +.if ${BOOTSTRAPPING} < 700014 +_gensnmptree= usr.sbin/bsnmpd/gensnmptree +.endif + bootstrap-tools: .for _tool in \ ${_strfile} \ @@ -839,6 +843,7 @@ bootstrap-tools: usr.bin/rpcgen \ usr.bin/xinstall \ usr.sbin/config \ + ${_gensnmptree} \ ${_crunchgen} \ ${_pwd_mkdb} ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \