commit ghc-unix-time for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package ghc-unix-time for openSUSE:Factory checked in at 2018-12-28 12:35:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
and /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-unix-time"
Fri Dec 28 12:35:23 2018 rev:10 rq:661503 version:0.4.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes 2018-12-21 08:21:26.721568529 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833/ghc-unix-time.changes 2018-12-28 12:35:30.955955342 +0100
@@ -1,0 +2,12 @@
+Tue Dec 25 03:01:39 UTC 2018 - psimons@suse.com
+
+- Update unix-time to version 0.4.4.
+ Upstream does not provide a change log file.
+
+-------------------------------------------------------------------
+Wed Dec 19 13:56:10 UTC 2018 - psimons@suse.com
+
+- Update unix-time to version 0.4.3.
+ Upstream does not provide a change log file.
+
+-------------------------------------------------------------------
Old:
----
unix-time-0.4.0.tar.gz
New:
----
unix-time-0.4.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-unix-time.spec ++++++
--- /var/tmp/diff_new_pack.VRtRul/_old 2018-12-28 12:35:31.519954948 +0100
+++ /var/tmp/diff_new_pack.VRtRul/_new 2018-12-28 12:35:31.519954948 +0100
@@ -19,7 +19,7 @@
%global pkg_name unix-time
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.4.0
+Version: 0.4.4
Release: 0
Summary: Unix time parser/formatter and utilities
License: BSD-3-Clause
@@ -29,6 +29,7 @@
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
+BuildRequires: ghc-cabal-doctest-devel
BuildRequires: ghc-old-time-devel
BuildRequires: ghc-rpm-macros
%if %{with tests}
++++++ unix-time-0.4.0.tar.gz -> unix-time-0.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.0/Setup.hs new/unix-time-0.4.4/Setup.hs
--- old/unix-time-0.4.0/Setup.hs 2018-12-13 02:46:40.000000000 +0100
+++ new/unix-time-0.4.4/Setup.hs 2018-12-24 06:09:10.000000000 +0100
@@ -1,3 +1,33 @@
+{-# LANGUAGE CPP #-}
+{-# OPTIONS_GHC -Wall #-}
+module Main (main) where
+
+#ifndef MIN_VERSION_cabal_doctest
+#define MIN_VERSION_cabal_doctest(x,y,z) 0
+#endif
+
+#if MIN_VERSION_cabal_doctest(1,0,0)
+
+import Distribution.Extra.Doctest ( defaultMainAutoconfWithDoctests )
+main :: IO ()
+main = defaultMainAutoconfWithDoctests "doctests"
+
+#else
+
+#ifdef MIN_VERSION_Cabal
+-- If the macro is defined, we have new cabal-install,
+-- but for some reason we don't have cabal-doctest in package-db
+--
+-- Probably we are running cabal sdist, when otherwise using new-build
+-- workflow
+#warning You are configuring this package without cabal-doctest installed. \
+ The doctests test-suite will not work as a result. \
+ To fix this, install cabal-doctest before configuring.
+#endif
+
import Distribution.Simple
-main = defaultMainWithHooks autoconfUserHooks
+main :: IO ()
+main = defaultMain
+
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.0/cbits/strftime.c new/unix-time-0.4.4/cbits/strftime.c
--- old/unix-time-0.4.0/cbits/strftime.c 2018-12-13 02:46:40.000000000 +0100
+++ new/unix-time-0.4.4/cbits/strftime.c 2018-12-24 06:09:10.000000000 +0100
@@ -476,7 +476,7 @@
else
#endif /* defined TM_ZONE */
if (t->tm_isdst >= 0)
- pt = _add(tzname[t->tm_isdst != 0],
+ pt = _add(_tzname[t->tm_isdst != 0],
pt, ptlim);
/*
* C99 says that %Z must be replaced by the
@@ -514,7 +514,7 @@
* appropriate variables are not available.
*/
if (t->tm_isdst == 0)
- diff = -timezone;
+ diff = -_timezone;
else
#ifdef ALTZONE
diff = -altzone;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.0/cbits/strptime.c new/unix-time-0.4.4/cbits/strptime.c
--- old/unix-time-0.4.0/cbits/strptime.c 2018-12-13 02:46:40.000000000 +0100
+++ new/unix-time-0.4.4/cbits/strptime.c 2018-12-24 06:09:10.000000000 +0100
@@ -548,9 +548,9 @@
if (0 == strcmp(zonestr, "GMT") ||
0 == strcmp(zonestr, "UTC")) {
*GMTp = 1;
- } else if (0 == strcmp(zonestr, tzname[0])) {
+ } else if (0 == strcmp(zonestr, _tzname[0])) {
tm->tm_isdst = 0;
- } else if (0 == strcmp(zonestr, tzname[1])) {
+ } else if (0 == strcmp(zonestr, _tzname[1])) {
tm->tm_isdst = 1;
} else {
return (NULL);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.0/cbits/win_patch.h new/unix-time-0.4.4/cbits/win_patch.h
--- old/unix-time-0.4.0/cbits/win_patch.h 1970-01-01 01:00:00.000000000 +0100
+++ new/unix-time-0.4.4/cbits/win_patch.h 2018-12-24 06:09:10.000000000 +0100
@@ -0,0 +1,155 @@
+#ifndef UNIX_TIME_WIN_PATCH_H
+#define UNIX_TIME_WIN_PATCH_H
+
+#include "config.h"
+
+#include
participants (1)
-
root