[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#964714: buster-pu: package appstream-glib/0.7.14-1+deb10u1



Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian.org@packages.debian.org
Usertags: pu

  * Backport upstream fix for FTBFS in the year 2020.
    (Closes: #949169)
diff -Nru appstream-glib-0.7.14/debian/changelog appstream-glib-0.7.14/debian/changelog
--- appstream-glib-0.7.14/debian/changelog	2018-12-05 23:29:52.000000000 +0200
+++ appstream-glib-0.7.14/debian/changelog	2020-07-09 15:16:46.000000000 +0300
@@ -1,3 +1,11 @@
+appstream-glib (0.7.14-1+deb10u1) buster; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS in the year 2020.
+    (Closes: #949169)
+
+ -- Adrian Bunk <bunk@debian.org>  Thu, 09 Jul 2020 15:16:46 +0300
+
 appstream-glib (0.7.14-1) unstable; urgency=medium
 
   * Team upload
diff -Nru appstream-glib-0.7.14/debian/patches/0001-trivial-Fix-CI-by-moving-future-back-a-bit.patch appstream-glib-0.7.14/debian/patches/0001-trivial-Fix-CI-by-moving-future-back-a-bit.patch
--- appstream-glib-0.7.14/debian/patches/0001-trivial-Fix-CI-by-moving-future-back-a-bit.patch	1970-01-01 02:00:00.000000000 +0200
+++ appstream-glib-0.7.14/debian/patches/0001-trivial-Fix-CI-by-moving-future-back-a-bit.patch	2020-07-09 15:16:46.000000000 +0300
@@ -0,0 +1,40 @@
+From 953c8e529d7291e60a95e580967ed79ce2c9ccf0 Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard@hughsie.com>
+Date: Mon, 6 Jan 2020 11:04:56 +0000
+Subject: trivial: Fix CI by moving 'future' back a bit
+
+2020 seemed like such a long time in the future all those years ago...
+---
+ data/tests/broken.appdata.xml       | 2 +-
+ libappstream-glib/as-app-validate.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/data/tests/broken.appdata.xml b/data/tests/broken.appdata.xml
+index f7a5386..cf80f5b 100644
+--- a/data/tests/broken.appdata.xml
++++ b/data/tests/broken.appdata.xml
+@@ -40,7 +40,7 @@
+         <p>This is a duplicate release on the same day!</p>
+       </description>
+     </release>
+-    <release date="2020-01-01" version="0.6.2">
++    <release date="2050-01-01" version="0.6.2">
+       <description>
+         <p>This is a release in the future!</p>
+       </description>
+diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
+index c1103ac..f50e4e4 100644
+--- a/libappstream-glib/as-app-validate.c
++++ b/libappstream-glib/as-app-validate.c
+@@ -864,7 +864,7 @@ as_app_validate_release (AsApp *app,
+ 				     AS_PROBLEM_KIND_ATTRIBUTE_MISSING,
+ 				     "<release> has no timestamp");
+ 	}
+-	if (timestamp > 20120101 && timestamp < 20251231) {
++	if (timestamp > 20120101 && timestamp < 20351231) {
+ 		ai_app_validate_add (helper,
+ 				     AS_PROBLEM_KIND_ATTRIBUTE_INVALID,
+ 				     "<release> timestamp should be a UNIX time");
+-- 
+2.20.1
+
diff -Nru appstream-glib-0.7.14/debian/patches/series appstream-glib-0.7.14/debian/patches/series
--- appstream-glib-0.7.14/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ appstream-glib-0.7.14/debian/patches/series	2020-07-09 15:16:46.000000000 +0300
@@ -0,0 +1 @@
+0001-trivial-Fix-CI-by-moving-future-back-a-bit.patch

Reply to: