mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 4/6] timezone: Add missing zoneinfo entries
Date: Tue, 26 Jun 2018 08:56:50 +0200	[thread overview]
Message-ID: <20180626065652.18064-5-ada@thorsis.com> (raw)
In-Reply-To: <20180626065652.18064-1-ada@thorsis.com>

Note: these are somehow redundant as many other entries are, too.

    Poland → Europe/Warsaw
    Portugal → Europe/Lisbon
    Turkey → Europe/Istanbul

However, we already have e.g.

    Eire → Europe/Dublin
    Egypt → Africa/Cairo
    …

As far as I can tell, tz uses hardlinks here. (Debian does some magic in
its 'tzdata' package to convert those hardlinks into symlinks.)

So to be consistent we could also introduce some magic and look for
duplicates where tz considers one zone as link to another or for
simplifying things we could just add everything. This patch takes the
second approach.

Note: if the user selects e.g. 'Poland' and 'Europe/Warsaw' that would
waste space on the target, because the same file is copied twice without
symbolic or hard link.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/timezone.in   | 12 ++++++++++++
 rules/timezone.make |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/rules/timezone.in b/rules/timezone.in
index 7d5b8e736..378a05b68 100644
--- a/rules/timezone.in
+++ b/rules/timezone.in
@@ -195,6 +195,14 @@ config TIMEZONE_NZ_CHAT
 	bool
 	prompt "NZ-CHAT"
 
+config TIMEZONE_POLAND
+	bool
+	prompt "Poland"
+
+config TIMEZONE_PORTUGAL
+	bool
+	prompt "Portugal"
+
 config TIMEZONE_PRC
 	bool
 	prompt "PRC"
@@ -215,6 +223,10 @@ config TIMEZONE_SINGAPORE
 	bool
 	prompt "Singapore"
 
+config TIMEZONE_TURKEY
+	bool
+	prompt "Turkey"
+
 config TIMEZONE_UCT
 	bool
 	prompt "UCT"
diff --git a/rules/timezone.make b/rules/timezone.make
index b978bc843..b6cb33ce7 100644
--- a/rules/timezone.make
+++ b/rules/timezone.make
@@ -65,11 +65,14 @@ TIMEZONE-$(PTXCONF_TIMEZONE_MST7MDT) += "MST7MDT"
 TIMEZONE-$(PTXCONF_TIMEZONE_NAVAJO) += "Navajo"
 TIMEZONE-$(PTXCONF_TIMEZONE_NZ) += "NZ"
 TIMEZONE-$(PTXCONF_TIMEZONE_NZ_CHAT) += "NZ-CHAT"
+TIMEZONE-$(PTXCONF_TIMEZONE_POLAND) += "Poland"
+TIMEZONE-$(PTXCONF_TIMEZONE_PORTUGAL) += "Portugal"
 TIMEZONE-$(PTXCONF_TIMEZONE_PRC) += "PRC"
 TIMEZONE-$(PTXCONF_TIMEZONE_PST8PDT) += "PST8PDT"
 TIMEZONE-$(PTXCONF_TIMEZONE_ROC) += "ROC"
 TIMEZONE-$(PTXCONF_TIMEZONE_ROK) += "ROK"
 TIMEZONE-$(PTXCONF_TIMEZONE_SINGAPORE) += "Singapore"
+TIMEZONE-$(PTXCONF_TIMEZONE_TURKEY) += "Turkey"
 TIMEZONE-$(PTXCONF_TIMEZONE_UCT) += "UCT"
 TIMEZONE-$(PTXCONF_TIMEZONE_UNIVERSAL) += "Universal"
 TIMEZONE-$(PTXCONF_TIMEZONE_UTC) += "UTC"
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2018-06-26  6:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-26  6:56 [ptxdist] [PATCH 0/6] timezone cleanup and tz update Alexander Dahl
2018-06-26  6:56 ` [ptxdist] [PATCH 1/6] timezone: Remove menu entry 'Mideast' Alexander Dahl
2018-06-26  6:56 ` [ptxdist] [PATCH 2/6] timezone: Cleanup timezone file removal Alexander Dahl
2018-06-26 13:50   ` Roland Hieber
2018-06-26 14:01     ` Alexander Dahl
2018-06-26 14:04       ` Alexander Dahl
2018-06-26 14:05       ` Roland Hieber
2018-06-26  6:56 ` [ptxdist] [PATCH 3/6] timezone: Order entries Alexander Dahl
2018-06-26  6:56 ` Alexander Dahl [this message]
2018-06-26  6:56 ` [ptxdist] [PATCH 5/6] tz: version bump 2017c -> 2018e Alexander Dahl
2018-06-26 14:02   ` Roland Hieber
2018-06-26  6:56 ` [ptxdist] [PATCH 6/6] Revert "host-tz-database: use snprintf provided by the host compiler" Alexander Dahl
2018-06-26 14:03   ` Roland Hieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180626065652.18064-5-ada@thorsis.com \
    --to=ada@thorsis.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox