From patchwork Thu May 5 07:57:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [18/26] gypsy_0.8.bb: Fix build with gcc 4.6 Date: Thu, 05 May 2011 07:57:24 -0000 From: Saul Wold X-Patchwork-Id: 3233 Message-Id: <520699ca87e99a79590057041a454aae8aa2204f.1304581770.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org,bruce.ashfield@windriver.com Cc: Kyle McMartin , Greg Kroah-Hartman , Paul Eggleton , Arnaldo Carvalho de Melo , Kang Kai , Thomas Meyer From: Khem Raj Signed-off-by: Khem Raj --- .../fix-unused-but-set-variable-warning.patch | 16 ++++++++++++++++ meta/recipes-connectivity/gypsy/gypsy_0.8.bb | 7 ++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-connectivity/gypsy/files/fix-unused-but-set-variable-warning.patch diff --git a/meta/recipes-connectivity/gypsy/files/fix-unused-but-set-variable-warning.patch b/meta/recipes-connectivity/gypsy/files/fix-unused-but-set-variable-warning.patch new file mode 100644 index 0000000..d826970 --- /dev/null +++ b/meta/recipes-connectivity/gypsy/files/fix-unused-but-set-variable-warning.patch @@ -0,0 +1,16 @@ +Index: gypsy-0.8/gypsy/gypsy-time.c +=================================================================== +--- gypsy-0.8.orig/gypsy/gypsy-time.c ++++ gypsy-0.8/gypsy/gypsy-time.c +@@ -156,10 +156,10 @@ get_property (GObject *object, + GParamSpec *pspec) + { + GypsyTimePrivate *priv; +- + priv = GET_PRIVATE (object); + switch (prop_id) { + case PROP_PATH: ++ g_value_set_string (value, priv->object_path); + break; + + default: diff --git a/meta/recipes-connectivity/gypsy/gypsy_0.8.bb b/meta/recipes-connectivity/gypsy/gypsy_0.8.bb index ab7f6b0..f3d3fa7 100644 --- a/meta/recipes-connectivity/gypsy/gypsy_0.8.bb +++ b/meta/recipes-connectivity/gypsy/gypsy_0.8.bb @@ -13,9 +13,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ SECTION = "x11" DEPENDS = "glib-2.0 dbus bluez4 dbus-glib libxslt" -SRC_URI = "http://gypsy.freedesktop.org/releases/gypsy-${PV}.tar.gz" - -PR = "r0" +SRC_URI = "http://gypsy.freedesktop.org/releases/gypsy-${PV}.tar.gz \ + file://fix-unused-but-set-variable-warning.patch \ + " +PR = "r1" inherit autotools pkgconfig