Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2019-06-19 21:12:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-unix-time"

Wed Jun 19 21:12:17 2019 rev:12 rq:710646 version:0.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes      
2019-02-17 12:20:37.204212455 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4811/ghc-unix-time.changes    
2019-06-19 21:13:07.514784761 +0200
@@ -1,0 +2,6 @@
+Fri Jun 14 02:03:26 UTC 2019 - [email protected]
+
+- Update unix-time to version 0.4.6.
+  Upstream does not provide a change log file.
+
+-------------------------------------------------------------------

Old:
----
  unix-time-0.4.5.tar.gz

New:
----
  unix-time-0.4.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-unix-time.spec ++++++
--- /var/tmp/diff_new_pack.izzBEU/_old  2019-06-19 21:13:07.982785216 +0200
+++ /var/tmp/diff_new_pack.izzBEU/_new  2019-06-19 21:13:07.986785220 +0200
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.4.5
+Version:        0.4.6
 Release:        0
 Summary:        Unix time parser/formatter and utilities
 License:        BSD-3-Clause

++++++ unix-time-0.4.5.tar.gz -> unix-time-0.4.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/Data/UnixTime/Sys.hsc 
new/unix-time-0.4.6/Data/UnixTime/Sys.hsc
--- old/unix-time-0.4.5/Data/UnixTime/Sys.hsc   2019-01-22 04:43:00.000000000 
+0100
+++ new/unix-time-0.4.6/Data/UnixTime/Sys.hsc   2019-06-13 05:15:06.000000000 
+0200
@@ -26,6 +26,4 @@
 getUnixTime :: IO UnixTime
 getUnixTime = allocaBytes (#const sizeof(struct timeval)) $ \ p_timeval -> do
     throwErrnoIfMinus1_ "getClockTime" $ c_gettimeofday p_timeval nullPtr
-    sec  <- (#peek struct timeval,tv_sec)  p_timeval
-    usec <- (#peek struct timeval,tv_usec) p_timeval
-    return $ UnixTime sec usec
+    peek (castPtr p_timeval)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/config.h.in 
new/unix-time-0.4.6/cbits/config.h.in
--- old/unix-time-0.4.5/cbits/config.h.in       2019-01-22 04:43:00.000000000 
+0100
+++ new/unix-time-0.4.6/cbits/config.h.in       2019-06-13 05:15:06.000000000 
+0200
@@ -21,6 +21,12 @@
 /* Define to 1 if you have the `strptime_l' function. */
 #undef HAVE_STRPTIME_L
 
+/* Define to 1 if you have the `strtoll_l' function. */
+#undef HAVE_STRTOLL_L
+
+/* Define to 1 if you have the `strtol_l' function. */
+#undef HAVE_STRTOL_L
+
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #undef HAVE_SYS_STAT_H
 
@@ -30,27 +36,39 @@
 /* Define to 1 if you have the `timegm' function. */
 #undef HAVE_TIMEGM
 
-/* Define to 1 if you have the `_mkgmtime' function. */
-#undef HAVE__MKGMTIME
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the <xlocale.h> header file. */
+#undef HAVE_XLOCALE_H
+
+/* Define to 1 if you have the `_create_locale' function. */
+#undef HAVE__CREATE_LOCALE
 
 /* Define to 1 if you have the `_get_current_locale' function. */
 #undef HAVE__GET_CURRENT_LOCALE
 
-/* Define to 1 if you have the `strtol_l' function. */
-#undef HAVE_STRTOL_L
+/* Define to 1 if you have the `_isblank_l' function. */
+#undef HAVE__ISBLANK_L
 
-/* Define to 1 if you have the `strtoll_l' function. */
-#undef HAVE_STRTOLL_L
+/* Define to 1 if you have the `_isdigit_l' function. */
+#undef HAVE__ISDIGIT_L
 
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
+/* Define to 1 if you have the `_isspace_l' function. */
+#undef HAVE__ISSPACE_L
 
-/* Define to 1 if you have the <xlocale.h> header file. */
-#undef HAVE_XLOCALE_H
+/* Define to 1 if you have the `_isupper_l' function. */
+#undef HAVE__ISUPPER_L
+
+/* Define to 1 if you have the `_mkgmtime' function. */
+#undef HAVE__MKGMTIME
 
 /* "Is Linux" */
 #undef IS_LINUX
 
+/* "Is Windows NT 6.1" */
+#undef IS_NT61
+
 /* Define to the address where bug reports for this package should be sent. */
 #undef PACKAGE_BUGREPORT
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/strftime.c 
new/unix-time-0.4.6/cbits/strftime.c
--- old/unix-time-0.4.5/cbits/strftime.c        2019-01-22 04:43:00.000000000 
+0100
+++ new/unix-time-0.4.6/cbits/strftime.c        2019-06-13 05:15:06.000000000 
+0200
@@ -112,8 +112,11 @@
 {
 #if HAVE__GET_CURRENT_LOCALE
        return _patch_strftime_l(s, maxsize, format, t, _get_current_locale());
-#else
+#elif HAVE__CREATE_LOCALE && !IS_NT61
        return _patch_strftime_l(s, maxsize, format, t, _create_locale(LC_TIME, 
"C"));
+#else
+       _locale_t locale;
+       return _patch_strftime_l(s, maxsize, format, t, locale);
 #endif
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/strptime.c 
new/unix-time-0.4.6/cbits/strptime.c
--- old/unix-time-0.4.5/cbits/strptime.c        2019-01-22 04:43:00.000000000 
+0100
+++ new/unix-time-0.4.6/cbits/strptime.c        2019-06-13 05:15:06.000000000 
+0200
@@ -712,7 +712,10 @@
 {
 #if HAVE__GET_CURRENT_LOCALE
        return strptime_l(buf, fmt, tm, _get_current_locale());
-#else
+#elif HAVE__CREATE_LOCALE && !IS_NT61
        return strptime_l(buf, fmt, tm, _create_locale(LC_TIME, "C"));
+#else
+       _locale_t locale;
+       return strptime_l(buf, fmt, tm, locale);
 #endif
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/win_patch.c 
new/unix-time-0.4.6/cbits/win_patch.c
--- old/unix-time-0.4.5/cbits/win_patch.c       2019-01-22 04:43:00.000000000 
+0100
+++ new/unix-time-0.4.6/cbits/win_patch.c       2019-06-13 05:15:06.000000000 
+0200
@@ -12,10 +12,12 @@
 }
 #endif
 
+#if !HAVE__ISBLANK_L
 inline int isblank_l( int c, _locale_t _loc)
 {
     return ( c == ' ' || c == '\t' );
 }
+#endif
 
 inline int strncasecmp_l(const char *s1, const char *s2, int len, _locale_t 
_loc) {
     return strncasecmp(s1, s2, len);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/win_patch.h 
new/unix-time-0.4.6/cbits/win_patch.h
--- old/unix-time-0.4.5/cbits/win_patch.h       2019-01-22 04:43:00.000000000 
+0100
+++ new/unix-time-0.4.6/cbits/win_patch.h       2019-06-13 05:15:06.000000000 
+0200
@@ -81,9 +81,23 @@
     1 + TYPE_SIGNED(type))
 #endif /* !defined INT_STRLEN_MAXIMUM */
 
+#if HAVE__ISSPACE_L
 #define isspace_l _isspace_l
+#else
+#define isspace_l(ch, locale) isspace(ch)
+#endif
+
+#if HAVE__ISUPPER_L
 #define isupper_l _isupper_l
+#else
+#define isupper_l(ch, locale) isupper(ch)
+#endif
+
+#if HAVE__ISDIGIT_L
 #define isdigit_l _isdigit_l
+#else
+#define isdigit_l(ch, locale) isdigit(ch)
+#endif
 
 #if !HAVE_STRTOL_L
 long strtol_l(const char *nptr, char **endptr, int base, _locale_t locale);
@@ -102,7 +116,9 @@
 #define isleap_sum(a, b)    isleap((a) % 400 + (b) % 400)
 #endif /* !defined isleap_sum */
 
+#if !HAVE__ISBLANK_L
 int isblank_l( int c, _locale_t _loc);
+#endif
 
 int strncasecmp_l(const char *s1, const char *s2, int len, _locale_t _loc);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/configure 
new/unix-time-0.4.6/configure
--- old/unix-time-0.4.5/configure       2019-01-22 04:43:00.000000000 +0100
+++ new/unix-time-0.4.6/configure       2019-06-13 05:15:06.000000000 +0200
@@ -3326,6 +3326,17 @@
 fi
 done
 
+for ac_func in _create_locale
+do :
+  ac_fn_c_check_func "$LINENO" "_create_locale" "ac_cv_func__create_locale"
+if test "x$ac_cv_func__create_locale" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE__CREATE_LOCALE 1
+_ACEOF
+
+fi
+done
+
 for ac_func in strtol_l
 do :
   ac_fn_c_check_func "$LINENO" "strtol_l" "ac_cv_func_strtol_l"
@@ -3348,6 +3359,50 @@
 fi
 done
 
+for ac_func in _isspace_l
+do :
+  ac_fn_c_check_func "$LINENO" "_isspace_l" "ac_cv_func__isspace_l"
+if test "x$ac_cv_func__isspace_l" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE__ISSPACE_L 1
+_ACEOF
+
+fi
+done
+
+for ac_func in _isupper_l
+do :
+  ac_fn_c_check_func "$LINENO" "_isupper_l" "ac_cv_func__isupper_l"
+if test "x$ac_cv_func__isupper_l" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE__ISUPPER_L 1
+_ACEOF
+
+fi
+done
+
+for ac_func in _isdigit_l
+do :
+  ac_fn_c_check_func "$LINENO" "_isdigit_l" "ac_cv_func__isdigit_l"
+if test "x$ac_cv_func__isdigit_l" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE__ISDIGIT_L 1
+_ACEOF
+
+fi
+done
+
+for ac_func in _isblank_l
+do :
+  ac_fn_c_check_func "$LINENO" "_isblank_l" "ac_cv_func__isblank_l"
+if test "x$ac_cv_func__isblank_l" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE__ISBLANK_L 1
+_ACEOF
+
+fi
+done
+
 
 host=`uname -a`
 case $host in
@@ -3364,6 +3419,22 @@
 #define IS_LINUX $LINUX
 _ACEOF
 
+
+case $host in
+  MINGW??_NT-6.1*)
+       NT61=1
+       ;;
+  *)
+       NT61=0
+       ;;
+esac
+
+
+cat >>confdefs.h <<_ACEOF
+#define IS_NT61 $NT61
+_ACEOF
+
+
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/configure.ac 
new/unix-time-0.4.6/configure.ac
--- old/unix-time-0.4.5/configure.ac    2019-01-22 04:43:00.000000000 +0100
+++ new/unix-time-0.4.6/configure.ac    2019-06-13 05:15:06.000000000 +0200
@@ -10,8 +10,13 @@
 AC_CHECK_FUNCS(timegm)
 AC_CHECK_FUNCS(_mkgmtime)
 AC_CHECK_FUNCS(_get_current_locale)
+AC_CHECK_FUNCS(_create_locale)
 AC_CHECK_FUNCS(strtol_l)
 AC_CHECK_FUNCS(strtoll_l)
+AC_CHECK_FUNCS(_isspace_l)
+AC_CHECK_FUNCS(_isupper_l)
+AC_CHECK_FUNCS(_isdigit_l)
+AC_CHECK_FUNCS(_isblank_l)
 
 host=`uname -a`
 case $host in
@@ -24,4 +29,16 @@
 esac
 
 AC_DEFINE_UNQUOTED(IS_LINUX,$LINUX,"Is Linux")
+
+case $host in
+  MINGW??_NT-6.1*)
+       NT61=1
+       ;;
+  *)
+       NT61=0
+       ;;
+esac
+
+AC_DEFINE_UNQUOTED(IS_NT61,$NT61,"Is Windows NT 6.1")
+
 AC_OUTPUT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/unix-time.cabal 
new/unix-time-0.4.6/unix-time.cabal
--- old/unix-time-0.4.5/unix-time.cabal 2019-01-22 04:43:00.000000000 +0100
+++ new/unix-time-0.4.6/unix-time.cabal 2019-06-13 05:15:06.000000000 +0200
@@ -1,5 +1,5 @@
 Name:                   unix-time
-Version:                0.4.5
+Version:                0.4.6
 Author:                 Kazu Yamamoto <[email protected]>
 Maintainer:             Kazu Yamamoto <[email protected]>
 License:                BSD3


Reply via email to