summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-23 20:35:32 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-27 14:59:50 +0100
commit09fab50b9b0c403c5c8f1139c9f9aa33a7e98dc4 (patch)
treea68dd6d17b8faf2cc9cc10fe3390a5a1c9c444fc /meta
parent7caffd2559e788abe198c8c893860ffa3c589d20 (diff)
downloadpoky-09fab50b9b0c403c5c8f1139c9f9aa33a7e98dc4.tar.gz
fontconfig: Fix pkgconfig file generation to not have absolute paths
Fixes cross building dependent packages with gcc-5 e.g. matchbox-panel-2 Change-Id: I6290cfa4aac5d03a7200472d0c713b7ea84b99ac (From OE-Core rev: 5b3831fa52a38640ec529d2ffb366c8fffce3a51) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/fontconfig/fontconfig/revert-static-pkgconfig.patch20
-rw-r--r--meta/recipes-graphics/fontconfig/fontconfig_2.11.93.bb1
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-graphics/fontconfig/fontconfig/revert-static-pkgconfig.patch b/meta/recipes-graphics/fontconfig/fontconfig/revert-static-pkgconfig.patch
new file mode 100644
index 0000000000..a2f34095a5
--- /dev/null
+++ b/meta/recipes-graphics/fontconfig/fontconfig/revert-static-pkgconfig.patch
@@ -0,0 +1,20 @@
1Revert part of http://cgit.freedesktop.org/fontconfig/commit/fontconfig.pc.in?id=338ffe6b886ad4ba86ff471cb59c4a5e5ffbe408
2We really dont do static linking so its not going to cause issues for us but as such this is harming us by adding absolute
3paths into -I options into fontconfig.pc which is them prepended with sysroot when read back by cross pkg-config and
4we end up with -I <sysroot>/<sysroot>/usr/include/fontconfig in CFLAGS of clients which depend on it. one such example
5is matchbox-panel-2 and it was working fine with gcc < 5 because it tolerated non-existing paths in -I flags but gcc-5
6gently refuses and rightly so.
7
8Upstream-Status: Not-Submitted [OE-Specific]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11Index: fontconfig-2.11.93/fontconfig.pc.in
12===================================================================
13--- fontconfig-2.11.93.orig/fontconfig.pc.in
14+++ fontconfig-2.11.93/fontconfig.pc.in
15@@ -15,4 +15,4 @@ Requires: @PKGCONFIG_REQUIRES@
16 Requires.private: @PKGCONFIG_REQUIRES_PRIVATELY@
17 Libs: -L${libdir} -lfontconfig
18 Libs.private: @EXPAT_LIBS@ @FREETYPE_LIBS@ @ICONV_LIBS@ @LIBXML2_LIBS@
19-Cflags: -I${includedir} @EXPAT_CFLAGS@ @FREETYPE_CFLAGS@ @ICONV_CFLAGS@ @LIBXML2_CFLAGS@
20+Cflags: -I${includedir}
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.11.93.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.11.93.bb
index 44cfe2b2bf..e024adb5d9 100644
--- a/meta/recipes-graphics/fontconfig/fontconfig_2.11.93.bb
+++ b/meta/recipes-graphics/fontconfig/fontconfig_2.11.93.bb
@@ -21,6 +21,7 @@ SECTION = "libs"
21DEPENDS = "expat freetype zlib" 21DEPENDS = "expat freetype zlib"
22 22
23SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ 23SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \
24 file://revert-static-pkgconfig.patch \
24 " 25 "
25SRC_URI[md5sum] = "622f94f0f74e40775ea72d7d5f17a36d" 26SRC_URI[md5sum] = "622f94f0f74e40775ea72d7d5f17a36d"
26SRC_URI[sha256sum] = "296b5e83189589e537992d65ff01e0cd74eba9a91eb16a6890ce942e3695c526" 27SRC_URI[sha256sum] = "296b5e83189589e537992d65ff01e0cd74eba9a91eb16a6890ce942e3695c526"