diff options
author | Ross Burton <ross.burton@intel.com> | 2018-09-14 00:28:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-21 18:45:46 -0700 |
commit | 4569d6163d254d74118985f651bbf908b1e16ffd (patch) | |
tree | 2890e0ae4ea74b7f6743a948f9812edc2d34ff4d /meta | |
parent | 51749fb8dbc80e175ad03b453d9b9e8c81671549 (diff) | |
download | poky-4569d6163d254d74118985f651bbf908b1e16ffd.tar.gz |
fribidi: use Meson instead of autotools
Upstream is moving to Meson, so backport a patch to use that instead of
autotools.
(From OE-Core rev: d297f7ebf3f62528d055e1938a9693d6f3a61935)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/fribidi/fribidi/meson.patch | 44 | ||||
-rw-r--r-- | meta/recipes-support/fribidi/fribidi_1.0.5.bb | 8 |
2 files changed, 47 insertions, 5 deletions
diff --git a/meta/recipes-support/fribidi/fribidi/meson.patch b/meta/recipes-support/fribidi/fribidi/meson.patch new file mode 100644 index 0000000000..8b3c4a991e --- /dev/null +++ b/meta/recipes-support/fribidi/fribidi/meson.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From f5feb6c599adb52f24656f8589868039b0d14272 Mon Sep 17 00:00:00 2001 | ||
5 | From: Heiko Becker <heirecka@exherbo.org> | ||
6 | Date: Fri, 7 Sep 2018 20:57:11 +0200 | ||
7 | Subject: [PATCH] Build generator executables natively | ||
8 | |||
9 | They are run during the build and not installed in the end. Without | ||
10 | this one gets the following error from meson: "ERROR: Can not use | ||
11 | target gen-unicode-version as a generator because it is cross-built | ||
12 | and no exe wrapper is defined. You might want to set it to native | ||
13 | instead." | ||
14 | |||
15 | Closes #87. | ||
16 | |||
17 | --- | ||
18 | gen.tab/meson.build | 6 ++++-- | ||
19 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/gen.tab/meson.build b/gen.tab/meson.build | ||
22 | index 6006d98..8c21e98 100644 | ||
23 | --- a/gen.tab/meson.build | ||
24 | +++ b/gen.tab/meson.build | ||
25 | @@ -33,7 +33,8 @@ gen_unicode_version = executable('gen-unicode-version', | ||
26 | 'gen-unicode-version.c', | ||
27 | include_directories: incs, | ||
28 | c_args: native_args, | ||
29 | - install: false) | ||
30 | + install: false, | ||
31 | + native: true) | ||
32 | |||
33 | fribidi_unicode_version_h = custom_target('fribidi-unicode-version.h', | ||
34 | input: files('unidata/ReadMe.txt', 'unidata/BidiMirroring.txt'), | ||
35 | @@ -67,7 +68,8 @@ foreach tab : tabs | ||
36 | gen_prog_src, 'packtab.c', | ||
37 | include_directories: incs, | ||
38 | c_args: native_args, | ||
39 | - install: false) | ||
40 | + install: false, | ||
41 | + native: true) | ||
42 | |||
43 | tab_inc_file = custom_target(gen_prog_name, | ||
44 | input: gen_prog_inputs, | ||
diff --git a/meta/recipes-support/fribidi/fribidi_1.0.5.bb b/meta/recipes-support/fribidi/fribidi_1.0.5.bb index 303ccb71d0..63b2da649c 100644 --- a/meta/recipes-support/fribidi/fribidi_1.0.5.bb +++ b/meta/recipes-support/fribidi/fribidi_1.0.5.bb | |||
@@ -3,16 +3,14 @@ SECTION = "libs" | |||
3 | LICENSE = "LGPLv2.1+" | 3 | LICENSE = "LGPLv2.1+" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7" |
5 | 5 | ||
6 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.bz2" | 6 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \ |
7 | file://meson.patch" | ||
7 | SRC_URI[md5sum] = "0f97f65038545340316ec0f4bd53df0b" | 8 | SRC_URI[md5sum] = "0f97f65038545340316ec0f4bd53df0b" |
8 | SRC_URI[sha256sum] = "6a64f2a687f5c4f203a46fa659f43dd43d1f8b845df8d723107e8a7e6158e4ce" | 9 | SRC_URI[sha256sum] = "6a64f2a687f5c4f203a46fa659f43dd43d1f8b845df8d723107e8a7e6158e4ce" |
9 | 10 | ||
10 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | 11 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" |
11 | 12 | ||
12 | inherit autotools lib_package pkgconfig | 13 | inherit meson lib_package pkgconfig |
13 | |||
14 | # TODO use Meson instead of autotools when | ||
15 | # https://github.com/fribidi/fribidi/issues/87 is solved | ||
16 | 14 | ||
17 | CVE_PRODUCT = "gnu_fribidi" | 15 | CVE_PRODUCT = "gnu_fribidi" |
18 | 16 | ||