Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2005 11:48:12 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: make distribution and cap_mkdb -l from 5 to 6
Message-ID:  <20050813094812.GH45385@obiwan.tataz.chchile.org>
In-Reply-To: <20050813085411.GA89765@ip.net.ua>
References:  <20050812223307.GE45385@obiwan.tataz.chchile.org> <20050813085411.GA89765@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050813094812.GH45385>