From owner-cvs-all@FreeBSD.ORG Sun Jan 9 13:15:34 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4DCA16A4CE; Sun, 9 Jan 2005 13:15:33 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 389F443D46; Sun, 9 Jan 2005 13:15:33 +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 j09DFRbA025807; Sun, 9 Jan 2005 15:15:27 +0200 (EET) (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 13666-15; Sun, 9 Jan 2005 15:15:27 +0200 (EET) 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 j09DFQO7025804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 9 Jan 2005 15:15:26 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j09DFCFR096694; Sun, 9 Jan 2005 15:15:12 +0200 (EET) (envelope-from ru) Date: Sun, 9 Jan 2005 15:15:11 +0200 From: Ruslan Ermilov To: "M. Warner Losh" Message-ID: <20050109131511.GD96289@ip.net.ua> References: <41D97F51.8080907@freebsd.org> <20050103.135715.25161130.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VV4b6MQE+OnNyhkM" Content-Disposition: inline In-Reply-To: <20050103.135715.25161130.imp@bsdimp.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: njl@freebsd.org cc: src-committers@freebsd.org cc: cvs-src@freebsd.org cc: scottl@freebsd.org cc: cvs-all@freebsd.org cc: rwatson@freebsd.org Subject: Re: cvs commit: src/sys/modules/aic7xxx/aicasm Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 13:15:34 -0000 --VV4b6MQE+OnNyhkM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 03, 2005 at 01:57:15PM -0700, M. Warner Losh wrote: > In message: <41D97F51.8080907@freebsd.org> > Scott Long writes: > : Robert Watson wrote: > : > On Sun, 2 Jan 2005, M. Warner Losh wrote: > : >=20 > : >=20 > : >>In message: <200501030536.j035atQo072140@repoman.freebsd.org> > : >> Nate Lawson writes: > : >>: NO_MAN is now NOMAN. > : >> > : >>Please back this out. You are going backwards. You need to use > : >>buildkernel or install a new world or setenv NO_MAN.=20 > : >=20 > : >=20 > : > However, some change of this sort would be very useful -- the NO_MAN = issue > : > is the only one of two issues preventing 6.x kernels from building on= an > : > un-customized 5.x world. The other issue is changes in config(8), but > : > that's a lot more easily worked around as it doesn't require changes = to > : > the global makefiles to fix. As someone who runs their build and rem= ote > : > management boxes on RELENG_5, but remote test boxes on HEAD, I'd find= it > : > very useful if we could find some solution to this. The one I've had= in > : > mind is teaching the 5.x .mk files to also know about NO_MAN -- that = way > : > at least newer RELENG_5 could build 6.x components without a full > : > buildworld. > : >=20 > : > Robert N M Watson > : >=20 > : >=20 > :=20 > : Compatibility should be put into a common and documented place like > : bsd.compat.mk. Putting special variables into each Makefile is both > : cumbersome and undocumented; it turns into folklore that no one > : understands years down the line. >=20 > Agreed. I believe that the following will do the trick. I'm not sure > where the right place to include this would be, since I believe that the > .if is expanded at parse time, which can lead to interesting > problems... >=20 > # $FreeBSD: src/share/mk/bsd.compat.mk,v 1.18 2004/12/21 12:49:24 ru Exp $ >=20 > # Forward compatbility: allows limited, but useful, operations > # to succeed on older systems. >=20 > .for oldnew in \ > NOATM:NO_ATM \ > NOCLEAN:NO_CLEAN \ > NOCLEANDIR:NO_CLEANDIR \ > NOCRYPT:NO_CRYPT \ > NODOCCOMPRESS:NO_DOCCOMPRESS \ > NOEXTRADEPEND:NO_EXTRADEPEND \ > NOFORTH:NO_FORTH \ > NOFSCHG:NO_FSCHG \ > NOGAMES:NO_GAMES \ > NOHTML:NO_HTML \ > NOINET6:NO_INET6 \ > NOINFO:NO_INFO \ > NOINFOCOMPRESS:NO_INFOCOMPRESS \ > NOINSTALLLIB:NO_INSTALLLIB \ > NOLIBC_R:NO_LIBC_R \ > NOLIBPTHREAD:NO_LIBPTHREAD \ > NOLIBTHR:NO_LIBTHR \ > NOLINT:NO_LINT \ > NOMAN:NO_MAN \ > NOMANCOMPRESS:NO_MANCOMPRESS \ > NOMLINKS:NO_MLINKS \ > NOOBJ:NO_OBJ \ > NOPAM:NO_PAM \ > NOPIC:NO_PIC \ > NOPROFILE:NO_PROFILE \ > NOSHARE:NO_SHARE \ > NOSHARED:NO_SHARED \ > NOTAGS:NO_TAGS > .for old in ${oldnew:C/:.*//} > .for new in ${oldnew:C/.*://} > .if defined(${new}) && !defined(${old}) > ${old}=3D ${${new}} > .endif > .endfor > .endfor > .endfor >=20 That should work (for RELENG_5). As experience shows, it should be included both from sys.mk and from bsd.init.mk, as in HEAD as of a few minutes ago does. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --VV4b6MQE+OnNyhkM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB4S5fqRfpzJluFF4RAs7eAJ9P8STGpvRdySwyxAtHovg1fNzqLACeLGnm zZO8GsLeubVSk5GZWNkP6ow= =sqYZ -----END PGP SIGNATURE----- --VV4b6MQE+OnNyhkM--