diff options
| author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-03-09 17:02:05 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-12 22:11:45 +0000 |
| commit | 7bd32b9ce6436315d6e44e186aeeb4bb8708559c (patch) | |
| tree | ec51097cebe1e67822329da10bd8cefc5e230923 /meta/recipes-graphics/pango | |
| parent | efd37c5d39824591ce070872e97641054191eecb (diff) | |
| download | poky-7bd32b9ce6436315d6e44e186aeeb4bb8708559c.tar.gz | |
recipes-gnome: fix introspection support
(From OE-Core rev: 1011ce60412b17e4a1d2293dabe76027547429f7)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/pango')
| -rw-r--r-- | meta/recipes-graphics/pango/pango/0001-Drop-introspection-macros-from-acinclude.m4.patch | 121 | ||||
| -rw-r--r-- | meta/recipes-graphics/pango/pango_1.38.1.bb | 10 |
2 files changed, 127 insertions, 4 deletions
diff --git a/meta/recipes-graphics/pango/pango/0001-Drop-introspection-macros-from-acinclude.m4.patch b/meta/recipes-graphics/pango/pango/0001-Drop-introspection-macros-from-acinclude.m4.patch new file mode 100644 index 0000000000..812da21c56 --- /dev/null +++ b/meta/recipes-graphics/pango/pango/0001-Drop-introspection-macros-from-acinclude.m4.patch | |||
| @@ -0,0 +1,121 @@ | |||
| 1 | From 867a512eddbeb1899d3e7096df3da1dd0ce3e7b7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Fri, 23 Oct 2015 14:06:17 +0300 | ||
| 4 | Subject: [PATCH] Drop introspection macros from acinclude.m4 | ||
| 5 | |||
| 6 | They take precendence over our customized macros, and so | ||
| 7 | introspection doesn't work correctly. | ||
| 8 | |||
| 9 | Upstream-Status: Pending [review on oe-core list] | ||
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 11 | --- | ||
| 12 | acinclude.m4 | 96 ------------------------------------------------------------ | ||
| 13 | 1 file changed, 96 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/acinclude.m4 b/acinclude.m4 | ||
| 16 | index 8899c7c..48fd5d8 100644 | ||
| 17 | --- a/acinclude.m4 | ||
| 18 | +++ b/acinclude.m4 | ||
| 19 | @@ -55,99 +55,3 @@ AC_DEFUN([JH_CHECK_XML_CATALOG], | ||
| 20 | ]) | ||
| 21 | |||
| 22 | |||
| 23 | -dnl REMOVE THIS WHEN introspection.m4 is widely available | ||
| 24 | -dnl | ||
| 25 | -dnl -*- mode: autoconf -*- | ||
| 26 | -dnl Copyright 2009 Johan Dahlin | ||
| 27 | -dnl | ||
| 28 | -dnl This file is free software; the author(s) gives unlimited | ||
| 29 | -dnl permission to copy and/or distribute it, with or without | ||
| 30 | -dnl modifications, as long as this notice is preserved. | ||
| 31 | -dnl | ||
| 32 | - | ||
| 33 | -# serial 1 | ||
| 34 | - | ||
| 35 | -m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], | ||
| 36 | -[ | ||
| 37 | - AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
| 38 | - AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
| 39 | - AC_BEFORE([LT_INIT],[$0])dnl setup libtool first | ||
| 40 | - | ||
| 41 | - dnl enable/disable introspection | ||
| 42 | - m4_if([$2], [require], | ||
| 43 | - [dnl | ||
| 44 | - enable_introspection=yes | ||
| 45 | - ],[dnl | ||
| 46 | - AC_ARG_ENABLE(introspection, | ||
| 47 | - AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], | ||
| 48 | - [Enable introspection for this build]),, | ||
| 49 | - [enable_introspection=auto]) | ||
| 50 | - ])dnl | ||
| 51 | - | ||
| 52 | - AC_MSG_CHECKING([for gobject-introspection]) | ||
| 53 | - | ||
| 54 | - dnl presence/version checking | ||
| 55 | - AS_CASE([$enable_introspection], | ||
| 56 | - [no], [dnl | ||
| 57 | - found_introspection="no (disabled, use --enable-introspection to enable)" | ||
| 58 | - ],dnl | ||
| 59 | - [yes],[dnl | ||
| 60 | - PKG_CHECK_EXISTS([gobject-introspection-1.0],, | ||
| 61 | - AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) | ||
| 62 | - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], | ||
| 63 | - found_introspection=yes, | ||
| 64 | - AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) | ||
| 65 | - ],dnl | ||
| 66 | - [auto],[dnl | ||
| 67 | - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) | ||
| 68 | - ],dnl | ||
| 69 | - [dnl | ||
| 70 | - AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) | ||
| 71 | - ])dnl | ||
| 72 | - | ||
| 73 | - AC_MSG_RESULT([$found_introspection]) | ||
| 74 | - | ||
| 75 | - INTROSPECTION_SCANNER= | ||
| 76 | - INTROSPECTION_COMPILER= | ||
| 77 | - INTROSPECTION_GENERATE= | ||
| 78 | - INTROSPECTION_GIRDIR= | ||
| 79 | - INTROSPECTION_TYPELIBDIR= | ||
| 80 | - if test "x$found_introspection" = "xyes"; then | ||
| 81 | - INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` | ||
| 82 | - INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` | ||
| 83 | - INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` | ||
| 84 | - INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` | ||
| 85 | - INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" | ||
| 86 | - INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` | ||
| 87 | - INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` | ||
| 88 | - INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection | ||
| 89 | - fi | ||
| 90 | - AC_SUBST(INTROSPECTION_SCANNER) | ||
| 91 | - AC_SUBST(INTROSPECTION_COMPILER) | ||
| 92 | - AC_SUBST(INTROSPECTION_GENERATE) | ||
| 93 | - AC_SUBST(INTROSPECTION_GIRDIR) | ||
| 94 | - AC_SUBST(INTROSPECTION_TYPELIBDIR) | ||
| 95 | - AC_SUBST(INTROSPECTION_CFLAGS) | ||
| 96 | - AC_SUBST(INTROSPECTION_LIBS) | ||
| 97 | - AC_SUBST(INTROSPECTION_MAKEFILE) | ||
| 98 | - | ||
| 99 | - AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") | ||
| 100 | -]) | ||
| 101 | - | ||
| 102 | - | ||
| 103 | -dnl Usage: | ||
| 104 | -dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) | ||
| 105 | - | ||
| 106 | -AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], | ||
| 107 | -[ | ||
| 108 | - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) | ||
| 109 | -]) | ||
| 110 | - | ||
| 111 | -dnl Usage: | ||
| 112 | -dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) | ||
| 113 | - | ||
| 114 | - | ||
| 115 | -AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], | ||
| 116 | -[ | ||
| 117 | - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) | ||
| 118 | -]) | ||
| 119 | -- | ||
| 120 | 2.1.4 | ||
| 121 | |||
diff --git a/meta/recipes-graphics/pango/pango_1.38.1.bb b/meta/recipes-graphics/pango/pango_1.38.1.bb index a9a7500639..7fc65fd439 100644 --- a/meta/recipes-graphics/pango/pango_1.38.1.bb +++ b/meta/recipes-graphics/pango/pango_1.38.1.bb | |||
| @@ -11,7 +11,11 @@ LICENSE = "LGPLv2.0+" | |||
| 11 | 11 | ||
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" |
| 13 | 13 | ||
| 14 | SRC_URI += "file://run-ptest" | 14 | inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection |
| 15 | |||
| 16 | SRC_URI += "file://run-ptest \ | ||
| 17 | file://0001-Drop-introspection-macros-from-acinclude.m4.patch \ | ||
| 18 | " | ||
| 15 | 19 | ||
| 16 | SRC_URI[archive.md5sum] = "7fde35d4a127b55ce8bbcefe109bc80d" | 20 | SRC_URI[archive.md5sum] = "7fde35d4a127b55ce8bbcefe109bc80d" |
| 17 | SRC_URI[archive.sha256sum] = "1320569f6c6d75d6b66172b2d28e59c56ee864ee9df202b76799c4506a214eb7" | 21 | SRC_URI[archive.sha256sum] = "1320569f6c6d75d6b66172b2d28e59c56ee864ee9df202b76799c4506a214eb7" |
| @@ -21,11 +25,9 @@ DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo h | |||
| 21 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 25 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
| 22 | PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft" | 26 | PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft" |
| 23 | 27 | ||
| 24 | inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even | ||
| 25 | |||
| 26 | EXTRA_AUTORECONF = "" | 28 | EXTRA_AUTORECONF = "" |
| 27 | 29 | ||
| 28 | EXTRA_OECONF = "--disable-introspection \ | 30 | EXTRA_OECONF = " \ |
| 29 | --disable-debug \ | 31 | --disable-debug \ |
| 30 | " | 32 | " |
| 31 | 33 | ||
