diff options
| -rw-r--r-- | meta-gnome/recipes-gnome/gedit/files/0002-suppress-string-format-literal-warning-to-fix-build-.patch | 38 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/gedit/gedit_2.30.4.bb | 11 |
2 files changed, 44 insertions, 5 deletions
diff --git a/meta-gnome/recipes-gnome/gedit/files/0002-suppress-string-format-literal-warning-to-fix-build-.patch b/meta-gnome/recipes-gnome/gedit/files/0002-suppress-string-format-literal-warning-to-fix-build-.patch new file mode 100644 index 0000000000..a5d2310123 --- /dev/null +++ b/meta-gnome/recipes-gnome/gedit/files/0002-suppress-string-format-literal-warning-to-fix-build-.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 4ebdf8023f763f75a7e1b548894de2e8b784f4a8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
| 3 | Date: Fri, 29 Jul 2016 23:19:40 +0200 | ||
| 4 | Subject: [PATCH] suppress string format literal warning to fix build with gcc6 | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
| 12 | --- | ||
| 13 | plugins/time/gedit-time-plugin.c | 3 +++ | ||
| 14 | 1 file changed, 3 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/plugins/time/gedit-time-plugin.c b/plugins/time/gedit-time-plugin.c | ||
| 17 | index d2ffdb9..441d9f9 100644 | ||
| 18 | --- a/plugins/time/gedit-time-plugin.c | ||
| 19 | +++ b/plugins/time/gedit-time-plugin.c | ||
| 20 | @@ -473,12 +473,15 @@ get_time (const gchar* format) | ||
| 21 | clock = time (NULL); | ||
| 22 | now = localtime (&clock); | ||
| 23 | |||
| 24 | +#pragma GCC diagnostic push | ||
| 25 | +#pragma GCC diagnostic ignored "-Wformat-nonliteral" | ||
| 26 | do | ||
| 27 | { | ||
| 28 | out_length += 255; | ||
| 29 | out = g_realloc (out, out_length); | ||
| 30 | } | ||
| 31 | while (strftime (out, out_length, locale_format, now) == 0); | ||
| 32 | +#pragma GCC diagnostic pop | ||
| 33 | |||
| 34 | g_free (locale_format); | ||
| 35 | |||
| 36 | -- | ||
| 37 | 2.5.5 | ||
| 38 | |||
diff --git a/meta-gnome/recipes-gnome/gedit/gedit_2.30.4.bb b/meta-gnome/recipes-gnome/gedit/gedit_2.30.4.bb index 7e6b343a81..a6c68d383a 100644 --- a/meta-gnome/recipes-gnome/gedit/gedit_2.30.4.bb +++ b/meta-gnome/recipes-gnome/gedit/gedit_2.30.4.bb | |||
| @@ -3,13 +3,16 @@ SECTION = "x11/gnome" | |||
| 3 | LICENSE = "GPLv2+" | 3 | LICENSE = "GPLv2+" |
| 4 | PR = "r2" | 4 | PR = "r2" |
| 5 | 5 | ||
| 6 | DEPENDS = "gvfs enchant gconf gnome-doc-utils glib-2.0 gtk+ gtksourceview2 iso-codes" | 6 | DEPENDS = "gvfs enchant gconf gnome-doc-utils glib-2.0 gtk+ gtksourceview2 iso-codes intltool-native" |
| 7 | 7 | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 9 | 9 | ||
| 10 | inherit gnome gettext pythonnative | 10 | inherit gnome gettext pythonnative |
| 11 | SRC_URI+= "file://0001-workaround-void-pointer-arithmetic.patch \ | 11 | SRC_URI+= " \ |
| 12 | file://0001-Remove-help-directory-from-build.patch" | 12 | file://0001-workaround-void-pointer-arithmetic.patch \ |
| 13 | file://0001-Remove-help-directory-from-build.patch \ | ||
| 14 | file://0002-suppress-string-format-literal-warning-to-fix-build-.patch \ | ||
| 15 | " | ||
| 13 | SRC_URI[archive.md5sum] = "e1eecb0a92a1a363b3d375ec5ac0fb3b" | 16 | SRC_URI[archive.md5sum] = "e1eecb0a92a1a363b3d375ec5ac0fb3b" |
| 14 | SRC_URI[archive.sha256sum] = "a561fe3dd1d199baede1bd07c4ee65f06fc7c494dd4d3327117f04149a608e3c" | 17 | SRC_URI[archive.sha256sum] = "a561fe3dd1d199baede1bd07c4ee65f06fc7c494dd4d3327117f04149a608e3c" |
| 15 | GNOME_COMPRESS_TYPE="bz2" | 18 | GNOME_COMPRESS_TYPE="bz2" |
| @@ -19,5 +22,3 @@ EXTRA_OECONF = "--disable-scrollkeeper \ | |||
| 19 | 22 | ||
| 20 | FILES_${PN} += "${libdir}/gedit-2/plugin* ${datadir}/gedit-2" | 23 | FILES_${PN} += "${libdir}/gedit-2/plugin* ${datadir}/gedit-2" |
| 21 | FILES_${PN}-dbg += "${libdir}/gedit-2/plugin-loaders/.debug ${libdir}/gedit-2/plugins/.debug" | 24 | FILES_${PN}-dbg += "${libdir}/gedit-2/plugin-loaders/.debug ${libdir}/gedit-2/plugins/.debug" |
| 22 | |||
| 23 | PNBLACKLIST[gedit] ?= "Depends on broken gtksourceview2" | ||
