From owner-svn-src-all@FreeBSD.ORG Wed Jul 23 16:34:17 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6543D66B; Wed, 23 Jul 2014 16:34:17 +0000 (UTC) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 106E52FF4; Wed, 23 Jul 2014 16:34:16 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 2FD4525D3A8F; Wed, 23 Jul 2014 16:34:13 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 12C3BC23E85; Wed, 23 Jul 2014 16:34:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id bBOrW0wo_-T5; Wed, 23 Jul 2014 16:34:09 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6] (unknown [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 18400C23E82; Wed, 23 Jul 2014 16:34:07 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: svn commit: r219177 - in head: . games release release/scripts From: "Bjoern A. Zeeb" In-Reply-To: <201103021439.p22EdQsU015424@svn.freebsd.org> Date: Wed, 23 Jul 2014 16:34:07 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <51E8489E-E93D-4415-8AAA-8D2BB4E4E33E@lists.zabbadoz.net> References: <201103021439.p22EdQsU015424@svn.freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.1878.6) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2014 16:34:17 -0000 On 02 Mar 2011, at 14:39 , Nathan Whitehorn = wrote: > Author: nwhitehorn > Date: Wed Mar 2 14:39:26 2011 > New Revision: 219177 > URL: http://svn.freebsd.org/changeset/base/219177 >=20 > Log: > Improve the distributeworld target in Makefile.inc1 and update the = release > infrastructure to use it. make distributeworld can now be used = without > preparing its environment first and installs games into its = distribution > using the regular make distribute logic instead of post-processing = with > a script. >=20 > Also add two new targets, packageworld and packagekernel, that tar up = the > results of distributeworld and distributekernel (also new), = respectively. >=20 > Deleted: > head/release/scripts/games-make.sh > head/release/scripts/lib32-make.sh > Modified: > head/Makefile > head/Makefile.inc1 > head/games/Makefile.inc > head/release/Makefile .. > Modified: head/Makefile.inc1 > = =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=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/Makefile.inc1 Wed Mar 2 13:06:47 2011 = (r219176) > +++ head/Makefile.inc1 Wed Mar 2 14:39:26 2011 = (r219177) > @@ -631,6 +631,13 @@ ITOOLS=3D [ awk cap_mkdb cat chflags chmod > =85 > @@ -653,8 +660,33 @@ distributeworld installworld: installche > done); \ > cp $$libs $$progs ${INSTALLTMP} > cp -R $${PATH_LOCALE:-"/usr/share/locale"} ${INSTALLTMP}/locale > +.if make(distributeworld) > +.for dist in ${EXTRA_DISTRIBUTIONS} > + -mkdir ${DESTDIR}/${DISTDIR}/${dist} > + mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ > + -p ${DESTDIR}/${DISTDIR}/${dist} >/dev/null > + mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ > + -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null > + mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ > + -p ${DESTDIR}/${DISTDIR}/${dist}/usr/include >/dev/null > +.endfor > + -mkdir ${DESTDIR}/${DISTDIR}/base > + ${_+_}cd ${.CURDIR}; ${IMAKE} distrib-dirs \ > + DESTDIR=3D${DESTDIR}/${DISTDIR}/base > +.endif > ${_+_}cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//}; \ > ${IMAKEENV} rm -rf ${INSTALLTMP} > +.if make(distributeworld) > +.for dist in ${EXTRA_DISTRIBUTIONS} > + find ${DESTDIR}/${DISTDIR}/${dist} -empty -delete > +.endfor > +.endif > + > +packageworld: > +.for dist in base ${EXTRA_DISTRIBUTIONS} > + ${_+_}cd ${DESTDIR}/${DISTDIR}/${dist}; \ > + tar cvJf ${DESTDIR}/${DISTDIR}/${dist}.txz . > +.endfor >=20 > # > # reinstall > @@ -840,6 +872,20 @@ reinstallkernel reinstallkernel.debug: i > ${CROSSENV} PATH=3D${TMPPATH} \ > ${MAKE} KERNEL=3D${INSTKERNNAME} ${.TARGET:S/kernel//} >=20 > +distributekernel distributekernel.debug: > +.if empty(INSTALLKERNEL) > + @echo "ERROR: No kernel \"${KERNCONF}\" to install."; \ > + false > +.endif > + cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \ > + ${CROSSENV} PATH=3D${TMPPATH} ${MAKE} KERNEL=3D${INSTKERNNAME}= \ > + DESTDIR=3D${DESTDIR}/${DISTDIR}/kernel \ > + ${.TARGET:S/distributekernel/install/} > + > +packagekernel: > + ${_+_}cd ${DESTDIR}/${DISTDIR}/kernel; \ > + tar cvJf ${DESTDIR}/${DISTDIR}/kernel.txz . > + > # > # doxygen > # This is where DISTDIR was introduced it seems. I guess it only became a = real issue for me with NO_ROOT changes I use. In addition it probably = doesn=92t help that (not on the currently observed system) I also build = world images from ports. Unfortunately this collides with: /usr/ports/Mk/bsd.port.mk:# DISTDIR - Where to search for = and store copies of original sources /usr/ports/Mk/bsd.port.mk:DISTDIR?=3D ${PORTSDIR}/distfiles That a lot of people I know have set in their environment, and done so = in a decade. Just wondering if it=92s worth avoiding the obvious by renaming it in = base? =97=20 Bjoern A. Zeeb "Come on. Learn, goddamn it.", WarGames, 1983