From b46425e74249d2ef3cb01dc61807c048518603fa Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 11 Feb 2022 16:15:24 +0900 Subject: [PATCH] Change default timezone path /etc/localtime -> /opt/etc/localtime Change-Id: I36b59660fe785412f5265ce7195f17512a5e8a00 --- packaging/Change_localtime_path.patch | 13 +++++++++++++ packaging/icu.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 packaging/Change_localtime_path.patch diff --git a/packaging/Change_localtime_path.patch b/packaging/Change_localtime_path.patch new file mode 100644 index 0000000..5fffdcc --- /dev/null +++ b/packaging/Change_localtime_path.patch @@ -0,0 +1,13 @@ +diff --git a/source/common/putil.cpp b/source/common/putil.cpp +index 6c23bffb2..8447d7d78 100644 +--- a/source/common/putil.cpp ++++ b/source/common/putil.cpp +@@ -708,7 +708,7 @@ extern U_IMPORT char *U_TZNAME[]; + #define TZZONEINFO "/usr/share/lib/zoneinfo/" + #define TZ_ENV_CHECK "localtime" + #else +-#define TZDEFAULT "/etc/localtime" ++#define TZDEFAULT "/opt/etc/localtime" + #define TZZONEINFO "/usr/share/zoneinfo/" + #endif + #define TZZONEINFOTAIL "/zoneinfo/" diff --git a/packaging/icu.spec b/packaging/icu.spec index e64523e..92768e7 100644 --- a/packaging/icu.spec +++ b/packaging/icu.spec @@ -18,6 +18,7 @@ Source2: set_disable_renameing.patch Source3: Disable-the-default-LDFLAGSICUDT.patch Source4: Add_PIE_option_for_tzcode.patch Source5: Set_define_false_and_true.patch +Source6: Change_localtime_path.patch Source1001: icu.manifest BuildRequires: doxygen @@ -67,6 +68,7 @@ cp %{SOURCE1001} . %{__patch} -p1 < %{SOURCE3} %{__patch} -p1 < %{SOURCE4} %{__patch} -p1 < %{SOURCE5} +%{__patch} -p1 < %{SOURCE6} %if "%{?profile}" == "tv" cp %{SOURCE1} ./source/tools/tzcode -- 2.7.4