libgnomeprint: fix build with newer toolchain
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 23 Dec 2012 11:36:21 +0000 (12:36 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:26:41 +0000 (08:26 -0800)
* FILE is not defined without stdio.h

(From meta-openembedded rev: c7ff376b90090d8639db611a748ce609c3885906)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-gnome/recipes-gnome/gnome/libgnomeprint/fix.includes.patch [new file with mode: 0644]
meta-openembedded/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.7.bb

diff --git a/meta-openembedded/meta-gnome/recipes-gnome/gnome/libgnomeprint/fix.includes.patch b/meta-openembedded/meta-gnome/recipes-gnome/gnome/libgnomeprint/fix.includes.patch
new file mode 100644 (file)
index 0000000..53235a1
--- /dev/null
@@ -0,0 +1,11 @@
+diff -uNr libgnomeprint-2.18.7.orig/libgnomeprint/modules/cups/gnome-print-cups-transport.c libgnomeprint-2.18.7/libgnomeprint/modules/cups/gnome-print-cups-transport.c
+--- libgnomeprint-2.18.7.orig/libgnomeprint/modules/cups/gnome-print-cups-transport.c  2009-04-19 19:45:36.000000000 +0200
++++ libgnomeprint-2.18.7/libgnomeprint/modules/cups/gnome-print-cups-transport.c       2012-12-23 12:34:52.058643537 +0100
+@@ -35,6 +35,7 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <unistd.h>
++#include <stdio.h>
+ #include <locale.h>
+ #include <cups/cups.h>
index c0ea12a..328da68 100644 (file)
@@ -1,12 +1,16 @@
 LICENSE = "GPLv2"
 SECTION = "x11/gnome/libs"
 
+PR = "r1"
+
 DEPENDS = "libxml2 libgnomecups glib-2.0 pango libart-lgpl fontconfig popt gnome-common"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 inherit pkgconfig gnome
 
+SRC_URI += "file://fix.includes.patch"
+
 SRC_URI[archive.md5sum] = "d66b81ee8aa3b3a33f5efc9a47ce07e3"
 SRC_URI[archive.sha256sum] = "8b34f81599423ef3da9c43775495da602f83cbbee069c9e760ffeae6aa4768e6"