aboutsummaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/disable_Werror.patch31
-rw-r--r--debian/patches/gtk_box_api.patch41
-rw-r--r--debian/patches/lp_802384.patch18
-rw-r--r--debian/patches/lp_844741.patch12
-rw-r--r--debian/patches/series4
5 files changed, 106 insertions, 0 deletions
diff --git a/debian/patches/disable_Werror.patch b/debian/patches/disable_Werror.patch
new file mode 100644
index 0000000..fc267ca
--- /dev/null
+++ b/debian/patches/disable_Werror.patch
@@ -0,0 +1,31 @@
+Description: Disable -Werror, causes build failures due to deprecated symbols.
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+
+Index: indicator-datetime/src/Makefile.am
+===================================================================
+--- indicator-datetime.orig/src/Makefile.am 2011-10-06 06:50:07.814203000 +0200
++++ indicator-datetime/src/Makefile.am 2012-01-23 13:04:31.541545936 +0100
+@@ -15,7 +15,6 @@
+ settings-shared.h
+ indicator_datetime_service_CFLAGS = \
+ -Wall \
+- -Werror \
+ $(SERVICE_CFLAGS) \
+ -DTIMEZONE_FILE="\"/etc/timezone\"" \
+ -DG_LOG_DOMAIN=\"Indicator-Datetime\"
+@@ -33,7 +32,6 @@
+ indicator-datetime.c
+ libdatetime_la_CFLAGS = \
+ $(INDICATOR_CFLAGS) \
+- -Wall -Werror \
+ -DTIMEZONE_FILE="\"/etc/timezone\"" \
+ -DG_LOG_DOMAIN=\"Indicator-Datetime\"
+ libdatetime_la_LIBADD = \
+@@ -53,7 +51,6 @@
+ settings-shared.h
+ libindicator_datetime_la_CFLAGS = \
+ -Wall \
+- -Werror \
+ -I$(top_srcdir)/libmap \
+ $(PREF_CFLAGS) \
+ -DTIMEZONE_FILE="\"/etc/timezone\"" \
diff --git a/debian/patches/gtk_box_api.patch b/debian/patches/gtk_box_api.patch
new file mode 100644
index 0000000..0dd28f0
--- /dev/null
+++ b/debian/patches/gtk_box_api.patch
@@ -0,0 +1,41 @@
+From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
+Subject: Port to the new gtk_box_new() instead of gtk_hbox_new().
+
+Index: indicator-datetime/src/indicator-datetime.c
+===================================================================
+--- indicator-datetime.orig/src/indicator-datetime.c 2012-01-12 23:59:50.815675283 +0100
++++ indicator-datetime/src/indicator-datetime.c 2012-01-13 00:02:24.083668449 +0100
+@@ -34,6 +34,7 @@
+ #include <glib-object.h>
+ #include <glib/gi18n-lib.h>
+ #include <gio/gio.h>
++#include <gtk/gtk.h>
+
+ /* Indicator Stuff */
+ #include <libindicator/indicator.h>
+@@ -1261,7 +1262,12 @@
+
+ mi_data->gmi = gtk_menu_item_new();
+
++#if GTK_CHECK_VERSION(3, 2, 0)
++ GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4);
++ gtk_box_set_homogeneous (GTK_BOX(hbox), FALSE);
++#else
+ GtkWidget * hbox = gtk_hbox_new(FALSE, 4);
++#endif
+
+ /* Icon, probably someone's face or avatar on an IM */
+ mi_data->icon = gtk_image_new();
+@@ -1472,7 +1478,12 @@
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(mi_data->gmi),
+ dbusmenu_menuitem_property_get_bool(newitem, TIMEZONE_MENUITEM_PROP_RADIO));
+
++#if GTK_CHECK_VERSION(3, 2, 0)
++ GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4);
++ gtk_box_set_homogeneous (GTK_BOX(hbox), FALSE);
++#else
+ GtkWidget * hbox = gtk_hbox_new(FALSE, 4);
++#endif
+
+ /* Label, probably a username, chat room or mailbox name */
+ mi_data->label = gtk_label_new("");
diff --git a/debian/patches/lp_802384.patch b/debian/patches/lp_802384.patch
new file mode 100644
index 0000000..2c30c9f
--- /dev/null
+++ b/debian/patches/lp_802384.patch
@@ -0,0 +1,18 @@
+=== modified file 'src/datetime-service.c'
+--- a/src/datetime-service.c 2011-10-13 04:30:40 +0000
++++ b/src/datetime-service.c 2011-10-23 21:54:15 +0000
+@@ -1404,7 +1404,12 @@
+
+ geo_master = client;
+
+- if (geo_master != NULL) {
++ if (error != NULL) {
++ g_warning("Unable to get a GeoClue client! '%s' Geolocation based timezone support will not be available.", error->message);
++ return;
++ }
++
++ if (geo_master == NULL) {
+ g_warning(_("Unable to get a GeoClue client! Geolocation based timezone support will not be available."));
+ return;
+ }
+
diff --git a/debian/patches/lp_844741.patch b/debian/patches/lp_844741.patch
new file mode 100644
index 0000000..459779d
--- /dev/null
+++ b/debian/patches/lp_844741.patch
@@ -0,0 +1,12 @@
+=== modified file 'src/timezone-completion.c'
+--- a/src/timezone-completion.c 2011-09-06 12:47:37 +0000
++++ b/src/timezone-completion.c 2011-10-05 15:47:06 +0000
+@@ -355,7 +355,6 @@
+ gchar * locale = get_locale ();
+ gchar * url = g_strdup_printf (GEONAME_URL, escaped, version, locale);
+ g_free (locale);
+- g_free (version);
+ g_free (escaped);
+
+ GFile * file = g_file_new_for_uri (url);
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ab309a3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+disable_Werror.patch
+lp_844741.patch
+lp_802384.patch
+gtk_box_api.patch