From 5e0541ba746b06e9cfb15ec931787dd7911406f8 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 20 Sep 2012 15:03:18 -0600 Subject: [PATCH] - Remove handling of /etc/localtime and /var/spool/postfix/etc/localtime as systemd will be handling them from now on (#858735). --- glibc.spec | 79 ++++-------------------------------------------------- 1 file changed, 5 insertions(+), 74 deletions(-) diff --git a/glibc.spec b/glibc.spec index d126884..4980d41 100644 --- a/glibc.spec +++ b/glibc.spec @@ -27,7 +27,7 @@ Summary: The GNU libc libraries Name: glibc Version: %{glibcversion} -Release: 11%{?dist} +Release: 12%{?dist} # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries. # Things that are linked directly into dynamically linked programs # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional @@ -901,11 +901,6 @@ cat > utils.filelist < -- tzdata -function update (filename, new_data) - local fd = io.open(filename) - if not fd then return end - local data = fd:read("*a") - fd:close() - if not data then return end - -- Don't update the file unnecessarily. - if data == new_data then return end - local tempfilename = filename .. ".tzupdate" - fd = io.open(tempfilename, "w") - if not fd then return end - fd:write(new_data) - fd:close() - posix.chmod(tempfilename, 0644) - if not os.rename(tempfilename, filename) then - os.remove(tempfilename) - end -end -fd = io.open("/etc/sysconfig/clock") -if not fd then return end -zonename = nil -for l in fd:lines() do - zone = string.match(l, "^[ \t]*ZONE[ \t]*=[ \t]*\"?([^\t\n\"]*)"); - if zone then - zone = string.gsub (zone, " ", "_") - zonename = "/usr/share/zoneinfo/" .. zone - break - end -end -fd:close() -if not zonename then return end -fd = io.open(zonename) -if not fd then return end -data = fd:read("*a") -fd:close() -if not data then return end -update("/var/spool/postfix/etc/localtime", data) -os.remove("/etc/localtime.tzupdate") -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 || : @@ -1300,7 +1228,6 @@ rm -f *.filelist* %attr(0644,root,root) %verify(not md5 size mtime mode) %ghost %config(missingok,noreplace) %{_prefix}/lib/locale/locale-archive %dir %attr(755,root,root) /etc/default %verify(not md5 size mtime) %config(noreplace) /etc/default/nss -%verify(not md5 size mtime) %config(noreplace) /etc/localtime %attr(755,root,root) %caps(cap_chown,cap_fowner=pe) %{_prefix}/libexec/pt_chown %doc documentation/* @@ -1349,6 +1276,10 @@ rm -f *.filelist* %endif %changelog +* Thu Sep 20 2012 Jeff Law - 2.16.90-12 + - Remove handling of /etc/localtime and /var/spool/postfix/etc/localtime + as systemd will be handling them from now on (#858735). + * Fri Sep 14 2012 Jeff Law - 2.16.90-11 - Resync with upstream sources (#857236).