From owner-freebsd-current@FreeBSD.ORG Wed Oct 20 19:19:04 2004 Return-Path: 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 EB36916A4CE for ; Wed, 20 Oct 2004 19:19:03 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D69E43D1F for ; Wed, 20 Oct 2004 19:19:03 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9KJJ22S033811 for ; Wed, 20 Oct 2004 22:19:02 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 75396-07 for ; Wed, 20 Oct 2004 22:19:01 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9KJIvlX033802 for ; Wed, 20 Oct 2004 22:19:00 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i9KJIZZa009927 for freebsd-current@freebsd.org; Wed, 20 Oct 2004 22:18:35 +0300 (EEST) (envelope-from ru) Date: Wed, 20 Oct 2004 22:18:30 +0300 From: Ruslan Ermilov To: freebsd-current Message-ID: <20041020191829.GB2195@ip.net.ua> References: <20041018225532.GE4968@isis.wad.cz> <20041020153135.GA1365@isis.wad.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: <20041020153135.GA1365@isis.wad.cz> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua Subject: Re: NOPROFILE, make release, libcom_err [was: Re: make release: creating a trimmed down release?] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 20 Oct 2004 19:19:04 -0000 --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 20, 2004 at 05:31:35PM +0200, Roman Neuhauser wrote: > # neuhauser@chello.cz / 2004-10-19 00:55:32 +0200: > > I'd like to create a trimmed down release, but it looks like > > make release -DNO_CXX ... is not the way to go. What's the official > > way of doing this kind of stuff? Specifically, I've attempted the build > > with >=20 > (...) >=20 > It now appears I managed to get past self-inflicted problems, and > seem to be facing a genuine bug: >=20 > =3D=3D=3D> lib/libcom_err > cd /usr/src/lib/libcom_err; make install -DNO_SUBDIR DESTDIR=3D/R/st= age/trees/base SHARED=3D> > install -C -o root -g wheel -m 444 libcom_err.a /R/stage/trees/base= /usr/lib > install -C -o root -g wheel -m 444 libcom_err_p.a /R/stage/trees/ba= se/usr/lib > install: libcom_err_p.a: No such file or directory >=20 > -DNOPROFILE is among WORLD_FLAGS like this: >=20 > make release \ > BUILDNAME=3D$buildname \ > CHROOTDIR=3D$chrootdir \ > CVSROOT=3D$cvsroot \ > EXTSRCDIR=3D$extsrcdir \ > RELEASETAG=3D$releasetag \ > -DRELEASENOUPDATE \ > -DNOPORTS \ > -DNODOC \ > KERNEL_FLAGS=3D-j8 \ > WORLD_FLAGS=3D"-j8 KERNCONF?=3DGENERIC NO_CXX=3Dyes NO_BLUETOOTH= =3Dyes NO_DYNAMICROOT=3Dyes NO_FORTRAN=3Dyes NO_I4B=3Dyes NO_IPFILTER=3Dyes= NO_KERBEROS=3Dyes NO_OBJC=3Dyes NO_OPENSSH=3Dyes NO_OPENSSL=3Dyes NO_SENDM= AIL=3Dyes NO_TOOLCHAIN=3Dyes NO_BIND=3Dyes NOATM=3Dyes NOGAMES=3Dyes NOINET= 6=3Dyes NOPROFILE=3Dyes" >=20 > shouldn't the NOPROFILE variable be included on the "make install" > line? or should I forget building a release without profiled libs? >=20 This is because "distributeworld" in release.2 is run without WORLD_FLAGS. Please try this patch: %%% Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/release/Makefile,v retrieving revision 1.865 diff -u -r1.865 Makefile --- Makefile 30 Sep 2004 22:59:47 -0000 1.865 +++ Makefile 20 Oct 2004 19:15:49 -0000 @@ -586,7 +586,8 @@ # Install the system into the various distributions. release.2: cd ${.CURDIR}/../etc && make distrib-dirs DESTDIR=3D${RD}/trees/base - cd ${.CURDIR}/.. && ${CROSSMAKE} distributeworld DISTDIR=3D${RD}/trees + cd ${.CURDIR}/.. && ${CROSSMAKE} ${WORLD_FLAGS} \ + distributeworld DISTDIR=3D${RD}/trees touch ${.TARGET} =20 # Make and install the generic kernel(s). %%% To save time, just apply this patch to ${CHROOTDIR}/usr/src/release/Makefil= e, and then run "make rerelease", leaving all other options as is, including the RELEASENOUPDATE option. By the way, FOO=3Dyes is usually spelled as -DFOO in src/ world. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBdroFqRfpzJluFF4RAvEnAJ9UGSn4/30+OFuzjsrxjLMlcc38LwCghJ5i Of2XVjO1r0Ekxqi9/3AXAD8= =KM6y -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--