Date: Mon, 14 Aug 2006 16:14:15 +0400 From: Ruslan Ermilov <ru@FreeBSD.org> To: Dag-Erling Sm?rgrav <des@des.no> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Alexander Leidinger <netchild@FreeBSD.org>, cvs-all@FreeBSD.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: cvs commit: src ObsoleteFiles.inc Message-ID: <20060814121415.GA59023@rambler-co.ru> In-Reply-To: <864pwfwpnm.fsf@xps.des.no> References: <200608101942.k7AJgOrB051336@repoman.freebsd.org> <20060811235619.G93570@atlantis.atlantis.dp.ua> <20060811220244.GC5237@rambler-co.ru> <20060811223642.GA21117@xor.obsecurity.org> <20060812005213.384b744b@Magellan.Leidinger.net> <20060812084253.GA8597@rambler-co.ru> <20060812123531.GA36569@xor.obsecurity.org> <20060813185551.GA15783@rambler-co.ru> <864pwfwpnm.fsf@xps.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Aug 14, 2006 at 12:57:33PM +0200, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <ru@FreeBSD.org> writes:
> > touch(1) is not an install tool.
>
> It should be a build tool. It is used during buildkernel and
> installworld, causing upgrades to break every so often (especially
> when upgrading across a libc version bump, IIRC).
>
It *is* a build tool, indeed. Build tools aren't special, everything
in the set ${PATH} can be a build tool. Install tools are a smaller
set of specifically listed tools. It's not used during an installworld;
when you see an attempt to use touch(1) during the installworld, it's
a sign of a broken buildworld (forgot to run it, clock ran away, etc.).
> BTW, if you just need to ensure that a file exists, a safe alternative
> to 'touch ${FILE}' is ':>>${FILE}'. Makefiles in src/sys/modules
> which use touch should probably be updated to use this instead.
>
Very good, I like it.
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQFE4GkXqRfpzJluFF4RAn19AJ9tH+uASBKKNU3jn2zf83OlFj6SNACdEKP+
5I7y88y7y+yPeIFJMa0HecM=
=osl+
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060814121415.GA59023>
