libgdiplus: Fix build error relating to missing freetype/tttables.h, and update to libgdiplus 2.10.8
cover libgdiplus: Fix build error relating to missing freetype/tttables.h, and update to libgdiplus 2.10.8
See following patch 1/1 for details
The following changes since commit ac286b1682e6bcc486ceb30ef90a936949bbfeab:
monotools-server: Remove multiline comment (2013-02-27 12:01:10 -0500)
are available in the git repository at:
git://git.yoctoproject.org/meta-mono ajl/libgdiplus-2.10.8
http://git.yoctoproject.org/cgit.cgi/meta-mono/log/?h=ajl/libgdiplus-2.10.8
Alex J Lennon (1):
libgdiplus: Fix build error relating to missing freetype/tttables.h,
and update to libgdiplus 2.10.8
...gdiplus-2.10.x-use-freetype-include-macro.patch | 14 ++++++++++++++
.../{libgdiplus_2.10.bb => libgdiplus_2.10.8.bb} | 8 ++++----
2 files changed, 18 insertions(+), 4 deletions(-)
create mode 100644 recipes-mono/libgdiplus/files/libgdiplus-2.10/libgdiplus-2.10.x-use-freetype-include-macro.patch
rename recipes-mono/libgdiplus/{libgdiplus_2.10.bb => libgdiplus_2.10.8.bb} (68%)Signature · 1 line
1.7.9.5
PATCH 1/1 libgdiplus: Fix build error relating to missing freetype/tttables.h, and update to libgdiplus 2.10.8
- libgdiplus 2.10 is fairly old, released 3 years ago (cea5a3f)
- libgdiplus 2.10.8 is curently the most recent release available on GitHub and is also old, released 2 years ago (5179dd3)
- there have been a substantial number of commits since these releases so it may be worth considering a recipe to build from a specific git commit (thoughts appreciated)
@see: https://github.com/mono/libgdiplus/releases
libgdiplus-2.10 and libgdiplus-2.10.8 recipes fail to build currently with an error
gdiplus-private.h:33:31: fatal error: freetype/tttables.h: No such file or directory
This is a known issue addressed by commit 180c02e into master on 16/12/13. From the commit message,
"As of FreeType 2.1.6 (November 2003), using #include to include Freetype libraries directly is not supported.
This has come to a head, as in FreeType 2.5.0, the location of headers has been moved around, breaking building of libgdiplus. This slight change uses the "official" way to include the required header file, without breaking building on older versions of the library."
---
...gdiplus-2.10.x-use-freetype-include-macro.patch | 14 ++++++++++++++
.../{libgdiplus_2.10.bb => libgdiplus_2.10.8.bb} | 8 ++++----
2 files changed, 18 insertions(+), 4 deletions(-)
create mode 100644 recipes-mono/libgdiplus/files/libgdiplus-2.10/libgdiplus-2.10.x-use-freetype-include-macro.patch
rename recipes-mono/libgdiplus/{libgdiplus_2.10.bb => libgdiplus_2.10.8.bb} (68%)recipes-mono/libgdiplus/files/libgdiplus-2.10/libgdiplus-2.10.x-use-freetype-include-macro.patch new file +14 -0
@@ -0,0 +1,14 @@ +diff -ur libgdiplus-2.10.8.org/src/gdiplus-private.h libgdiplus-2.10.8/src/gdiplus-private.h +--- libgdiplus-2.10.8.org/src/gdiplus-private.h 2014-02-05 17:50:30.979205246 +0000 ++++ libgdiplus-2.10.8/src/gdiplus-private.h 2014-02-05 17:51:54.519205465 +0000 +@@ -30,7 +30,8 @@ + #include <stdio.h> + #include <math.h> + #include <glib.h> +-#include <freetype/tttables.h> ++#include <ft2build.h> ++#include FT_TRUETYPE_TABLES_H + #include <pthread.h> + #include <unistd.h> + +
recipes-mono/libgdiplus/libgdiplus_2.10.8.bb renamed from recipes-mono/libgdiplus/libgdiplus_2.10.bb +4 -4
@@ -6,9 +6,10 @@ SECTION = "libs" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=fe7364dfce9f3689eb6995e7cdd56879" -SRC_URI = "http://download.mono-project.com/sources/libgdiplus/libgdiplus-${PV}.tar.bz2 \ +SRC_URI = "https://github.com/mono/libgdiplus/archive/${PV}.tar.gz \ file://libgdiplus-2.10/cairo/configure.in.diff \ file://libgdiplus-2.10/libgdiplus-2.10.1-libpng15.patch \ + file://libgdiplus-2.10/libgdiplus-2.10.x-use-freetype-include-macro.patch \ " inherit autotools pkgconfig
@@ -17,9 +18,8 @@ DEPENDS =+ "cairo freetype fontconfig libxft libpng" PR = "r1" -SRC_URI[md5sum] = "451966e8f637e3a1f02d1d30f900255d" -SRC_URI[sha256sum] = "2d9e0397ef5583ed855eaafcdac8cabbe1d58463ed1e4b545be6dde5b63712a4" - +SRC_URI[md5sum] = "6fd45bbb9843f5a8851b5f44e2a5dd04" +SRC_URI[sha256sum] = "45c533dc72af0a24d1d3a8097873f5fe1670107fe7e6d08fb71ae586c87a0f1d" FILES_${PN} += "${libdir}/libgdiplus.so" INSANE_SKIP_${PN} += "dev-so"
Signature · 1 line
1.7.9.5