Page MenuHomeFreeBSD

`make buildworld' should display the build time in seconds
ClosedPublic

Authored by wosch on Jan 14 2018, 8:09 PM.
Referenced Files
Unknown Object (File)
Jan 17 2024, 7:11 PM
Unknown Object (File)
Dec 30 2023, 12:51 AM
Unknown Object (File)
Dec 20 2023, 3:36 AM
Unknown Object (File)
Nov 6 2023, 11:16 PM
Unknown Object (File)
Nov 5 2023, 5:10 AM
Unknown Object (File)
Oct 3 2023, 5:06 AM
Unknown Object (File)
Oct 1 2023, 5:04 AM
Unknown Object (File)
Sep 15 2023, 8:24 PM
Subscribers

Details

Summary

As described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224433

the top level `make buildworld' target should display the build time in seconds

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This looks good in principle, modulo some nits. I'd let Bryan have the final say, but commit it if he says nothing.

Makefile.inc1
968

A fixed name is bad. It's also bad that it's in the makeworld tree. Consider something in /tmp/

973

You never remove this file. You should.

981

I'd use "built" rather than "build" because it describes something that went on in the past (even though it just finished).

You can also just record the time the build starts with something like this:

.if !defined(_BUILDWORLD_START)
_BUILDWORLD_START!= date +%s
.export _BUILDWORLD_START
.endif

Then compare its value in buildworld_epilogue, no tmpfile needed.

The updated patch works without a temp file.

This revision is now accepted and ready to land.Mar 11 2019, 5:54 PM
This revision was automatically updated to reflect the committed changes.