glibc/glibc-nodate.patch
Andreas Schwab 30e48d0d7f Accepting request 285070 from home:Andreas_Schwab:Factory
- Update to glibc 2.21 release.
  * A new semaphore algorithm has been implemented in generic C code for all
    machines
  * Added support for TSX lock elision of pthread mutexes on powerpc32,
    powerpc64 and powerpc64le
  * Optimized strcpy, stpcpy, strchrnul and strrchr implementations for
    AArch64
  * i386 memcpy functions optimized with SSE2 unaligned load/store
  * New locales: tu_IN, bh_IN, raj_IN, ce_RU
  * The obsolete sigvec function has been removed
- Patches from upstream removed
  * ifunc-x86-slow-sse4.patch
  * pthread-mutex-trylock-elision.patch
- o-tmpfile.patch: Fix value of O_TMPFILE for architectures with
  non-default O_DIRECTORY (BZ #17912)

OBS-URL: https://build.opensuse.org/request/show/285070
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=391
2015-02-10 10:34:33 +00:00

33 lines
1001 B
Diff

Index: glibc-2.20.90/nscd/nscd_stat.c
===================================================================
--- glibc-2.20.90.orig/nscd/nscd_stat.c
+++ glibc-2.20.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. */
+#ifdef __TIMESTAMP__
+static const char compilation[21];
+#else
static const char compilation[21] = __DATE__ " " __TIME__;
+#endif
/* Statistic data for one database. */
struct dbstat
@@ -96,7 +101,12 @@ send_stats (int fd, struct database_dyn
memset (&data, 0, sizeof (data));
+#ifdef __TIMESTAMP__
+ /* Skip day of the week. */
+ memcpy (data.version, __TIMESTAMP__ + 4, sizeof (compilation));
+#else
memcpy (data.version, compilation, sizeof (compilation));
+#endif
data.debug_level = debug_level;
data.runtime = time (NULL) - start_time;
data.client_queued = client_queued;