File gnulib-alt-mktime-internal.patch of Package gnulib

From 138d244dda3cb9a1153d15d51a974a937bf31c27 Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux>
Date: Wed, 7 Oct 2015 23:00:00 +0000
Subject: [PATCH] gl_FUNC_MKTIME_INTERNAL: do not insist on providing
 __mktime_internal

Hack gl_FUNC_MKTIME_INTERNAL so that absence of __mktime_internal
won't result to enforced mktime replacement.

Since timegm is universally available, nobody actually needs
__mktime_internal, and at the same time forced REPLACE_MKTIME=1
causes further breakage.
---
 m4/mktime.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/mktime.m4 b/m4/mktime.m4
index 3f0e1ee..43020fb 100644
--- a/m4/mktime.m4
+++ b/m4/mktime.m4
@@ -244,7 +244,7 @@ AC_DEFUN([gl_FUNC_MKTIME_INTERNAL], [
       ],
       [dnl mktime works but it doesn't export __mktime_internal,
        dnl so we need to substitute our own mktime implementation.
-       REPLACE_MKTIME=1
+       test -z "$REALLY_NEED_MKTIME_INTERNAL" || REPLACE_MKTIME=1
       ])
   fi
 ])
openSUSE Build Service is sponsored by