From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 27/37] harfbuzz: convert to meson, enable gobject introspection
Date: Sun, 23 Aug 2020 22:20:21 +0200 [thread overview]
Message-ID: <20200823202031.24686-27-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20200823202031.24686-1-alex.kanavin@gmail.com>
The latter is needed for pango update.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
...isable-introspection-in-cross-builds.patch | 27 ++++++++++++++++++
...nums.cc.tmpl-write-out-only-the-file.patch | 28 +++++++++++++++++++
.../harfbuzz/harfbuzz_2.7.1.bb | 24 ++++++++++------
3 files changed, 71 insertions(+), 8 deletions(-)
create mode 100644 meta/recipes-graphics/harfbuzz/harfbuzz/0001-Do-not-disable-introspection-in-cross-builds.patch
create mode 100644 meta/recipes-graphics/harfbuzz/harfbuzz/0001-src-hb-gobject-enums.cc.tmpl-write-out-only-the-file.patch
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Do-not-disable-introspection-in-cross-builds.patch b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Do-not-disable-introspection-in-cross-builds.patch
new file mode 100644
index 0000000000..d00656fc88
--- /dev/null
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Do-not-disable-introspection-in-cross-builds.patch
@@ -0,0 +1,27 @@
+From df5848f423ec0f4b3e519900014349a0c00b1969 Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex.kanavin@gmail.com>
+Date: Mon, 17 Aug 2020 16:36:03 +0200
+Subject: [PATCH] Do not disable introspection in cross builds.
+
+Yocto can and does support introspection cross builds, through
+running target binaries under qemu emulation.
+
+Upstream-Status: Pending
+Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+---
+ src/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index 1865633..5e1787c 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -634,7 +634,7 @@ if have_gobject
+ gir = find_program('g-ir-scanner', required: get_option('introspection'))
+ build_gir = gir.found()
+
+- build_gir = build_gir and not meson.is_cross_build()
++ build_gir = build_gir
+ if not build_gir and get_option('introspection').enabled()
+ error('Introspection support is requested but it isn\'t available in cross builds')
+ endif
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz/0001-src-hb-gobject-enums.cc.tmpl-write-out-only-the-file.patch b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-src-hb-gobject-enums.cc.tmpl-write-out-only-the-file.patch
new file mode 100644
index 0000000000..4ba4f8b28e
--- /dev/null
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-src-hb-gobject-enums.cc.tmpl-write-out-only-the-file.patch
@@ -0,0 +1,28 @@
+From f316b794265f28e89821dfab0772caac1bb6b056 Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex.kanavin@gmail.com>
+Date: Tue, 18 Aug 2020 10:31:47 +0000
+Subject: [PATCH] src/hb-gobject-enums.cc.tmpl: write out only the filename,
+ not the full path
+
+This is beneficial for reproducible builds, as build paths can vary
+between builds.
+
+Upstream-Status: Pending
+Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+---
+ src/hb-gobject-enums.cc.tmpl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/hb-gobject-enums.cc.tmpl b/src/hb-gobject-enums.cc.tmpl
+index 2ffd1c9..87a11dd 100644
+--- a/src/hb-gobject-enums.cc.tmpl
++++ b/src/hb-gobject-enums.cc.tmpl
+@@ -43,7 +43,7 @@
+ /*** END file-header ***/
+
+ /*** BEGIN file-production ***/
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+
+ /*** BEGIN file-tail ***/
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.1.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.1.bb
index 08c8f83239..42b3af1ff0 100644
--- a/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.1.bb
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.1.bb
@@ -10,18 +10,26 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8f787620b7d3866d9552fd1924c07572 \
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar"
-SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz"
+SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
+ file://0001-Do-not-disable-introspection-in-cross-builds.patch \
+ file://0001-src-hb-gobject-enums.cc.tmpl-write-out-only-the-file.patch \
+ "
SRC_URI[sha256sum] = "e95ee43b6bd0d3d1307e2aacf0f9c0050e5baceb21988b367b833028114aa569"
-inherit autotools pkgconfig lib_package gtk-doc
+inherit meson pkgconfig lib_package gtk-doc gobject-introspection
+
+GIR_MESON_ENABLE_FLAG = 'enabled'
+GIR_MESON_DISABLE_FLAG = 'disabled'
+GTKDOC_MESON_ENABLE_FLAG = 'enabled'
+GTKDOC_MESON_DISABLE_FLAG = 'disabled'
PACKAGECONFIG ??= "cairo fontconfig freetype glib icu"
-PACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo"
-PACKAGECONFIG[fontconfig] = "--with-fontconfig,--without-fontconfig,fontconfig"
-PACKAGECONFIG[freetype] = "--with-freetype,--without-freetype,freetype"
-PACKAGECONFIG[glib] = "--with-glib,--without-glib,glib-2.0"
-PACKAGECONFIG[graphite] = "--with-graphite2,--without-graphite2,graphite2"
-PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu"
+PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
+PACKAGECONFIG[fontconfig] = "-Dfontconfig=enabled,-Dfontconfig=disabled,fontconfig"
+PACKAGECONFIG[freetype] = "-Dfreetype=enabled,-Dfreetype=disabled,freetype"
+PACKAGECONFIG[glib] = "-Dglib=enabled,-Dglib=disabled,glib-2.0"
+PACKAGECONFIG[graphite] = "-Dgraphite=enabled,-Dgraphite=disabled,graphite2"
+PACKAGECONFIG[icu] = "-Dicu=enabled,-Dicu=disabled,icu"
PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset"
--
2.28.0
next prev parent reply other threads:[~2020-08-23 20:21 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-23 20:19 [PATCH 01/37] bison: upgrade 3.6.4 -> 3.7.1 Alexander Kanavin
2020-08-23 20:19 ` [PATCH 02/37] util-linux: upgrade 2.35.2 -> 2.36 Alexander Kanavin
2020-08-23 20:19 ` [PATCH 03/37] python3-numpy: upgrade 1.19.0 -> 1.19.1 Alexander Kanavin
2020-08-23 20:19 ` [PATCH 04/37] python3-setuptools: upgrade 49.3.1 -> 49.6.0 Alexander Kanavin
2020-08-23 20:19 ` [PATCH 05/37] rsync: upgrade 3.2.2 -> 3.2.3 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 06/37] util-linux: merge .inc into .bb Alexander Kanavin
2020-08-23 20:20 ` [PATCH 07/37] acpica: upgrade 20200528 -> 20200717 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 08/37] asciidoc: upgrade 9.0.1 -> 9.0.2 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 09/37] cryptodev: upgrade 1.10 -> 1.11 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 10/37] diffoscope: upgrade 153 -> 156 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 11/37] epiphany: upgrade 3.36.3 -> 3.36.4 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 12/37] font-alias: upgrade 1.0.3 -> 1.0.4 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 13/37] gtk+3: upgrade 3.24.21 -> 3.24.22 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 14/37] libcheck: upgrade 0.15.0 -> 0.15.2 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 15/37] libinput: upgrade 1.16.0 -> 1.16.1 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 16/37] libpipeline: upgrade 1.5.2 -> 1.5.3 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 17/37] libx11: upgrade 1.6.9 -> 1.6.11 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 18/37] linux-firmware: upgrade 20200619 -> 20200721 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 19/37] man-pages: upgrade 5.07 -> 5.08 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 20/37] mc: upgrade 4.8.24 -> 4.8.25 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 21/37] mesa: upgrade 20.1.4 -> 20.1.5 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 22/37] piglit: upgrade to latest revision Alexander Kanavin
2020-08-23 20:20 ` [PATCH 23/37] re2c: upgrade 2.0 -> 2.0.2 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 24/37] sysstat: upgrade 12.2.2 -> 12.4.0 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 25/37] vala: upgrade 0.48.7 -> 0.48.9 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 26/37] bootchart2: update 0.14.8 -> 0.14.9 Alexander Kanavin
2020-08-23 20:20 ` Alexander Kanavin [this message]
2020-08-23 20:20 ` [PATCH 28/37] pango: update 1.44.7 -> 1.46.0 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 29/37] boost: update 1.73.0 -> 1.74.0 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 30/37] xev: update 1.2.3 -> 1.2.4 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 31/37] wpebackend-fdo: update 1.6.1 -> 1.7.1 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 32/37] gpgme: update 1.13.1 -> 1.14.0 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 33/37] libpsl: update 0.21.0 -> 0.21.1 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 34/37] gettext: update 0.20.2 -> 0.21 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 35/37] cmake: update 3.17.3 -> 3.18.1 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 36/37] linux-firmware: update 20200721 -> 20200817 Alexander Kanavin
2020-08-23 20:20 ` [PATCH 37/37] meson: update 0.55.0 -> 0.55.1 Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200823202031.24686-27-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox