mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
133 lines
5.5 KiB
Plaintext
133 lines
5.5 KiB
Plaintext
From 29bd208538d1aed328efc149acb20cd112ad5d61 Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
|
Date: Mon, 3 Aug 2020 11:56:45 +0200
|
|
Subject: Fix include path for boost
|
|
|
|
|
|
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
|
|
index 662f985..7d38b22 100644
|
|
--- a/mesonbuild/dependencies/boost.py
|
|
+++ b/mesonbuild/dependencies/boost.py
|
|
@@ -516,10 +516,11 @@ class BoostDependency(SystemDependency):
|
|
|
|
def detect_inc_dirs(self, root: Path) -> T.List[BoostIncludeDir]:
|
|
candidates: T.List[Path] = []
|
|
- inc_root = root / 'include'
|
|
+ inc_root = root / 'headers'
|
|
|
|
candidates += [root / 'boost']
|
|
candidates += [inc_root / 'boost']
|
|
+ candidates += [inc_root / 'x86' / 'boost']
|
|
if inc_root.is_dir():
|
|
for i in inc_root.iterdir():
|
|
if not i.is_dir() or not i.name.startswith('boost-'):
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 41a18bfa8c8062baa54981d2e08773c43b65c9bb Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Fri, 26 Nov 2021 11:39:48 +0100
|
|
Subject: add support for gcc 2.95.3
|
|
|
|
|
|
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py
|
|
index 53bdd85..1c1319d 100644
|
|
--- a/mesonbuild/compilers/detect.py
|
|
+++ b/mesonbuild/compilers/detect.py
|
|
@@ -336,7 +336,7 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin
|
|
version = search_version(out)
|
|
|
|
guess_gcc_or_lcc: T.Optional[str] = None
|
|
- if 'Free Software Foundation' in out or out.startswith('xt-'):
|
|
+ if 'Free Software Foundation' in out or out.startswith('xt-') or '2.95.3' in out:
|
|
guess_gcc_or_lcc = 'gcc'
|
|
if 'e2k' in out and 'lcc' in out:
|
|
guess_gcc_or_lcc = 'lcc'
|
|
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py
|
|
index 9ea591e..b4c1ee2 100644
|
|
--- a/mesonbuild/compilers/mixins/gnu.py
|
|
+++ b/mesonbuild/compilers/mixins/gnu.py
|
|
@@ -488,7 +488,7 @@ class GnuLikeCompiler(Compiler, metaclass=abc.ABCMeta):
|
|
stdo = self._get_search_dirs(env)
|
|
for line in stdo.split('\n'):
|
|
if line.startswith(name + ':'):
|
|
- return self._split_fetch_real_dirs(line.split('=', 1)[1])
|
|
+ return self._split_fetch_real_dirs(line.split('=', 1)[1] if '=' in line else line)
|
|
return []
|
|
|
|
def get_lto_compile_args(self, *, threads: int = 0, mode: str = 'default') -> T.List[str]:
|
|
@@ -632,6 +632,16 @@ class GnuCompiler(GnuLikeCompiler):
|
|
def get_profile_use_args(self) -> T.List[str]:
|
|
return super().get_profile_use_args() + ['-fprofile-correction']
|
|
|
|
+ def gnu_symbol_visibility_args(self, vistype: str) -> T.List[str]:
|
|
+ if mesonlib.version_compare(self.version, '< 4'):
|
|
+ vistype = ''
|
|
+ return super().gnu_symbol_visibility_args(vistype)
|
|
+
|
|
+ def get_dependency_gen_args(self, outtarget: str, outfile: str) -> T.List[str]:
|
|
+ if mesonlib.version_compare(self.version, '< 4'):
|
|
+ return []
|
|
+ return super().get_dependency_gen_args(outtarget, outfile)
|
|
+
|
|
|
|
class GnuCStds(Compiler):
|
|
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 7bc22d2bad69b19204e1f37978a6dd3147e3fbc7 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Wed, 12 Apr 2023 17:58:48 +0200
|
|
Subject: Revert b1384b9c9f64ff909d5431176503a7dcdadd426c
|
|
|
|
|
|
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
|
|
index cc0450a..30397c1 100644
|
|
--- a/mesonbuild/modules/pkgconfig.py
|
|
+++ b/mesonbuild/modules/pkgconfig.py
|
|
@@ -705,9 +705,6 @@ class PkgConfigModule(NewExtensionModule):
|
|
if m.is_freebsd():
|
|
pkgroot = os.path.join(_as_str(state.environment.coredata.optstore.get_value_for(OptionKey('prefix'))), 'libdata', 'pkgconfig')
|
|
pkgroot_name = os.path.join('{prefix}', 'libdata', 'pkgconfig')
|
|
- elif m.is_haiku():
|
|
- pkgroot = os.path.join(_as_str(state.environment.coredata.optstore.get_value_for(OptionKey('prefix'))), 'develop', 'lib', 'pkgconfig')
|
|
- pkgroot_name = os.path.join('{prefix}', 'develop', 'lib', 'pkgconfig')
|
|
else:
|
|
pkgroot = os.path.join(_as_str(state.environment.coredata.optstore.get_value_for(OptionKey('libdir'))), 'pkgconfig')
|
|
pkgroot_name = os.path.join('{libdir}', 'pkgconfig')
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From d237e1745b20bb231a8545dadf03390d130a2224 Mon Sep 17 00:00:00 2001
|
|
From: James Le Cuirot <chewi@gentoo.org>
|
|
Date: Sat, 12 Aug 2023 09:56:44 +0100
|
|
Subject: python module: Respect PATH when python is not given in machine file
|
|
|
|
We should only fall back to the Python interpreter running Meson itself
|
|
if `python3` is not found in the PATH.
|
|
|
|
https://github.com/mesonbuild/meson/pull/12116
|
|
|
|
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
|
|
index 2a7e685..237f498 100644
|
|
--- a/mesonbuild/modules/python.py
|
|
+++ b/mesonbuild/modules/python.py
|
|
@@ -442,7 +442,9 @@ class PythonModule(ExtensionModule):
|
|
|
|
def _find_installation_impl(self, state: 'ModuleState', display_name: str, name_or_path: str, required: bool) -> MaybePythonProg:
|
|
if not name_or_path:
|
|
- python = PythonExternalProgram('python3', mesonlib.python_command)
|
|
+ python = PythonExternalProgram('python3')
|
|
+ if not python.found():
|
|
+ python = PythonExternalProgram('python3', mesonlib.python_command)
|
|
else:
|
|
tmp_python = ExternalProgram.from_entry(display_name, name_or_path)
|
|
python = PythonExternalProgram(display_name, ext_prog=tmp_python)
|
|
--
|
|
2.48.1
|
|
|