LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File glibc-nodate.patch of Package glibc.i686 (Project Base:build)

Index: glibc-2.15.90/nscd/nscd_stat.c
===================================================================
--- glibc-2.15.90.orig/nscd/nscd_stat.c
+++ glibc-2.15.90/nscd/nscd_stat.c
@@ -36,8 +36,13 @@
 #endif /* HAVE_SELINUX */
 
 
-/* We use this to make sure the receiver is the same.  */
+/* We use this to make sure the receiver is the same.  Capture mtime
+   of this file if possible.  */
+#if defined(__TIMESTAMP__)
+static const char compilation[21] = __TIMESTAMP__;
+#else
 static const char compilation[21] = __DATE__ " " __TIME__;
+#endif
 
 /* Statistic data for one database.  */
 struct dbstat
Index: glibc-2.15.90/csu/Makefile
===================================================================
--- glibc-2.15.90.orig/csu/Makefile
+++ glibc-2.15.90/csu/Makefile
@@ -171,8 +171,8 @@ $(objpfx)version-info.h: $(common-objpfx
 		   if [ -z "$$os" ]; then \
 		     os=Linux; \
 		   fi; \
-		   printf '"Compiled on a %s %s system on %s.\\n"\n' \
-			  "$$os" "$$version" "`date +%Y-%m-%d`";; \
+		   printf '"Compiled on a %s %s system.\\n"\n' \
+			  "$$os" "$$version";; \
 	   *) ;; \
 	 esac; \
 	 files="$(all-Banner-files)";				\