diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /dev-util/meson | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'dev-util/meson')
-rw-r--r-- | dev-util/meson/Manifest | 6 | ||||
-rw-r--r-- | dev-util/meson/files/0.54.2-multilib-clang.patch | 181 | ||||
-rw-r--r-- | dev-util/meson/files/0.54.2-prefix-dont-strip-rpath.patch | 25 | ||||
-rw-r--r-- | dev-util/meson/meson-0.54.3.ebuild | 98 | ||||
-rw-r--r-- | dev-util/meson/meson-0.55.3.ebuild | 2 |
5 files changed, 2 insertions, 310 deletions
diff --git a/dev-util/meson/Manifest b/dev-util/meson/Manifest index dc7b7f320490..f04734c840d6 100644 --- a/dev-util/meson/Manifest +++ b/dev-util/meson/Manifest @@ -1,8 +1,4 @@ -AUX 0.54.2-multilib-clang.patch 8033 BLAKE2B 724d87eef8d560eb733b9873d28afaa6dd49c23867440d182d427a9a569bcd6852c5007675fde77724f6e05d1a4beb371fb0b474e8aeec2dbae0a7e8ca3a78b8 SHA512 1251222bc107abc1b5b0acfa6c52b4bfcdd47baf2651b291f162b39d384b61383627a7ab4d925ad2df1f36307e79e4806c6e05eb889e98a58688657e40ada29a -AUX 0.54.2-prefix-dont-strip-rpath.patch 1118 BLAKE2B c28bbb0293c2d15a493bd09c902cd6bb3f48c6d279063f326796919f9d06d0dc99e5a7e975742ad8fe4da3dc5bc9b07329d0ae7cb3186431c12aa93709aaa665 SHA512 bb41c4d06c04af4249c9c5ba5724c982a5edb1fe16118120ed53e52ed82cde0bd0ea43454799c986dd008b48a3bbdb7dac820260d9835b020323babc6ec617ed -DIST meson-0.54.3.tar.gz 1690919 BLAKE2B 5d71731fb33397f470e2440d4d45f828d28d56351843a35b575f8b386f0b1c90faf654289e22ba7c2c4bf6c3be72d3dc8a2257d4a688bcbf9a1f2522394e7728 SHA512 2e62bf992bf337ae5a01f7a0fb842ea0cefcdbc81f5675235e41d8182f37df2e003b0a8a90d650c6cca4ff79898f7888474f75e5103a48d7ca14f51a024e4f2b DIST meson-0.55.3.tar.gz 1740465 BLAKE2B 7d121f5d2bf487ae3c38be5ddccde6900134b9d0ea47868aac5625449e18a1a97ae0012849b795187221632cd3ac343097ef29b282753a1e8bd871c393d5c0e8 SHA512 afb0bb25b367e681131d920995124df4b06f6d144ae1a95ebec27be13e06fefbd95840e0287cd1d84bdbb8d9c115b589a833d847c60926f55e0f15749cf66bae -EBUILD meson-0.54.3.ebuild 2405 BLAKE2B 3aa48813a3a17a008558606a36b8bb96bc8476e5d6de900b112e3511508f894692e600670383ce3920c6690df1e785cce39ded1589c034a092b564f9bfac03e8 SHA512 41aff80d144a6b19efb255bc1c2a05039256e4423b0bfb0f6f1f098bed677fdd554cd3498e6cf2d01d35f81f2a302ce1424b7b8d0860aed21aa984ea52c9296d -EBUILD meson-0.55.3.ebuild 2286 BLAKE2B 278d16f6f840de9f634f4c8b74b71fb67916b2f89513454c038969a277437bb2db84653345facd71bceefbc70c05a85c526a905646bd9fb88019108e8c5ffbc4 SHA512 fb6207e6e33c2630d29b13fcd044ea2c86843c0802867c0e8c7313e8c2f6c5b8e1464b8409374ff75b0011fa14dc61c325c451efa468399da9d2b6691b8fb58b +EBUILD meson-0.55.3.ebuild 2277 BLAKE2B 7a1ce68178a9fa08fcc8138c5b4fb914236e8673c66a9a55c23f86c6ec3c1ac09e46abe9ef4d069d08566c9c87308891886267552014cd8ea387068f4664cd24 SHA512 0e8164a4ce931f22ea681dc968b5d398a6dd28965487a065819e647d41e89f556620367eba58168caf095f439db1c55bf0e55f6a8c8bcaea0690bc0a83e01d83 EBUILD meson-9999.ebuild 2286 BLAKE2B 278d16f6f840de9f634f4c8b74b71fb67916b2f89513454c038969a277437bb2db84653345facd71bceefbc70c05a85c526a905646bd9fb88019108e8c5ffbc4 SHA512 fb6207e6e33c2630d29b13fcd044ea2c86843c0802867c0e8c7313e8c2f6c5b8e1464b8409374ff75b0011fa14dc61c325c451efa468399da9d2b6691b8fb58b MISC metadata.xml 423 BLAKE2B d1d1b815b9d2fabe5aaa28b469272420bc1eb0c070de7431ec0d7bc7202b00ca216e6a347e0ebda22fd079d9f0514734c0e0e345788a7e00c8f1ad594259b4a8 SHA512 5c03d82f2fd8009680d4d98c3f62c10dfddb2d66d03e8f9d9ad8e417d0359e43f77ecca067735b31b63ceb778fdcc508196e99d793990286234ff21892e4dab4 diff --git a/dev-util/meson/files/0.54.2-multilib-clang.patch b/dev-util/meson/files/0.54.2-multilib-clang.patch deleted file mode 100644 index b3aa3693e697..000000000000 --- a/dev-util/meson/files/0.54.2-multilib-clang.patch +++ /dev/null @@ -1,181 +0,0 @@ -From 9dc3ca2c1c9fbb47e731551c6432df144f725261 Mon Sep 17 00:00:00 2001 -From: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> -Date: Thu, 21 May 2020 18:58:47 +0300 -Subject: [PATCH] compilers: add fetching of define list for clang - -Simmilar to gcc, the list of pre-processor defines can be fetched with -`-dM -E` option. The way cpu_family is determined on linux relies on -this list. - -Fixes incorrect value of cpu_family on linux, when crosscompiling: - -``` -CC="clang -m32" meson ./build -``` - -Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> -Co-authored-by: Dylan Baker <dylan@pnwbakers.com> ---- - mesonbuild/compilers/c.py | 5 +++-- - mesonbuild/compilers/cpp.py | 5 +++-- - mesonbuild/compilers/fortran.py | 2 +- - mesonbuild/compilers/mixins/clang.py | 9 ++++++++- - mesonbuild/compilers/objc.py | 2 +- - mesonbuild/compilers/objcpp.py | 2 +- - mesonbuild/environment.py | 26 +++++++++++++++++++++++++- - 7 files changed, 42 insertions(+), 9 deletions(-) - -diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py -index 1bc9e84998..aac99b4269 100644 ---- a/mesonbuild/compilers/c.py -+++ b/mesonbuild/compilers/c.py -@@ -86,9 +86,10 @@ class ClangCCompiler(ClangCompiler, CCompiler): - _C18_VERSION = '>=8.0.0' - - def __init__(self, exelist, version, for_machine: MachineChoice, -- is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs): -+ is_cross, info: 'MachineInfo', exe_wrapper=None, -+ defines: T.Optional[T.List[str]] = None, **kwargs): - CCompiler.__init__(self, exelist, version, for_machine, is_cross, info, exe_wrapper, **kwargs) -- ClangCompiler.__init__(self) -+ ClangCompiler.__init__(self, defines) - default_warn_args = ['-Wall', '-Winvalid-pch'] - self.warn_args = {'0': [], - '1': default_warn_args, -diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py -index f4bcfa9f89..478a68c13c 100644 ---- a/mesonbuild/compilers/cpp.py -+++ b/mesonbuild/compilers/cpp.py -@@ -155,10 +155,11 @@ def _find_best_cpp_std(self, cpp_std): - - class ClangCPPCompiler(ClangCompiler, CPPCompiler): - def __init__(self, exelist, version, for_machine: MachineChoice, -- is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs): -+ is_cross, info: 'MachineInfo', exe_wrapper=None, -+ defines : T.Optional[T.List[str]] = None, **kwargs): - CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, - info, exe_wrapper, **kwargs) -- ClangCompiler.__init__(self) -+ ClangCompiler.__init__(self, defines) - default_warn_args = ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'] - self.warn_args = {'0': [], - '1': default_warn_args, -diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py -index c155b5b4f3..af83c0e564 100644 ---- a/mesonbuild/compilers/fortran.py -+++ b/mesonbuild/compilers/fortran.py -@@ -424,7 +424,7 @@ def __init__(self, exelist, version, for_machine: MachineChoice, - **kwargs): - FortranCompiler.__init__(self, exelist, version, for_machine, - is_cross, info, exe_wrapper, **kwargs) -- ClangCompiler.__init__(self) -+ ClangCompiler.__init__(self, []) - self.id = 'flang' - default_warn_args = ['-Minform=inform'] - self.warn_args = {'0': [], -diff --git a/mesonbuild/compilers/mixins/clang.py b/mesonbuild/compilers/mixins/clang.py -index 1c0ee452f4..0ee10ad5d5 100644 ---- a/mesonbuild/compilers/mixins/clang.py -+++ b/mesonbuild/compilers/mixins/clang.py -@@ -42,9 +42,10 @@ - } # type: T.Dict[str, T.List[str]] - - class ClangCompiler(GnuLikeCompiler): -- def __init__(self): -+ def __init__(self, defines: T.Optional[T.Dict[str, str]]): - super().__init__() - self.id = 'clang' -+ self.defines = defines or {} - self.base_options.append('b_colorout') - # TODO: this really should be part of the linker base_options, but - # linkers don't have base_options. -@@ -56,6 +57,12 @@ def __init__(self): - def get_colorout_args(self, colortype: str) -> T.List[str]: - return clang_color_args[colortype][:] - -+ def has_builtin_define(self, define: str) -> bool: -+ return define in self.defines -+ -+ def get_builtin_define(self, define: str) -> T.Optional[str]: -+ return self.defines.get(define) -+ - def get_optimization_args(self, optimization_level: str) -> T.List[str]: - return clang_optimization_args[optimization_level] - -diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py -index 52d258dcdb..d351c8826a 100644 ---- a/mesonbuild/compilers/objc.py -+++ b/mesonbuild/compilers/objc.py -@@ -86,7 +86,7 @@ def __init__(self, exelist, version, for_machine: MachineChoice, - **kwargs): - ObjCCompiler.__init__(self, exelist, version, for_machine, is_cross, - info, exe_wrapper, **kwargs) -- ClangCompiler.__init__(self) -+ ClangCompiler.__init__(self, []) - default_warn_args = ['-Wall', '-Winvalid-pch'] - self.warn_args = {'0': [], - '1': default_warn_args, -diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py -index c8b422b35d..10555b4551 100644 ---- a/mesonbuild/compilers/objcpp.py -+++ b/mesonbuild/compilers/objcpp.py -@@ -84,7 +84,7 @@ def __init__(self, exelist, version, for_machine: MachineChoice, - is_cross, info: 'MachineInfo', exe_wrapper=None, - **kwargs): - ObjCPPCompiler.__init__(self, exelist, version, for_machine, is_cross, info, exe_wrapper, **kwargs) -- ClangCompiler.__init__(self) -+ ClangCompiler.__init__(self, []) - default_warn_args = ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'] - self.warn_args = {'0': [], - '1': default_warn_args, -diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py -index 8fad6288b1..cb6ae7d514 100644 ---- a/mesonbuild/environment.py -+++ b/mesonbuild/environment.py -@@ -726,6 +726,28 @@ def get_lcc_version_from_defines(defines): - minor = defines.get('__LCC_MINOR__', '0') - return dot.join((generation, major, minor)) - -+ @staticmethod -+ def get_clang_compiler_defines(compiler): -+ """ -+ Get the list of Clang pre-processor defines -+ """ -+ args = compiler + ['-E', '-dM', '-'] -+ p, output, error = Popen_safe(args, write='', stdin=subprocess.PIPE) -+ if p.returncode != 0: -+ raise EnvironmentException('Unable to get clang pre-processor defines:\n' + output + error) -+ defines = {} -+ for line in output.split('\n'): -+ if not line: -+ continue -+ d, *rest = line.split(' ', 2) -+ if d != '#define': -+ continue -+ if len(rest) == 1: -+ defines[rest] = True -+ if len(rest) == 2: -+ defines[rest[0]] = rest[1] -+ return defines -+ - def _get_compilers(self, lang, for_machine): - ''' - The list of compilers is detected in the exact same way for -@@ -1043,6 +1065,8 @@ def sanitize(p): - if 'clang' in out: - linker = None - -+ defines = self.get_clang_compiler_defines(compiler) -+ - # Even if the for_machine is darwin, we could be using vanilla - # clang. - if 'Apple' in out: -@@ -1063,7 +1087,7 @@ def sanitize(p): - - return cls( - ccache + compiler, version, for_machine, is_cross, info, -- exe_wrap, full_version=full_version, linker=linker) -+ exe_wrap, defines, full_version=full_version, linker=linker) - - if 'Intel(R) C++ Intel(R)' in err: - version = search_version(err) diff --git a/dev-util/meson/files/0.54.2-prefix-dont-strip-rpath.patch b/dev-util/meson/files/0.54.2-prefix-dont-strip-rpath.patch deleted file mode 100644 index 1fe2e1ac4cc1..000000000000 --- a/dev-util/meson/files/0.54.2-prefix-dont-strip-rpath.patch +++ /dev/null @@ -1,25 +0,0 @@ -https://bz-attachments.freebsd.org/attachment.cgi?id=204611 -https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238128 - -Stripping RPATH on Prefix is really bad, because it means the default -RPATH entries disappear, and any installed binaries don't work (get -kernel traps). - -Extracted the minstall patch from the FreeBSD full patch. - ---- a/mesonbuild/minstall.py -+++ b/mesonbuild/minstall.py -@@ -488,8 +488,11 @@ - printed_symlink_error = True - if os.path.isfile(outname): - try: -- depfixer.fix_rpath(outname, install_rpath, final_path, -- install_name_mappings, verbose=False) -+ if install_rpath: -+ depfixer.fix_rpath(outname, install_rpath, final_path, -+ install_name_mappings, verbose=False) -+ else: -+ print("RPATH changes at install time disabled") - except SystemExit as e: - if isinstance(e.code, int) and e.code == 0: - pass diff --git a/dev-util/meson/meson-0.54.3.ebuild b/dev-util/meson/meson-0.54.3.ebuild deleted file mode 100644 index e91ba990d3a4..000000000000 --- a/dev-util/meson/meson-0.54.3.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 2016-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) -DISTUTILS_USE_SETUPTOOLS="rdepend" - -if [[ ${PV} = *9999* ]]; then - EGIT_REPO_URI="https://github.com/mesonbuild/meson" - inherit git-r3 -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -fi - -inherit distutils-r1 toolchain-funcs - -DESCRIPTION="Open source build system" -HOMEPAGE="https://mesonbuild.com/" - -LICENSE="Apache-2.0" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=" - test? ( - dev-libs/glib:2 - dev-libs/gobject-introspection - dev-util/ninja - dev-vcs/git - sys-libs/zlib[static-libs(+)] - virtual/pkgconfig - ) -" - -PATCHES=( - "${FILESDIR}"/0.54.2-multilib-clang.patch -) - -python_prepare_all() { - local disable_unittests=( - # ASAN and sandbox both want control over LD_PRELOAD - # https://bugs.gentoo.org/673016 - -e 's/test_generate_gir_with_address_sanitizer/_&/' - - # ASAN is unsupported on some targets - # https://bugs.gentoo.org/692822 - -e 's/test_pch_with_address_sanitizer/_&/' - - # https://github.com/mesonbuild/meson/issues/7203 - -e 's/test_templates/_&/' - - # Broken due to python2 wrapper - -e 's/test_python_module/_&/' - ) - - sed -i "${disable_unittests[@]}" run_unittests.py || die - - # Broken due to python2 script created by python_wrapper_setup - rm -r "test cases/frameworks/1 boost" || die - - use prefix && eapply "${FILESDIR}"/0.54.2-prefix-dont-strip-rpath.patch - - distutils-r1_python_prepare_all -} - -src_test() { - tc-export PKG_CONFIG - if ${PKG_CONFIG} --exists Qt5Core && ! ${PKG_CONFIG} --exists Qt5Gui; then - ewarn "Found Qt5Core but not Qt5Gui; skipping tests" - else - # https://bugs.gentoo.org/687792 - unset PKG_CONFIG - distutils-r1_src_test - fi -} - -python_test() { - ( - # test_meson_installed - unset PYTHONDONTWRITEBYTECODE - - # test_cross_file_system_paths - unset XDG_DATA_HOME - - ${EPYTHON} -u run_tests.py - ) || die "Testing failed with ${EPYTHON}" -} - -python_install_all() { - distutils-r1_python_install_all - - insinto /usr/share/vim/vimfiles - doins -r data/syntax-highlighting/vim/{ftdetect,indent,syntax} - insinto /usr/share/zsh/site-functions - doins data/shell-completions/zsh/_meson -} diff --git a/dev-util/meson/meson-0.55.3.ebuild b/dev-util/meson/meson-0.55.3.ebuild index 38ccf9179e21..ddf27ccdc725 100644 --- a/dev-util/meson/meson-0.55.3.ebuild +++ b/dev-util/meson/meson-0.55.3.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} = *9999* ]]; then inherit git-r3 else SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" fi inherit distutils-r1 toolchain-funcs |