Hello community,

here is the log from the commit of package dateutils for openSUSE:Factory 
checked in at 2017-04-12 17:34:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dateutils (Old)
 and      /work/SRC/openSUSE:Factory/.dateutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dateutils"

Wed Apr 12 17:34:30 2017 rev:18 rq:484859 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/dateutils/dateutils.changes      2017-01-04 
19:35:10.975051621 +0100
+++ /work/SRC/openSUSE:Factory/.dateutils.new/dateutils.changes 2017-04-12 
18:02:45.308159706 +0200
@@ -1,0 +2,6 @@
+Mon Apr  3 12:33:47 UTC 2017 - [email protected]
+
+- fix incompatibility with tzdata/tzcode >= 2017a,
+  0001-fix-when-printing-zones-transitioning-at-INT_MAX-in-.patch
+
+-------------------------------------------------------------------

New:
----
  0001-fix-when-printing-zones-transitioning-at-INT_MAX-in-.patch

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

Other differences:
------------------
++++++ dateutils.spec ++++++
--- /var/tmp/diff_new_pack.j44lv9/_old  2017-04-12 18:02:46.124044348 +0200
+++ /var/tmp/diff_new_pack.j44lv9/_new  2017-04-12 18:02:46.128043782 +0200
@@ -46,6 +46,8 @@
 Group:          Productivity/Text/Utilities
 Url:            https://github.com/hroptatyr/dateutils/
 Source:         
https://bitbucket.org/hroptatyr/dateutils/downloads/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM
+Patch1:         0001-fix-when-printing-zones-transitioning-at-INT_MAX-in-.patch
 BuildRequires:  pkgconfig
 BuildRequires:  xz
 %if 0%{?suse_version}
@@ -78,6 +80,7 @@
 
 %prep
 %setup -q -n %{name}-%{xversion}
+%patch1 -p1
 
 %build
 %configure \

++++++ 0001-fix-when-printing-zones-transitioning-at-INT_MAX-in-.patch ++++++
>From 1238f9bac1f652a0e28eab1bed66914dedbcd282 Mon Sep 17 00:00:00 2001
From: Sebastian Freundt <[email protected]>
Date: Mon, 3 Apr 2017 12:13:51 +0000
Subject: [PATCH] fix, when printing zones transitioning at INT_MAX in
 datezone(1) use NEVER indicator

Signed-off-by: Ruediger Meier <[email protected]>
---
 src/dzone.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/dzone.c b/src/dzone.c
index 4fb7769..968fd06 100644
--- a/src/dzone.c
+++ b/src/dzone.c
@@ -137,8 +137,12 @@ dz_write_nxtr(struct zrng_s r, zif_t z, const char *zn)
                /* thank god there's another one */
                struct ztrdtl_s zd = zif_trdtl(z, r.trno + 1);
 
+               if (r.next == INT_MAX) {
+                       goto never;
+               }
                bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.next, zd.offs});
        } else {
+       never:
                bp += xstrlcpy(bp, never, bp - ep);
        }
 
-- 
1.8.5.6


Reply via email to