From owner-freebsd-current@FreeBSD.ORG Sat Aug 13 09:48:04 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 916A416A41F; Sat, 13 Aug 2005 09:48:04 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F63043D46; Sat, 13 Aug 2005 09:48:03 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id 1DF5C323315; Sat, 13 Aug 2005 11:48:02 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id D70E0405B; Sat, 13 Aug 2005 11:48:12 +0200 (CEST) Date: Sat, 13 Aug 2005 11:48:12 +0200 From: Jeremie Le Hen To: Ruslan Ermilov Message-ID: <20050813094812.GH45385@obiwan.tataz.chchile.org> References: <20050812223307.GE45385@obiwan.tataz.chchile.org> <20050813085411.GA89765@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050813085411.GA89765@ip.net.ua> User-Agent: Mutt/1.5.9i Cc: freebsd-current@FreeBSD.org, Jeremie Le Hen Subject: Re: make distribution and cap_mkdb -l from 5 to 6 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 09:48:04 -0000 > I don't remember exactly how etcmerge works, but if it calls "make > distribution" from src/etc/, it's in trouble, please go on reading... Great news, I'll send a patch to eivind@ for etcmerge in order to correct this wrong behaviour. > > Can this issue be resolved in a way or another ? I'm not sure using > > ${.OBJDIR}'s cap_mkdb(8) is an option. > > > You should be running "make distribution" from under top of the src/ > tree, not src/etc/. This takes care of properly setting the runtime > environment up so that a bootstrapped version of cap_mkdb(8) is used, > besides many other useful things. We bootstrap cap_mkdb(8) if (this > was copied from Makefile.inc1): > > .if ${BOOTSTRAPPING} < 600015 > _cap_mkdb= usr.bin/cap_mkdb > .endif > > It may also be that for some reason your /usr/include/osreldate.h is > lying about the currently installed version. > > To make the long story short... > > You can check all of this easily; assuming your sources are in the > kosher location /usr/src, the bootstrapped version of cap_mkdb(8) > capable of running on your host should be sitting ready in: > > /usr/obj/usr/src/tmp/legacy/usr/bin/cap_mkdb > > (Extrapolate this appropriately to your environment.) Thanks for your complete explanation. My osreldate.h should have the right value since my /usr/include is updated only when I upgrade my box. I will extend what you said about the ``distribution'' target, so I will also change etcmerge to use "make hierarchy" from src/ instead of going to src/etc/ and run "make distrib-dirs". Thank you. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >