[Git][NTPsec/ntpsec][master] Drop build date from generated file
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Mon May 25 21:49:47 UTC 2026
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
74c0d44f by Bernhard M. Wiedemann at 2026-05-24T06:50:13+02:00
Drop build date from generated file
to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.
This patch was done while working on reproducible builds for openSUSE.
- - - - -
1 changed file:
- ntpd/keyword-gen.c
Changes:
=====================================
ntpd/keyword-gen.c
=====================================
@@ -273,28 +273,17 @@ int main(int argc, char **argv)
static void
generate_preamble(void)
{
- time_t now;
- char timestamp[128];
- struct tm tmbuf;
char preamble[] =
"/*\n"
" * ntp_keyword.h\n"
" * \n"
" * NOTE: edit this file with caution, it is generated by keyword-gen.c\n"
-" *\t Generated %s UTC diff_ignore_line\n"
" *\n"
" */\n"
"#include \"ntp_scanner.h\"\n"
"#include \"ntp_parser.tab.h\"\n"
"\n";
-
- time(&now);
- if (!strftime(timestamp, sizeof(timestamp),
- "%Y-%m-%d %H:%M:%S", gmtime_r(&now, &tmbuf))) {
- timestamp[0] = '\0';
-}
-
- printf(preamble, timestamp);
+ printf(preamble);
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/74c0d44f822213fd3dc16d05bcddebb9f735c9fa
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/74c0d44f822213fd3dc16d05bcddebb9f735c9fa
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20260525/e5777c09/attachment-0001.htm>
More information about the vc
mailing list