inverse-inc/sogo — pull request #60 by dekkers (2014-10-08 19:57:17+00:00)
Title: Remove build date from binary

There are two reasons for this patch. The first is that "touch SOGoBuild.m" is run during "make install", causing a recompile of the file and a relink of the library that includes it. But when building packages DESTDIR is set to some temporary directory with "make install", which means SOGO_SYSLIBDIR is set to the temporary directory and the RPATH in the library will be wrong.

The second reason is that we are working on making package builds reproducible in Debian, see https://wiki.debian.org/ReproducibleBuilds for more information. Putting the build time in the binary causes differences between builds. Given that the version number is already there I don't think the build date adds a lot more useful information. If you insist on keeping a date in the binary another solution would be to make it possible to set the build date using an environment variable, then the Debian build script could set it to the debian changelog date and it would also be reproducible.