hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone

Blame SOURCES/0001-Put-dummy-pacificnew-into-rearguard-tarball.patch

87f4cd
From 0c8cac40a6ee69e106f3b034624890b98cad5b01 Mon Sep 17 00:00:00 2001
87f4cd
From: Paul Eggert <eggert@cs.ucla.edu>
87f4cd
Date: Mon, 12 Oct 2020 16:15:27 -0700
87f4cd
Subject: [PROPOSED] Put dummy pacificnew into rearguard tarball
87f4cd
87f4cd
Problem reported by Mike Cullinan in:
87f4cd
https://mm.icann.org/pipermail/tz/2020-October/029309.html
87f4cd
* Makefile (tzdata$(VERSION)-rearguard.tar.gz):
87f4cd
Put an empty pacificnew file into the rearguard tarball.
87f4cd
* NEWS: Mention this.
87f4cd
---
87f4cd
 Makefile | 6 +++++-
87f4cd
 NEWS     | 7 +++++++
87f4cd
 2 files changed, 12 insertions(+), 1 deletion(-)
87f4cd
87f4cd
diff --git a/Makefile b/Makefile
87f4cd
index 28972c6..95f0a06 100644
87f4cd
--- a/Makefile
87f4cd
+++ b/Makefile
87f4cd
@@ -1022,10 +1022,14 @@ tzdata$(VERSION)-rearguard.tar.gz: rearguard.zi set-timestamps.out
87f4cd
 		done
87f4cd
 		sed '1s/$$/-rearguard/' \
87f4cd
 		  <version >tzdata$(VERSION)-rearguard.dir/version
87f4cd
+		: The dummy pacificnew pacifies TZUpdater 2.3.1 and earlier.
87f4cd
+		touch -md 2020-10-12T22:53:00Z \
87f4cd
+		  tzdata$(VERSION)-rearguard.dir/pacificnew
87f4cd
 		touch -cmr version tzdata$(VERSION)-rearguard.dir/version
87f4cd
 		LC_ALL=C && export LC_ALL && \
87f4cd
 		  (cd tzdata$(VERSION)-rearguard.dir && \
87f4cd
-		   tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \
87f4cd
+		   tar $(TARFLAGS) -cf - \
87f4cd
+			$(COMMON) $(DATA) $(MISC) pacificnew | \
87f4cd
 		     gzip $(GZIPFLAGS)) >$@.out
87f4cd
 		mv $@.out $@