On Mon, Aug 14, 2006 at 12:57:33PM +0200, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
FreeBSD committer

Attachment: pgpJRix1IHIU7.pgp
Description: PGP signature

Reply via email to