From 3c78d637553a5ed207cd67a6f84b9b1fffe5b91f Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 14 Aug 2019 14:51:56 -0400 Subject: global: Remove BUILD_DATE and BUILD_TIME All this does is make reproducible builds impossible. --- hw/xfree86/common/xf86Init.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'hw/xfree86') diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 1377710db..2b1d7ed96 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -65,7 +65,6 @@ #include "xf86_OSlib.h" #include "xf86cmap.h" #include "xorgVersion.h" -#include "buildDateTime.h" #include "mipointer.h" #include #include @@ -188,28 +187,6 @@ xf86PrintBanner(void) } } #endif -#if defined(BUILD_DATE) && (BUILD_DATE > 19000000) - { - struct tm t; - char buf[100]; - - memset(&t, 0, sizeof(t)); - memset(buf, 0, sizeof(buf)); - t.tm_mday = BUILD_DATE % 100; - t.tm_mon = (BUILD_DATE / 100) % 100 - 1; - t.tm_year = BUILD_DATE / 10000 - 1900; -#if defined(BUILD_TIME) - t.tm_sec = BUILD_TIME % 100; - t.tm_min = (BUILD_TIME / 100) % 100; - t.tm_hour = (BUILD_TIME / 10000) % 100; - if (strftime(buf, sizeof(buf), "%d %B %Y %I:%M:%S%p", &t)) - xf86ErrorFVerb(0, "Build Date: %s\n", buf); -#else - if (strftime(buf, sizeof(buf), "%d %B %Y", &t)) - xf86ErrorFVerb(0, "Build Date: %s\n", buf); -#endif - } -#endif #if defined(BUILDERSTRING) xf86ErrorFVerb(0, "%s \n", BUILDERSTRING); #endif -- cgit v1.2.3