Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Oct 2004 22:18:30 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: NOPROFILE, make release, libcom_err [was: Re: make release: creating a trimmed down release?]
Message-ID:  <20041020191829.GB2195@ip.net.ua>
In-Reply-To: <20041020153135.GA1365@isis.wad.cz>
References:  <20041018225532.GE4968@isis.wad.cz> <20041020153135.GA1365@isis.wad.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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