From owner-freebsd-stable@FreeBSD.ORG Tue Sep 12 16:09:09 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22BA916A40F for ; Tue, 12 Sep 2006 16:09:09 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9887243D45 for ; Tue, 12 Sep 2006 16:09:08 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id B86115CA9; Tue, 12 Sep 2006 20:09:07 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id B12F35CA6; Tue, 12 Sep 2006 20:09:07 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k8CG971l001101; Tue, 12 Sep 2006 20:09:07 +0400 (MSD) (envelope-from ru) Date: Tue, 12 Sep 2006 20:09:07 +0400 From: Ruslan Ermilov To: rvenne@dental-on-line.fr Message-ID: <20060912160907.GC962@rambler-co.ru> References: <20060909173813.GA1388@FS.denninger.net> <45065C67.6040503@cs.tu-berlin.de> <4506C9B0.5040807@dental-on-line.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+xNpyl7Qekk2NvDX" Content-Disposition: inline In-Reply-To: <4506C9B0.5040807@dental-on-line.fr> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: freebsd-stable Subject: Re: cap_mkdb: illegal option -i. upgrade 5.4->6.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2006 16:09:09 -0000 --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 12, 2006 at 04:52:32PM +0200, rvenne@dental-on-line.fr wrote: > Hi list >=20 > I'm upgrading 5.4 p18 to 6.1 p6. >=20 > here's my tag: RELENG_6_1 >=20 > I did: > make update > make cleanworld > make buildworld >=20 > which gives following issue: >=20 > cap_mkdb: illegal option -i >=20 > It seems a known problem on netbsd during buildworld compilation. here's= =20 > the solution I'm tring: >=20 > cd /usr/src/usr.bin/cap_mkdb > make clean > make > make install >=20 > and I'm building world again. >=20 > is that a known problem on freebsd? >=20 This shouldn't happen. The buildworld target detects the current version of your system, and bootstraps cap_mkdb if necessary: : .if ${BOOTSTRAPPING} < 600015 : _cap_mkdb=3D usr.bin/cap_mkdb : .endif BOOTSTRAPPING is defined as follows: : .if !defined(OSRELDATE) : .if exists(/usr/include/osreldate.h) : OSRELDATE!=3D awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $= $3 }' \ : /usr/include/osreldate.h : .else : OSRELDATE=3D 0 : .endif That is, it's the value of __FreeBSD_version as defined in /usr/include/osreldate.h. If your /usr/include/osreldate.h is lying about the current version, e.g. if you accidentally installed the new headers, then you can force it to zero, such as: make buildworld OSRELDATE=3D0 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --+xNpyl7Qekk2NvDX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFBtujqRfpzJluFF4RAtC/AJ0bs1kmUDGMULn8DJ++/iko876cmACdHkHo UCkYZ5eTUPL+MhpEHPlj3zk= =SHfW -----END PGP SIGNATURE----- --+xNpyl7Qekk2NvDX--