From owner-cvs-all@FreeBSD.ORG Sat Apr 23 05:05:10 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 6B66916A4CE; Sat, 23 Apr 2005 05:05:10 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D6543D46; Sat, 23 Apr 2005 05:05:09 +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 j3N58Zmc040048; Sat, 23 Apr 2005 08:08:35 +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 10384-10; Sat, 23 Apr 2005 08:05:07 +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 j3N58Y2p040045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Apr 2005 08:08:34 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j3N52YGs082465; Sat, 23 Apr 2005 08:02:34 +0300 (EEST) (envelope-from ru) Date: Sat, 23 Apr 2005 08:02:34 +0300 From: Ruslan Ermilov To: Marcel Moolenaar Message-ID: <20050423050234.GB10314@ip.net.ua> References: <20050422.114615.71130404.imp@bsdimp.com> <20050422175324.GA32739@ip.net.ua> <20050422184922.GA41457@ns1.xcllnt.net> <20050422.125712.78748765.imp@bsdimp.com> <20050422200341.GA23926@ip.net.ua> <1b042838f6396ae9665fcb2f41f1c9a7@xcllnt.net> <20050422201615.GD23926@ip.net.ua> <20050422203437.GB50191@ip.net.ua> <94969eabff134918730e7dcead17bb51@xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline In-Reply-To: <94969eabff134918730e7dcead17bb51@xcllnt.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Warner Losh Subject: Re: cvs commit: src/usr.sbin/config main.c 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: Sat, 23 Apr 2005 05:05:10 -0000 --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 22, 2005 at 01:58:34PM -0700, Marcel Moolenaar wrote: > On Apr 22, 2005, at 1:34 PM, Ruslan Ermilov wrote: >=20 > >>>I personally fail to see how this can be solved... :-( > >> > >>Ok, what about this: > >>mkdep(1) creates lines of the form > >> > >> foo.o: foo.c inc1.h inc2.h > >> > >>Would this problem be solved if mkdep(1) created lines like: > >> > >> foo.o .depend: foo.c inc1.h inc2.h > >> > >>or equivalent? > >> > >>Would something else break if we do that? > >> > >I fail to see what this gives us, except for also breaking > >"make .depend" when .depend is present and inc2.h disappears. >=20 > True, there is a phase ordering problem. But isn't that something > that can be worked around by making the necessary adjustments to > make(1). The adjustments would be that if .depend is out of > date, it is being made without making any sources that are out > of date (or missing). This may require adding a special source > to the mix of special sources that make(1) already has: .SOFTDEP > or something like that. One can also hardcode this special case, > but that seems ugly. >=20 That's an idea! I've tested the following, and it seems that it can be made to work, after some polishing. In .depend, have the following dependencies generated by mkdep(1): =2Edepend: =2Efor f in =2Eif !exists($f) $f: =2Eendif =2Eendfor Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCadbqqRfpzJluFF4RAplHAKCC/RGAkXz0TaZxfS0ZQszVn9EF3QCfWpzh gyTeveRmi1jYPArQTfqpdOw= =wt5k -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--