cvs commit: src

Ruslan Ermilov ru at
Mon Aug 14 12:14:22 UTC 2006

On Mon, Aug 14, 2006 at 12:57:33PM +0200, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <ru at> 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.

Ruslan Ermilov
ru at
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the cvs-src mailing list