diff --git a/gnome-panel.spec b/gnome-panel.spec index f41d676..dbcf97f 100644 --- a/gnome-panel.spec +++ b/gnome-panel.spec @@ -22,7 +22,7 @@ Summary: GNOME panel Name: gnome-panel Version: 2.22.1.2 -Release: 4%{?dist} +Release: 5%{?dist} URL: http://www.gnome.org Source0: http://download.gnome.org/sources/gnome-panel/2.22/%{name}-%{version}.tar.bz2 @@ -127,6 +127,7 @@ Patch33: gnome-panel-use-gio.patch Patch34: gnome-panel-launch-with-gio.patch # fixed in upstream svn Patch35: timezone-64.patch +Patch36: timezone-debug.patch Conflicts: gnome-power-manager < 2.15.3 @@ -182,6 +183,7 @@ Panel Applets using the libpanel-applet library. %patch33 -p1 -b .use-gio %patch34 -p1 -b .launch-with-gio %patch35 -p1 -b .timezone-64 +%patch36 -p1 -b .timezone-debug . %{SOURCE6} @@ -366,6 +368,9 @@ fi %{_datadir}/gtk-doc/html/* %changelog +* Tue Apr 22 2008 Matthias Clasen - 2.22.1.2-5 +- Add another patch that may fix timezone setting problems (#443415) + * Fri Apr 18 2008 Matthias Clasen - 2.22.1.2-4 - Use gio to open places - Fix a 64bit issue with timezone handling in the clock diff --git a/timezone-debug.patch b/timezone-debug.patch new file mode 100644 index 0000000..d7fbf43 --- /dev/null +++ b/timezone-debug.patch @@ -0,0 +1,13 @@ +diff -up gnome-panel-2.22.1.2/applets/clock/system-timezone.c.debug gnome-panel-2.22.1.2/applets/clock/system-timezone.c +--- gnome-panel-2.22.1.2/applets/clock/system-timezone.c.debug 2008-04-22 19:22:48.000000000 -0400 ++++ gnome-panel-2.22.1.2/applets/clock/system-timezone.c 2008-04-22 20:16:44.000000000 -0400 +@@ -863,7 +863,8 @@ system_timezone_is_zone_file_valid (cons + return FALSE; + } + +- if (read != 4 || strcmp (buffer, TZ_MAGIC) != 0) { ++ if (read != strlen (TZ_MAGIC) || strncmp (buffer, TZ_MAGIC, strlen (TZ_MAGIC)) != 0) { ++ buffer[read] = 0; + g_set_error (error, SYSTEM_TIMEZONE_ERROR, + SYSTEM_TIMEZONE_ERROR_INVALID_TIMEZONE_FILE, + "%s is not a timezone file",