build stamps

Artis Caune artis.caune at gmail.com
Wed Jun 25 08:46:11 UTC 2008


If you are making world or release twice from one source, you will get
some binaries and lot of libraries which differ because of time
stamps:
   # make buildworld
   # make installworld DESTDIR=/home/build1
   # rm -r /usr/obj/usr
   # make buildworld
   # make installworld DESTDIR=/home/build2

   # diff -r /home/build1 /home/build2


freebsd-update-server also make world twice to find out where those
build stamps are.

I tried to freeze clock on build box while repeating build process:
   # while true; do date -n 0000; sleep 0.5; done

and there were no differences between two builds.


Is there any harm if I build releases with frozen clock?
or maybe load kld module which replace gettimeofday syscall at build time?

thanks,
Artis


More information about the freebsd-hackers mailing list