[core] reproducible build: hide __DATE__ __TIME__ (fixes #2828)

reproducible build: hide __DATE__ __TIME__ unless compiled with
-DNONREPRODUCIBLE_BUILD

x-ref:
  "Reproducible builds"
  https://redmine.lighttpd.net/issues/2828
personal/stbuehler/cleanup-build
Glenn Strauss 6 years ago
parent 0fcd756766
commit cddc481411

@ -538,8 +538,10 @@ static int server_oneshot_init(server *srv, int fd) {
static void show_version (void) {
char *b = PACKAGE_DESC TEXT_SSL \
" - a light and fast webserver\n" \
" - a light and fast webserver\n"
#ifdef NONREPRODUCIBLE_BUILD
"Build-Date: " __DATE__ " " __TIME__ "\n";
#endif
;
write_all(STDOUT_FILENO, b, strlen(b));
}
@ -705,7 +707,10 @@ static void show_features (void) {
}
static void show_help (void) {
char *b = PACKAGE_DESC TEXT_SSL " ("__DATE__ " " __TIME__ ")" \
char *b = PACKAGE_DESC TEXT_SSL
#ifdef NONREPRODUCIBLE_BUILD
" ("__DATE__ " " __TIME__ ")"
#endif
" - a light and fast webserver\n" \
"usage:\n" \
" -f <name> filename of the config-file\n" \

Loading…
Cancel
Save