Bug#1018178: buster-pu: package gnucash/1:3.4-1+deb10u1
Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: Dmitry Smirnov <onlyjob@debian.org>
* Add upstream fix for test-gnc-timezone with recent tzdata.
(Closes: #978208).
diff -Nru gnucash-3.4/debian/changelog gnucash-3.4/debian/changelog
--- gnucash-3.4/debian/changelog 2019-01-02 23:51:54.000000000 +0200
+++ gnucash-3.4/debian/changelog 2022-08-26 01:24:12.000000000 +0300
@@ -1,3 +1,11 @@
+gnucash (1:3.4-1+deb10u1) buster; urgency=medium
+
+ * Non-maintainer upload.
+ * Add upstream fix for test-gnc-timezone with recent tzdata.
+ (Closes: #978208).
+
+ -- Adrian Bunk <bunk@debian.org> Fri, 26 Aug 2022 01:24:12 +0300
+
gnucash (1:3.4-1) unstable; urgency=medium
* New upstream release (Closes: #918059).
diff -Nru gnucash-3.4/debian/patches/0001-Fix-test-gnc-timezone-failure-caused-by-latest-zonei.patch gnucash-3.4/debian/patches/0001-Fix-test-gnc-timezone-failure-caused-by-latest-zonei.patch
--- gnucash-3.4/debian/patches/0001-Fix-test-gnc-timezone-failure-caused-by-latest-zonei.patch 1970-01-01 02:00:00.000000000 +0200
+++ gnucash-3.4/debian/patches/0001-Fix-test-gnc-timezone-failure-caused-by-latest-zonei.patch 2022-08-26 01:16:52.000000000 +0300
@@ -0,0 +1,31 @@
+From ae66da96324e6b8545456c980caf81c93d368402 Mon Sep 17 00:00:00 2001
+From: John Ralls <jralls@ceridwen.us>
+Date: Sat, 26 Dec 2020 13:45:28 -0800
+Subject: Fix test-gnc-timezone failure caused by latest zoneinfo release.
+
+See the comment for details.
+---
+ libgnucash/engine/test/gtest-gnc-timezone.cpp | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/libgnucash/engine/test/gtest-gnc-timezone.cpp b/libgnucash/engine/test/gtest-gnc-timezone.cpp
+index a676ff1a9..25d9d9d45 100644
+--- a/libgnucash/engine/test/gtest-gnc-timezone.cpp
++++ b/libgnucash/engine/test/gtest-gnc-timezone.cpp
+@@ -134,6 +134,13 @@ TEST(gnc_timezone_constructors, test_IANA_Belize_tz)
+ EXPECT_EQ(tz->dst_zone_abbrev(), "CDT");
+ EXPECT_EQ(tz->dst_offset().total_seconds(), 3600);
+ }
++ /* An IANA update on 22 Dec 2020 added missing DST transitions
++ * for Belize between 1943 and 1967. Ignore those years until
++ * the oldest supported OS version release is later than that
++ * because distros updating of zoneinfo is spotty.
++ */
++ else if (year >= 1943 && year <= 1967)
++ continue;
+ else
+ {
+ EXPECT_EQ(tz->std_zone_abbrev(), "CST");
+--
+2.20.1
+
diff -Nru gnucash-3.4/debian/patches/series gnucash-3.4/debian/patches/series
--- gnucash-3.4/debian/patches/series 2019-01-02 23:51:54.000000000 +0200
+++ gnucash-3.4/debian/patches/series 2022-08-26 01:24:11.000000000 +0300
@@ -1,2 +1,3 @@
test--fix-test-transaction.scm.patch
test--skip-test-stress-options.patch
+0001-Fix-test-gnc-timezone-failure-caused-by-latest-zonei.patch
Reply to: