[glibc] - Fix tzdata trigger (#822200)
Jeffrey Law
law at fedoraproject.org
Wed May 23 05:08:59 UTC 2012
commit 9b14d89a52d1f6de17da37e35fcbb47f4858e9a9
Author: Jeff Law <law at redhat.com>
Date: Tue May 22 23:08:44 2012 -0600
- Fix tzdata trigger (#822200)
glibc.spec | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/glibc.spec b/glibc.spec
index 74ff458..19b0db6 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1151,8 +1151,13 @@ if not fd then return end
data = fd:read("*a")
fd:close()
if not data then return end
-update("/etc/localtime", data)
update("/var/spool/postfix/etc/localtime", data)
+posix.symlink (zonename, "/etc/localtime.tzupdate")
+posix.chmod("/etc/localtime.tzupdate", 0644)
+if not os.rename("/etc/localtime.tzupdate", "/etc/localtime") then
+ os.remove("/etc/localtime.tzupdate")
+end
+
%post devel
/sbin/install-info %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || :
@@ -1314,7 +1319,8 @@ rm -f *.filelist*
%changelog
* Tue May 22 2012 Patsy Franklin <pfrankli at redhat.com> - 2.15-41
- - Make the symlink relative rather than linking into the buildroot.
+ - Fix tzdata trigger (#822200)
+ - Make the symlink relative rather than linking into the buildroot (#822200).
- Changed /etc/localtime to a symlink. 8222000 (#822200)
* Tue May 15 2012 Jeff Law <law at redhat.com> - 2.15-40
More information about the scm-commits
mailing list