diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2024-12-23 17:10:48 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-24 13:49:27 +0000 |
| commit | 4c426cd766bd44ff984ebe1f5e37381bfa7db6a1 (patch) | |
| tree | f439bc537daf894322aa8f717f1d7f7186bd75c4 /meta/recipes-devtools/meson/meson_1.6.1.bb | |
| parent | 0fcfdd96176ed07a84e65c759ffade82b1d70e98 (diff) | |
| download | poky-4c426cd766bd44ff984ebe1f5e37381bfa7db6a1.tar.gz | |
meson: upgrade 1.6.0 -> 1.6.1
0001-python-module-do-not-manipulate-the-environment-when.patch
refreshed for 1.6.1
Changelog:
===========
- dependencies: support old vulkan SDK version
- Handle top level options set in subprojects. Closes #13847.
- ci: fix Ubuntu Bionic job
- modernize Rust template
- run_single_test.py: skip setup_symlinks() call on Windows
- tests: HDF5 no longer skips on MacOS
- mdevenv: exec directly into the program to run
- CMakeToolchain: Log output on compiler state failure
- msetup: Correction of the message text
- run_single_test.py: Fix for symlink changes
- libgcrypt-config is no more on ubuntu-rolling
- fix generate_gir with BothLibraries dependency
- env2mfile: add flag to use _FOR_BUILD envvars.
- environment: Never require an exe_wrapper for native builds
- rust: fix computation of library directory
- De-duplicate BuildTarget.sources
- Fix building on AIX when no project languages are used
- coverage.py: Guard use of --html-nested behind version check.
- Xcode backend: only use found appleframeworksn
- Enable GCC to find free-threaded python DLL library
- modules/rust: Add support for autolib field in the Cargo.toml
- env2mfile: Use a cross valac on Debian if possible
- env2mfile: Automatically set exe_wrapper on Debian if possible
- env2mfile: Use Debian cross-prefixed GObject-Introspection tools
- env2mfile: Generalize detection of pkg-config to have a list of tools
- Add GNU/Hurd kernel results
(From OE-Core rev: ca17f6c26c7f1fa93950143a41204daf57e5b4ed)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/meson/meson_1.6.1.bb')
| -rw-r--r-- | meta/recipes-devtools/meson/meson_1.6.1.bb | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/meta/recipes-devtools/meson/meson_1.6.1.bb b/meta/recipes-devtools/meson/meson_1.6.1.bb new file mode 100644 index 0000000000..249a07c290 --- /dev/null +++ b/meta/recipes-devtools/meson/meson_1.6.1.bb | |||
| @@ -0,0 +1,159 @@ | |||
| 1 | HOMEPAGE = "http://mesonbuild.com" | ||
| 2 | SUMMARY = "A high performance build system" | ||
| 3 | DESCRIPTION = "Meson is a build system designed to increase programmer \ | ||
| 4 | productivity. It does this by providing a fast, simple and easy to use \ | ||
| 5 | interface for modern software development tools and practices." | ||
| 6 | |||
| 7 | LICENSE = "Apache-2.0" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 9 | |||
| 10 | GITHUB_BASE_URI = "https://github.com/mesonbuild/meson/releases/" | ||
| 11 | SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/meson-${PV}.tar.gz \ | ||
| 12 | file://meson-setup.py \ | ||
| 13 | file://meson-wrapper \ | ||
| 14 | file://0001-python-module-do-not-manipulate-the-environment-when.patch \ | ||
| 15 | file://0001-Make-CPU-family-warnings-fatal.patch \ | ||
| 16 | file://0002-Support-building-allarch-recipes-again.patch \ | ||
| 17 | file://0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch \ | ||
| 18 | " | ||
| 19 | SRC_URI[sha256sum] = "1eca49eb6c26d58bbee67fd3337d8ef557c0804e30a6d16bfdf269db997464de" | ||
| 20 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)$" | ||
| 21 | |||
| 22 | inherit python_setuptools_build_meta github-releases | ||
| 23 | |||
| 24 | RDEPENDS:${PN} = "ninja python3-modules python3-pkg-resources" | ||
| 25 | |||
| 26 | FILES:${PN} += "${datadir}/polkit-1" | ||
| 27 | |||
| 28 | do_install:append () { | ||
| 29 | # As per the same issue in the python recipe itself: | ||
| 30 | # Unfortunately the following pyc files are non-deterministc due to 'frozenset' | ||
| 31 | # being written without strict ordering, even with PYTHONHASHSEED = 0 | ||
| 32 | # Upstream is discussing ways to solve the issue properly, until then let's | ||
| 33 | # just not install the problematic files. | ||
| 34 | # More info: http://benno.id.au/blog/2013/01/15/python-determinism | ||
| 35 | rm -f ${D}${libdir}/python*/site-packages/mesonbuild/dependencies/__pycache__/mpi.cpython* | ||
| 36 | } | ||
| 37 | |||
| 38 | BBCLASSEXTEND = "native nativesdk" | ||
| 39 | |||
| 40 | inherit meson-routines | ||
| 41 | |||
| 42 | # The cross file logic is similar but not identical to that in meson.bbclass, | ||
| 43 | # since it's generating for an SDK rather than a cross-compile. Important | ||
| 44 | # differences are: | ||
| 45 | # - We can't set vars like CC, CXX, etc. yet because they will be filled in with | ||
| 46 | # real paths by meson-setup.sh when the SDK is extracted. | ||
| 47 | # - Some overrides aren't needed, since the SDK injects paths that take care of | ||
| 48 | # them. | ||
| 49 | def var_list2str(var, d): | ||
| 50 | items = d.getVar(var).split() | ||
| 51 | return repr(items[0]) if len(items) == 1 else ', '.join(repr(s) for s in items) | ||
| 52 | |||
| 53 | def generate_native_link_template(d): | ||
| 54 | val = ['-L@{OECORE_NATIVE_SYSROOT}${libdir_native}', | ||
| 55 | '-L@{OECORE_NATIVE_SYSROOT}${base_libdir_native}', | ||
| 56 | '-Wl,-rpath-link,@{OECORE_NATIVE_SYSROOT}${libdir_native}', | ||
| 57 | '-Wl,-rpath-link,@{OECORE_NATIVE_SYSROOT}${base_libdir_native}', | ||
| 58 | '-Wl,--allow-shlib-undefined' | ||
| 59 | ] | ||
| 60 | build_arch = d.getVar('BUILD_ARCH') | ||
| 61 | if 'x86_64' in build_arch: | ||
| 62 | loader = 'ld-linux-x86-64.so.2' | ||
| 63 | elif 'i686' in build_arch: | ||
| 64 | loader = 'ld-linux.so.2' | ||
| 65 | elif 'aarch64' in build_arch: | ||
| 66 | loader = 'ld-linux-aarch64.so.1' | ||
| 67 | elif 'ppc64le' in build_arch: | ||
| 68 | loader = 'ld64.so.2' | ||
| 69 | elif 'loongarch64' in build_arch: | ||
| 70 | loader = 'ld-linux-loongarch-lp64d.so.1' | ||
| 71 | elif 'riscv64' in build_arch: | ||
| 72 | loader = 'ld-linux-riscv64-lp64d.so.1' | ||
| 73 | |||
| 74 | if loader: | ||
| 75 | val += ['-Wl,--dynamic-linker=@{OECORE_NATIVE_SYSROOT}${base_libdir_native}/' + loader] | ||
| 76 | |||
| 77 | return repr(val) | ||
| 78 | |||
| 79 | install_templates() { | ||
| 80 | install -d ${D}${datadir}/meson | ||
| 81 | |||
| 82 | cat >${D}${datadir}/meson/meson.native.template <<EOF | ||
| 83 | [binaries] | ||
| 84 | c = ${@meson_array('BUILD_CC', d)} | ||
| 85 | cpp = ${@meson_array('BUILD_CXX', d)} | ||
| 86 | ar = ${@meson_array('BUILD_AR', d)} | ||
| 87 | nm = ${@meson_array('BUILD_NM', d)} | ||
| 88 | strip = ${@meson_array('BUILD_STRIP', d)} | ||
| 89 | readelf = ${@meson_array('BUILD_READELF', d)} | ||
| 90 | pkg-config = 'pkg-config-native' | ||
| 91 | |||
| 92 | [built-in options] | ||
| 93 | c_args = ['-isystem@{OECORE_NATIVE_SYSROOT}${includedir_native}' , ${@var_list2str('BUILD_OPTIMIZATION', d)}] | ||
| 94 | c_link_args = ${@generate_native_link_template(d)} | ||
| 95 | cpp_args = ['-isystem@{OECORE_NATIVE_SYSROOT}${includedir_native}' , ${@var_list2str('BUILD_OPTIMIZATION', d)}] | ||
| 96 | cpp_link_args = ${@generate_native_link_template(d)} | ||
| 97 | [properties] | ||
| 98 | sys_root = '@OECORE_NATIVE_SYSROOT' | ||
| 99 | EOF | ||
| 100 | |||
| 101 | cat >${D}${datadir}/meson/meson.cross.template <<EOF | ||
| 102 | [binaries] | ||
| 103 | c = @CC | ||
| 104 | cpp = @CXX | ||
| 105 | ar = @AR | ||
| 106 | nm = @NM | ||
| 107 | strip = @STRIP | ||
| 108 | pkg-config = 'pkg-config' | ||
| 109 | |||
| 110 | [built-in options] | ||
| 111 | c_args = @CFLAGS | ||
| 112 | c_link_args = @LDFLAGS | ||
| 113 | cpp_args = @CPPFLAGS | ||
| 114 | cpp_link_args = @LDFLAGS | ||
| 115 | |||
| 116 | [properties] | ||
| 117 | needs_exe_wrapper = true | ||
| 118 | sys_root = @OECORE_TARGET_SYSROOT | ||
| 119 | |||
| 120 | [host_machine] | ||
| 121 | system = '$host_system' | ||
| 122 | cpu_family = '$host_cpu_family' | ||
| 123 | cpu = '$host_cpu' | ||
| 124 | endian = '$host_endian' | ||
| 125 | EOF | ||
| 126 | } | ||
| 127 | |||
| 128 | do_install:append:class-nativesdk() { | ||
| 129 | host_system=${SDK_OS} | ||
| 130 | host_cpu_family=${@meson_cpu_family("SDK_ARCH", d)} | ||
| 131 | host_cpu=${SDK_ARCH} | ||
| 132 | host_endian=${@meson_endian("SDK", d)} | ||
| 133 | install_templates | ||
| 134 | |||
| 135 | install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d | ||
| 136 | install -m 0755 ${UNPACKDIR}/meson-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/ | ||
| 137 | |||
| 138 | # We need to wrap the real meson with a thin env setup wrapper. | ||
| 139 | mv ${D}${bindir}/meson ${D}${bindir}/meson.real | ||
| 140 | install -m 0755 ${UNPACKDIR}/meson-wrapper ${D}${bindir}/meson | ||
| 141 | } | ||
| 142 | |||
| 143 | FILES:${PN}:append:class-nativesdk = "${datadir}/meson ${SDKPATHNATIVE}" | ||
| 144 | |||
| 145 | do_install:append:class-native() { | ||
| 146 | host_system=${HOST_OS} | ||
| 147 | host_cpu_family=${@meson_cpu_family("HOST_ARCH", d)} | ||
| 148 | host_cpu=${HOST_ARCH} | ||
| 149 | host_endian=${@meson_endian("HOST", d)} | ||
| 150 | install_templates | ||
| 151 | |||
| 152 | install -d ${D}${datadir}/post-relocate-setup.d | ||
| 153 | install -m 0755 ${UNPACKDIR}/meson-setup.py ${D}${datadir}/post-relocate-setup.d/ | ||
| 154 | |||
| 155 | # We need to wrap the real meson with a thin wrapper that substitues native/cross files | ||
| 156 | # when running in a direct SDK environment. | ||
| 157 | mv ${D}${bindir}/meson ${D}${bindir}/meson.real | ||
| 158 | install -m 0755 ${UNPACKDIR}/meson-wrapper ${D}${bindir}/meson | ||
| 159 | } | ||
