forked from pool/meson
Accepting request 640541 from devel:tools:building
Submit version 0.47.x; 0.48 causes too much failure for now (incl. systemd) OBS-URL: https://build.opensuse.org/request/show/640541 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/meson?expand=0&rev=36
This commit is contained in:
commit
15bcc1d8a2
@ -1,32 +0,0 @@
|
|||||||
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
||||||
Date: Mon, 28 May 2018 09:32:19 +0200
|
|
||||||
Subject: Don't raise StopIteration in generators, no longer allowed with
|
|
||||||
Python 3.7. Fixes #3622
|
|
||||||
Patch-mainline: 0.47.1
|
|
||||||
|
|
||||||
Raising StopIteration from a generator has been deprecated with Python 3.5 and is now
|
|
||||||
an error with Python 3.7: https://docs.python.org/3.8/library/exceptions.html#StopIteration
|
|
||||||
|
|
||||||
Just use return instead.
|
|
||||||
|
|
||||||
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
|
|
||||||
---
|
|
||||||
mesonbuild/compilers/compilers.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
|
|
||||||
index 762e7c56..56a0ab2b 100644
|
|
||||||
--- a/mesonbuild/compilers/compilers.py
|
|
||||||
+++ b/mesonbuild/compilers/compilers.py
|
|
||||||
@@ -796,7 +796,7 @@ class Compiler:
|
|
||||||
mlog.debug('Cached compiler stdout:\n', p.stdo)
|
|
||||||
mlog.debug('Cached compiler stderr:\n', p.stde)
|
|
||||||
yield p
|
|
||||||
- raise StopIteration
|
|
||||||
+ return
|
|
||||||
try:
|
|
||||||
with tempfile.TemporaryDirectory() as tmpdirname:
|
|
||||||
if isinstance(code, str):
|
|
||||||
--
|
|
||||||
2.12.3
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:19497a03e7e5b303d8d11f98789a79aba59b5ad4a81bd00f4d099be0212cee78
|
|
||||||
size 1203713
|
|
@ -1,16 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQIzBAABCgAdFiEElRgfTu0U/fTkG1GNO/RpO/7rlCgFAlr8Yg0ACgkQO/RpO/7r
|
|
||||||
lCj/mQ/8DBUXSDE58jyEYZXJr25kTxdX6WM5txK1Qp2CwGZD8tcL1+1yzQMIGQB4
|
|
||||||
R8BWXdRhCEH5OQ7dq2925lP/UYwq5MwMUPIhVIl5OdOo3B9qGM88wvMiFuoffk8M
|
|
||||||
dPrA8Btmd2iSToSAHHP6VxWvtWlJz1/F28nxM4v02e8JtMGT7w4NpKwzB3FCGO1s
|
|
||||||
19emJAwgeMtRGFWyu/oGvmUoq8vHxd0xhQGRKBH2TbxY+9eFdr1acYf9gYIHl2wr
|
|
||||||
SpDcz63eDJ80kEDa2TihykW3yrxQ7BaHARLp2eyBVelKTk2A5eA2SRGuFbVp88uu
|
|
||||||
t3DmsJyNcfrrBBNwZWLORMLZZofMa4kuBnrASkeX9fhxSxBpKU4gFmVmyImw/NUl
|
|
||||||
iXUGDH3lDFgg2Sy2nN7gdYRNH8eFuUZH/R4cCUDlbxo8cmkQIqoJI+BYrFQgk6d2
|
|
||||||
cZmNQbr0qAZsDhIqVxvYRwtxxAAYzM1+t6T1XB9hFwPqYaD0+CiBhyVS5hkJXPws
|
|
||||||
VFeb+bbVx8Byh2W3pmuIxbKP4S1pfttU6A+Cmq/TaSmQvRFDBL30LsHLHsNU4gyR
|
|
||||||
VOd5kUJBdD7bWpw7veoTvm5io1snPhxuigVdEq3mAvdNBq8Rsc6np9YO7BDy72Ah
|
|
||||||
qi4aC5OQdKtAn+xOij8MRc+esmHMtu04xNOYETaRmA7ev2mY6DY=
|
|
||||||
=gmQp
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
meson-0.47.2.tar.gz
Normal file
3
meson-0.47.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:92d8afd921751261e36151643464efd3394162f69efbe8cd53e0a66b1cf395eb
|
||||||
|
size 1267981
|
16
meson-0.47.2.tar.gz.asc
Normal file
16
meson-0.47.2.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCgAdFiEElRgfTu0U/fTkG1GNO/RpO/7rlCgFAluBEusACgkQO/RpO/7r
|
||||||
|
lCjyFhAAri6uNRpBQ963TaJo8NX7KfpS8SFU3Bt+HS1NKF69j3IKP/+097GOQffI
|
||||||
|
RoGs07zSJ3IKhico9tB64ToFlk7fJbvUITiSP0NDSkGVnVaK6Fcn8/FDM937I+8N
|
||||||
|
R2P5uLS4xMw0/VqiFAosysYFuWeIkUNdltW/PM3J4aXKNwi2MnGukUnFNMKHH/3O
|
||||||
|
sIaHAKVuYSIM+CJSXZKumjT/arw3qAvSNz/Kmo8MsGG4+pYyQDLZ16evDTfxELKW
|
||||||
|
4MvUSpaspQi7X/J78HIyakUfc2DiVYV9pGEsMvJ4+1hg6IwiXjRmzTpYY3q3LDU4
|
||||||
|
mJPC5JovdbvS3lByE364ovOBYLLn8D0pP8jALWARzYq2E2Ue/+ATyiELw8ZQ21yw
|
||||||
|
GMo5Bh0efZ7TkL8kC++zpbJayN13IdiRT6CfpUh5Dew2QK+a3fwnBr/1zWGrHB4M
|
||||||
|
7uuZtSzq5H8g8LD/CqwUf1ohdAY4k4MVPuEdVvoWzzAiqYIhTXIFHuaYJW5cVVtn
|
||||||
|
vsGknWUuvsc5e+Cp/qwac+LjKJA308/k+aaAhxAP7oFDgWT6+VrTitIn7TWzFS+p
|
||||||
|
mtVwsQpKFT0PMuAFYnWLJCGpeAmReD5B1K0e4ULYSSl4MI9AysV8oIPQtmqeyi9z
|
||||||
|
1AeN64X0e55qBVptIa4IuT434bZe+RkTtnsvwwzLd86dMbbWACo=
|
||||||
|
=suvK
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -1,19 +1,51 @@
|
|||||||
--- a/mesonbuild/compilers/cpp.py
|
--- a/mesonbuild/compilers/cpp.py
|
||||||
+++ b/mesonbuild/compilers/cpp.py
|
+++ b/mesonbuild/compilers/cpp.py
|
||||||
@@ -104,9 +104,11 @@ class GnuCPPCompiler(GnuCompiler, CPPCom
|
@@ -80,8 +80,8 @@ class ClangCPPCompiler(ClangCompiler, CP
|
||||||
|
def get_options(self):
|
||||||
|
opts = CPPCompiler.get_options(self)
|
||||||
|
opts.update({'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use',
|
||||||
|
- ['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
|
||||||
|
- 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z'],
|
||||||
|
+ ['none', 'c++98', 'c++03', 'c++11', 'c++1y', 'c++14', 'c++17', 'c++1z',
|
||||||
|
+ 'gnu++11', 'gnu++1y', 'gnu++14', 'gnu++17', 'gnu++1z'],
|
||||||
|
'none')})
|
||||||
|
return opts
|
||||||
|
|
||||||
|
@@ -111,8 +111,8 @@ class ArmclangCPPCompiler(ArmclangCompil
|
||||||
|
def get_options(self):
|
||||||
|
opts = CPPCompiler.get_options(self)
|
||||||
|
opts.update({'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use',
|
||||||
|
- ['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17',
|
||||||
|
- 'gnu++98', 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17'],
|
||||||
|
+ ['none', 'c++98', 'c++03', 'c++11', 'c++1y', 'c++14', 'c++17',
|
||||||
|
+ 'gnu++98', 'gnu++03', 'gnu++11', 'gnu++1y', 'gnu++14', 'gnu++17'],
|
||||||
|
'none')})
|
||||||
|
return opts
|
||||||
|
|
||||||
|
@@ -137,10 +137,12 @@ class GnuCPPCompiler(GnuCompiler, CPPCom
|
||||||
'3': default_warn_args + ['-Wextra', '-Wpedantic']}
|
'3': default_warn_args + ['-Wextra', '-Wpedantic']}
|
||||||
|
|
||||||
def get_options(self):
|
def get_options(self):
|
||||||
+ cpp_stds = ['c++98', 'c++03', 'c++11', 'c++1y', 'gnu++03', 'gnu++11', 'gnu++1y']
|
+ cpp_stds = ['c++98', 'c++03', 'c++11', 'c++1y', 'gnu++11', 'gnu++1y']
|
||||||
+ if version_compare(self.version, '>=5.0.0'):
|
+ if version_compare(self.version, '>=5.0.0'):
|
||||||
+ cpp_stds += ['c++14', 'c++17', 'c++1z', 'gnu++14', 'gnu++17', 'gnu++1z']
|
+ cpp_stds += ['c++14', 'c++17', 'c++1z', 'gnu++14', 'gnu++17', 'gnu++1z']
|
||||||
opts = {'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use',
|
opts = CPPCompiler.get_options(self)
|
||||||
- ['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
|
opts.update({'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use',
|
||||||
- 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z'],
|
- ['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
|
||||||
+ ['none'] + cpp_stds,
|
- 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z'],
|
||||||
'none'),
|
+ ['none'] + cpp_stds,
|
||||||
'cpp_debugstl': coredata.UserBooleanOption('cpp_debugstl',
|
'none'),
|
||||||
'STL debug mode',
|
'cpp_debugstl': coredata.UserBooleanOption('cpp_debugstl',
|
||||||
|
'STL debug mode',
|
||||||
|
@@ -211,7 +213,7 @@ class IntelCPPCompiler(IntelCompiler, CP
|
||||||
|
c_stds = []
|
||||||
|
g_stds = ['gnu++98']
|
||||||
|
if version_compare(self.version, '>=15.0.0'):
|
||||||
|
- c_stds += ['c++11', 'c++14']
|
||||||
|
+ c_stds += ['c++11', 'c++1y', 'c++14']
|
||||||
|
g_stds += ['gnu++11']
|
||||||
|
if version_compare(self.version, '>=16.0.0'):
|
||||||
|
c_stds += ['c++17']
|
||||||
--- a/mesonbuild/minit.py
|
--- a/mesonbuild/minit.py
|
||||||
+++ b/mesonbuild/minit.py
|
+++ b/mesonbuild/minit.py
|
||||||
@@ -149,7 +149,7 @@ int main(int argc, char **argv) {{
|
@@ -149,7 +149,7 @@ int main(int argc, char **argv) {{
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
--- a/mesonbuild/backend/ninjabackend.py
|
--- a/mesonbuild/backend/ninjabackend.py
|
||||||
+++ b/mesonbuild/backend/ninjabackend.py
|
+++ b/mesonbuild/backend/ninjabackend.py
|
||||||
@@ -27,7 +27,7 @@ from .. import compilers
|
@@ -31,7 +31,7 @@ from .. import compilers
|
||||||
from ..compilers import CompilerArgs
|
from ..compilers import CompilerArgs, CCompiler, get_macos_dylib_install_name
|
||||||
from ..linkers import ArLinker
|
from ..linkers import ArLinker
|
||||||
from ..mesonlib import File, MesonException, OrderedSet
|
from ..mesonlib import File, MesonException, OrderedSet
|
||||||
-from ..mesonlib import get_compiler_for_source, has_path_sep
|
-from ..mesonlib import get_compiler_for_source, has_path_sep
|
||||||
+from ..mesonlib import get_compiler_for_source, has_path_sep, commonpath
|
+from ..mesonlib import get_compiler_for_source, has_path_sep, commonpath
|
||||||
from .backends import CleanTrees, InstallData
|
from .backends import CleanTrees, InstallData, TargetInstallData
|
||||||
from ..build import InvalidArguments
|
from ..build import InvalidArguments
|
||||||
|
|
||||||
@@ -1157,8 +1157,8 @@ int dummy;
|
@@ -1209,8 +1209,8 @@ int dummy;
|
||||||
# Check if the vala file is in a subdir of --basedir
|
# Check if the vala file is in a subdir of --basedir
|
||||||
abs_srcbasedir = os.path.join(self.environment.get_source_dir(), target.get_subdir())
|
abs_srcbasedir = os.path.join(self.environment.get_source_dir(), target.get_subdir())
|
||||||
abs_vala_file = os.path.join(self.environment.get_build_dir(), vala_file)
|
abs_vala_file = os.path.join(self.environment.get_build_dir(), vala_file)
|
||||||
@ -22,7 +22,7 @@
|
|||||||
path_to_target = os.path.join(self.build_to_src, target.get_subdir())
|
path_to_target = os.path.join(self.build_to_src, target.get_subdir())
|
||||||
--- a/mesonbuild/coredata.py
|
--- a/mesonbuild/coredata.py
|
||||||
+++ b/mesonbuild/coredata.py
|
+++ b/mesonbuild/coredata.py
|
||||||
@@ -17,7 +17,7 @@ import pickle, os, uuid
|
@@ -17,7 +17,7 @@ import pickle, os, uuid, shlex
|
||||||
import sys
|
import sys
|
||||||
from pathlib import PurePath
|
from pathlib import PurePath
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
@ -31,7 +31,7 @@
|
|||||||
from .mesonlib import default_libdir, default_libexecdir, default_prefix
|
from .mesonlib import default_libdir, default_libexecdir, default_prefix
|
||||||
import ast
|
import ast
|
||||||
import argparse
|
import argparse
|
||||||
@@ -261,7 +261,7 @@ class CoreData:
|
@@ -300,7 +300,7 @@ class CoreData:
|
||||||
# commonpath will always return a path in the native format, so we
|
# commonpath will always return a path in the native format, so we
|
||||||
# must use pathlib.PurePath to do the same conversion before
|
# must use pathlib.PurePath to do the same conversion before
|
||||||
# comparing.
|
# comparing.
|
||||||
@ -42,9 +42,9 @@
|
|||||||
'relative path, it is assumed to be a subdir of prefix.'
|
'relative path, it is assumed to be a subdir of prefix.'
|
||||||
--- a/mesonbuild/mesonlib.py
|
--- a/mesonbuild/mesonlib.py
|
||||||
+++ b/mesonbuild/mesonlib.py
|
+++ b/mesonbuild/mesonlib.py
|
||||||
@@ -972,6 +972,30 @@ def detect_subprojects(spdir_name, curre
|
@@ -1069,6 +1069,30 @@ def detect_subprojects(spdir_name, curre
|
||||||
result[basename] = [trial]
|
def get_error_location_string(fname, lineno):
|
||||||
return result
|
return '{}:{}:'.format(fname, lineno)
|
||||||
|
|
||||||
+def commonpath(paths):
|
+def commonpath(paths):
|
||||||
+ '''
|
+ '''
|
||||||
@ -75,10 +75,10 @@
|
|||||||
insertion.
|
insertion.
|
||||||
--- a/mesonbuild/mesonmain.py
|
--- a/mesonbuild/mesonmain.py
|
||||||
+++ b/mesonbuild/mesonmain.py
|
+++ b/mesonbuild/mesonmain.py
|
||||||
@@ -257,8 +257,8 @@ def run_script_command(args):
|
@@ -245,8 +245,8 @@ def set_meson_command(mainfile):
|
||||||
return cmdfunc(cmdargs)
|
mlog.log('meson_command is {!r}'.format(mesonlib.meson_command))
|
||||||
|
|
||||||
def run(original_args, mainfile=None):
|
def run(original_args, mainfile):
|
||||||
- if sys.version_info < (3, 5):
|
- if sys.version_info < (3, 5):
|
||||||
- print('Meson works correctly only with python 3.5+.')
|
- print('Meson works correctly only with python 3.5+.')
|
||||||
+ if sys.version_info < (3, 4):
|
+ if sys.version_info < (3, 4):
|
||||||
@ -86,6 +86,94 @@
|
|||||||
print('You have python %s.' % sys.version)
|
print('You have python %s.' % sys.version)
|
||||||
print('Please update your environment')
|
print('Please update your environment')
|
||||||
return 1
|
return 1
|
||||||
|
--- a/mesonbuild/minstall.py
|
||||||
|
+++ b/mesonbuild/minstall.py
|
||||||
|
@@ -353,8 +353,8 @@ class Installer:
|
||||||
|
if shutil.which('pkexec') is not None and 'PKEXEC_UID' not in os.environ:
|
||||||
|
print('Installation failed due to insufficient permissions.')
|
||||||
|
print('Attempting to use polkit to gain elevated privileges...')
|
||||||
|
- os.execlp('pkexec', 'pkexec', sys.executable, main_file, *sys.argv[1:],
|
||||||
|
- '-C', os.getcwd())
|
||||||
|
+ os.execvp('pkexec', ['pkexec', sys.executable, main_file] + sys.argv[1:] +
|
||||||
|
+ ['-C', os.getcwd()])
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
|
--- a/mesonbuild/mtest.py
|
||||||
|
+++ b/mesonbuild/mtest.py
|
||||||
|
@@ -115,7 +115,12 @@ def returncode_to_status(retcode):
|
||||||
|
if retcode < 0:
|
||||||
|
signum = -retcode
|
||||||
|
try:
|
||||||
|
- signame = signal.Signals(signum).name
|
||||||
|
+ if sys.version_info >= (3, 5):
|
||||||
|
+ signame = signal.Signals(signum).name
|
||||||
|
+ else:
|
||||||
|
+ try: signame = [next(n for n, i in signal.__dict__.items()
|
||||||
|
+ if i == signum)]
|
||||||
|
+ except StopIteration: raise ValueError
|
||||||
|
except ValueError:
|
||||||
|
signame = 'SIGinvalid'
|
||||||
|
return '(killed by signal %d %s)' % (signum, signame)
|
||||||
|
@@ -125,7 +130,12 @@ def returncode_to_status(retcode):
|
||||||
|
|
||||||
|
signum = retcode - 128
|
||||||
|
try:
|
||||||
|
- signame = signal.Signals(signum).name
|
||||||
|
+ if sys.version_info >= (3, 5):
|
||||||
|
+ signame = signal.Signals(signum).name
|
||||||
|
+ else:
|
||||||
|
+ try: signame = [next(n for n, i in signal.__dict__.items()
|
||||||
|
+ if i == signum)]
|
||||||
|
+ except StopIteration: raise ValueError
|
||||||
|
except ValueError:
|
||||||
|
signame = 'SIGinvalid'
|
||||||
|
return '(exit status %d or signal %d %s)' % (retcode, signum, signame)
|
||||||
|
--- a/run_meson_command_tests.py
|
||||||
|
+++ b/run_meson_command_tests.py
|
||||||
|
@@ -18,6 +18,7 @@ import os
|
||||||
|
import tempfile
|
||||||
|
import unittest
|
||||||
|
import subprocess
|
||||||
|
+import sys
|
||||||
|
import zipapp
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
@@ -73,13 +74,27 @@ class CommandTests(unittest.TestCase):
|
||||||
|
# If this call hangs CI will just abort. It is very hard to distinguish
|
||||||
|
# between CI issue and test bug in that case. Set timeout and fail loud
|
||||||
|
# instead.
|
||||||
|
- p = subprocess.run(command, stdout=subprocess.PIPE,
|
||||||
|
- stderr=subprocess.STDOUT, env=os.environ.copy(),
|
||||||
|
- universal_newlines=True, cwd=workdir, timeout=60 * 5)
|
||||||
|
- print(p.stdout)
|
||||||
|
- if p.returncode != 0:
|
||||||
|
- raise subprocess.CalledProcessError(p.returncode, command)
|
||||||
|
- return p.stdout
|
||||||
|
+ if sys.version_info >= (3, 5):
|
||||||
|
+ p = subprocess.run(command, stdout=subprocess.PIPE,
|
||||||
|
+ stderr=subprocess.STDOUT, env=os.environ.copy(),
|
||||||
|
+ universal_newlines=True,
|
||||||
|
+ cwd=workdir, timeout=60 * 5)
|
||||||
|
+ print(p.stdout)
|
||||||
|
+ if p.returncode != 0:
|
||||||
|
+ raise subprocess.CalledProcessError(p.returncode, command)
|
||||||
|
+ return p.stdout
|
||||||
|
+ else:
|
||||||
|
+ try:
|
||||||
|
+ po = subprocess.check_output(command, stderr=subprocess.STDOUT,
|
||||||
|
+ env=os.environ.copy(),
|
||||||
|
+ universal_newlines=True,
|
||||||
|
+ cwd=workdir, timeout=60 * 5)
|
||||||
|
+ except subprocess.CalledProcessError as e:
|
||||||
|
+ print(e.output)
|
||||||
|
+ raise subprocess.CalledProcessError(e.returncode, e.cmd)
|
||||||
|
+ else:
|
||||||
|
+ print(po)
|
||||||
|
+ return po
|
||||||
|
|
||||||
|
def assertMesonCommandIs(self, line, cmd):
|
||||||
|
self.assertTrue(line.startswith('meson_command '), msg=line)
|
||||||
--- a/run_unittests.py
|
--- a/run_unittests.py
|
||||||
+++ b/run_unittests.py
|
+++ b/run_unittests.py
|
||||||
@@ -21,6 +21,7 @@ import tempfile
|
@@ -21,6 +21,7 @@ import tempfile
|
||||||
@ -96,9 +184,9 @@
|
|||||||
import unittest
|
import unittest
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
@@ -476,6 +477,24 @@ class InternalTests(unittest.TestCase):
|
@@ -689,6 +690,24 @@ class InternalTests(unittest.TestCase):
|
||||||
deps.add_pub_reqs([mock])
|
PkgConfigDependency.pkgbin_cache = {}
|
||||||
self.assertEqual(deps.format_reqs(deps.pub_reqs), "some_name")
|
PkgConfigDependency.class_pkgbin = None
|
||||||
|
|
||||||
+ def test_commonpath(self):
|
+ def test_commonpath(self):
|
||||||
+ from os.path import sep
|
+ from os.path import sep
|
||||||
@ -121,7 +209,7 @@
|
|||||||
|
|
||||||
class BasePlatformTests(unittest.TestCase):
|
class BasePlatformTests(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@@ -556,9 +575,16 @@ class BasePlatformTests(unittest.TestCas
|
@@ -769,9 +788,16 @@ class BasePlatformTests(unittest.TestCas
|
||||||
# If this call hangs CI will just abort. It is very hard to distinguish
|
# If this call hangs CI will just abort. It is very hard to distinguish
|
||||||
# between CI issue and test bug in that case. Set timeout and fail loud
|
# between CI issue and test bug in that case. Set timeout and fail loud
|
||||||
# instead.
|
# instead.
|
||||||
@ -141,22 +229,46 @@
|
|||||||
print(p.stdout)
|
print(p.stdout)
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
if 'MESON_SKIP_TEST' in p.stdout:
|
if 'MESON_SKIP_TEST' in p.stdout:
|
||||||
@@ -2940,8 +2966,13 @@ endian = 'little'
|
@@ -2497,17 +2523,30 @@ recommended as it is not supported on so
|
||||||
self.init(testdir)
|
of = open(mfile, 'w')
|
||||||
myenv = os.environ.copy()
|
of.write("project('foobar', 'c')\n")
|
||||||
myenv['PKG_CONFIG_PATH'] = self.privatedir
|
of.close()
|
||||||
- ro = subprocess.run(['pkg-config', '--libs', 'libsomething'], stdout=subprocess.PIPE,
|
- pc = subprocess.run(self.setup_command,
|
||||||
- env=myenv)
|
- cwd=srcdir,
|
||||||
+ if sys.version_info >= (3, 5):
|
- stdout=subprocess.PIPE,
|
||||||
+ ro = subprocess.run(['pkg-config', '--libs', 'libsomething'],
|
- stderr=subprocess.DEVNULL)
|
||||||
+ stdout=subprocess.PIPE, env=myenv)
|
+ if sys.version_info >= (3, 5):
|
||||||
+ else:
|
+ pc = subprocess.run(self.setup_command,
|
||||||
+ ro = subprocess.Popen(['pkg-config', '--libs', 'libsomething'],
|
+ cwd=srcdir,
|
||||||
+ stdout=subprocess.PIPE, env=myenv)
|
+ stdout=subprocess.PIPE,
|
||||||
+ ro.stdout = ro.communicate()[0]
|
+ stderr=subprocess.DEVNULL)
|
||||||
self.assertEqual(ro.returncode, 0)
|
+ else:
|
||||||
self.assertIn(b'-lgobject-2.0', ro.stdout)
|
+ pc = subprocess.Popen(self.setup_command,
|
||||||
self.assertIn(b'-lgio-2.0', ro.stdout)
|
+ cwd=srcdir,
|
||||||
|
+ stdout=subprocess.PIPE,
|
||||||
|
+ stderr=subprocess.DEVNULL)
|
||||||
|
+ pc.stdout = pc.communicate()[0]
|
||||||
|
self.assertIn(b'Must specify at least one directory name', pc.stdout)
|
||||||
|
with tempfile.TemporaryDirectory(dir=srcdir) as builddir:
|
||||||
|
- subprocess.run(self.setup_command,
|
||||||
|
- check=True,
|
||||||
|
- cwd=builddir,
|
||||||
|
- stdout=subprocess.DEVNULL,
|
||||||
|
- stderr=subprocess.DEVNULL)
|
||||||
|
+ if sys.version_info >= (3, 5):
|
||||||
|
+ subprocess.run(self.setup_command,
|
||||||
|
+ check=True,
|
||||||
|
+ cwd=builddir,
|
||||||
|
+ stdout=subprocess.DEVNULL,
|
||||||
|
+ stderr=subprocess.DEVNULL)
|
||||||
|
+ else:
|
||||||
|
+ subprocess.check_call(self.setup_command,
|
||||||
|
+ cwd=builddir,
|
||||||
|
+ stdout=subprocess.DEVNULL,
|
||||||
|
+ stderr=subprocess.DEVNULL)
|
||||||
|
|
||||||
|
class FailureTests(BasePlatformTests):
|
||||||
|
'''
|
||||||
--- a/setup.py
|
--- a/setup.py
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -19,9 +19,9 @@ import sys
|
@@ -19,9 +19,9 @@ import sys
|
||||||
@ -197,3 +309,16 @@
|
|||||||
+ d = f.readline().split('\n')[0].strip()
|
+ d = f.readline().split('\n')[0].strip()
|
||||||
+with pathlib.Path(ofilename).open('w') as f:
|
+with pathlib.Path(ofilename).open('w') as f:
|
||||||
+ f.write(ftempl % d)
|
+ f.write(ftempl % d)
|
||||||
|
--- "a/test cases/windows/14 test argument extra paths/test/test_run_exe.py"
|
||||||
|
+++ "b/test cases/windows/14 test argument extra paths/test/test_run_exe.py"
|
||||||
|
@@ -7,6 +7,9 @@ if __name__ == '__main__':
|
||||||
|
parser.add_argument('prog')
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
- res = subprocess.run(args.prog)
|
||||||
|
+ if sys.version_info >= (3, 5):
|
||||||
|
+ res = subprocess.run(args.prog)
|
||||||
|
+ else:
|
||||||
|
+ res = subprocess.call(args.prog)
|
||||||
|
|
||||||
|
sys.exit(res.returncode - 42)
|
||||||
|
@ -1,22 +1,32 @@
|
|||||||
--- a/run_project_tests.py
|
--- a/run_tests.py
|
||||||
+++ b/run_project_tests.py
|
+++ b/run_tests.py
|
||||||
@@ -80,7 +80,7 @@ no_meson_log_msg = 'No meson-log.txt fou
|
@@ -54,18 +54,10 @@ def get_meson_script():
|
||||||
|
Also used by run_unittests.py to determine what meson to run when not
|
||||||
|
running in-process (which is the default).
|
||||||
|
'''
|
||||||
|
- # Is there a meson.py next to the mesonbuild currently in use?
|
||||||
|
- mesonbuild_dir = Path(mesonbuild.__file__).resolve().parent.parent
|
||||||
|
- meson_script = mesonbuild_dir / 'meson.py'
|
||||||
|
- if meson_script.is_file():
|
||||||
|
- return str(meson_script)
|
||||||
|
- # Then if mesonbuild is in PYTHONPATH, meson must be in PATH
|
||||||
|
- mlog.warning('Could not find meson.py next to the mesonbuild module. '
|
||||||
|
- 'Trying system meson...')
|
||||||
|
meson_cmd = shutil.which('meson')
|
||||||
|
- if meson_cmd:
|
||||||
|
+ if meson_cmd and os.path.isfile(meson_cmd):
|
||||||
|
return meson_cmd
|
||||||
|
- raise RuntimeError('Could not find {!r} or a meson in PATH'.format(meson_script))
|
||||||
|
+ raise RuntimeError('Could not find a meson in PATH')
|
||||||
|
|
||||||
system_compiler = None
|
def get_backend_args_for_dir(backend, builddir):
|
||||||
|
'''
|
||||||
-meson_command = os.path.join(os.getcwd(), 'meson')
|
@@ -244,7 +236,7 @@ if __name__ == '__main__':
|
||||||
+meson_command = '/usr/bin/meson'
|
env['COVERAGE_PROCESS_START'] = '.coveragerc'
|
||||||
if not os.path.exists(meson_command):
|
env['PYTHONPATH'] = os.pathsep.join([td] + env.get('PYTHONPATH', []))
|
||||||
meson_command += '.py'
|
if not cross:
|
||||||
if not os.path.exists(meson_command):
|
- returncode += subprocess.call(mesonlib.python_command + ['run_meson_command_tests.py', '-v'], env=env)
|
||||||
--- a/run_unittests.py
|
+ #returncode += subprocess.call(mesonlib.python_command + ['run_meson_command_tests.py', '-v'], env=env)
|
||||||
+++ b/run_unittests.py
|
returncode += subprocess.call(mesonlib.python_command + ['run_unittests.py', '-v'], env=env)
|
||||||
@@ -506,7 +506,7 @@ class BasePlatformTests(unittest.TestCas
|
returncode += subprocess.call(mesonlib.python_command + ['run_project_tests.py'] + sys.argv[1:], env=env)
|
||||||
# Get the backend
|
else:
|
||||||
# FIXME: Extract this from argv?
|
|
||||||
self.backend = getattr(Backend, os.environ.get('MESON_UNIT_TEST_BACKEND', 'ninja'))
|
|
||||||
- self.meson_mainfile = os.path.join(src_root, 'meson.py')
|
|
||||||
+ self.meson_mainfile = '/usr/bin/meson'
|
|
||||||
self.meson_args = ['--backend=' + self.backend.name]
|
|
||||||
self.meson_cross_file = None
|
|
||||||
self.meson_command = meson_command + self.meson_args
|
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 25 17:52:38 UTC 2018 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update to version 0.47.2:
|
||||||
|
* https://github.com/mesonbuild/meson/milestone/29?closed=1
|
||||||
|
- Rebase meson-restore-python3.4.patch, meson-fix-gcc48.patch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 3 21:00:12 UTC 2018 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update to version 0.47.1:
|
||||||
|
* See https://mesonbuild.com/Release-notes-for-0-47-0.html
|
||||||
|
- Remove Don-t-raise-StopIteration-in-generators-no-longer-al.patch.
|
||||||
|
- Add a new dependency for tests:
|
||||||
|
libqt5-qtbase-private-headers-devel.
|
||||||
|
- Set MESON_EXE for tests.
|
||||||
|
- Adjust meson-test-installed-bin.patch.
|
||||||
|
- Rebase meson-restore-python3.4.patch, meson-fix-gcc48.patch.
|
||||||
|
- No longer test with OpenMPI: starting with this release
|
||||||
|
"-Wl,--no-undefined -Wl,--as-needed" appears in the gfortran
|
||||||
|
arguments, causing an error similiar to lp#1727474.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 28 21:08:48 UTC 2018 - bjorn.lie@gmail.com
|
Sat Jul 28 21:08:48 UTC 2018 - bjorn.lie@gmail.com
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%define _name mesonbuild
|
%define _name mesonbuild
|
||||||
Name: meson%{name_ext}
|
Name: meson%{name_ext}
|
||||||
Version: 0.46.1
|
Version: 0.47.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python-based build system
|
Summary: Python-based build system
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -38,13 +38,11 @@ Patch0: meson-suse-ify-macros.patch
|
|||||||
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package.
|
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package.
|
||||||
Patch1: meson-test-installed-bin.patch
|
Patch1: meson-test-installed-bin.patch
|
||||||
# PATCH-FIX-OPENSUSE meson-suse-fix-llvm-3.8.patch -- Fix LLVM 3.8 tests.
|
# PATCH-FIX-OPENSUSE meson-suse-fix-llvm-3.8.patch -- Fix LLVM 3.8 tests.
|
||||||
Patch3: meson-suse-fix-llvm-3.8.patch
|
Patch2: meson-suse-fix-llvm-3.8.patch
|
||||||
# PATCH-FIX-OPENSUSE meson-restore-python3.4.patch -- Restore Python 3.4 support (reverts commit 0538009).
|
# PATCH-FIX-OPENSUSE meson-restore-python3.4.patch -- Restore Python 3.4 support (reverts commit 0538009).
|
||||||
Patch4: meson-restore-python3.4.patch
|
Patch3: meson-restore-python3.4.patch
|
||||||
# PATCH-FIX-OPENSUSE meson-fix-gcc48.patch sor.alexei@meowr.ru -- Fix GCC 4.8 handling for openSUSE Leap 42.x.
|
# PATCH-FIX-OPENSUSE meson-fix-gcc48.patch sor.alexei@meowr.ru -- Fix GCC 4.8 handling for openSUSE Leap 42.x.
|
||||||
Patch5: meson-fix-gcc48.patch
|
Patch4: meson-fix-gcc48.patch
|
||||||
# PATCH-FIX-UPSTREAM Don-t-raise-StopIteration-in-generators-no-longer-al.patch -- Don't raise StopIteration in generators, no longer allowed with Python 3.7. Fixes #3622
|
|
||||||
Patch6: Don-t-raise-StopIteration-in-generators-no-longer-al.patch
|
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{testsuite}
|
%if %{testsuite}
|
||||||
@ -63,12 +61,12 @@ BuildRequires: gtk-doc
|
|||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
|
BuildRequires: libqt5-qtbase-private-headers-devel
|
||||||
BuildRequires: libwmf-devel
|
BuildRequires: libwmf-devel
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm-devel
|
||||||
BuildRequires: meson = %{version}
|
BuildRequires: meson = %{version}
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: ninja
|
BuildRequires: ninja
|
||||||
BuildRequires: openmpi-devel
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3-devel >= 3.4
|
BuildRequires: python3-devel >= 3.4
|
||||||
BuildRequires: python3-gobject
|
BuildRequires: python3-gobject
|
||||||
@ -132,11 +130,10 @@ This package provides support for meson.build files in Vim.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%if 0%{?suse_version} < 1500
|
%if 0%{?suse_version} < 1500
|
||||||
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
|
||||||
%endif
|
%endif
|
||||||
%patch6 -p1
|
|
||||||
|
|
||||||
# Remove static boost tests from test cases/frameworks/1 boost (can't use patch due to spaces in dirname)
|
# Remove static boost tests from test cases/frameworks/1 boost (can't use patch due to spaces in dirname)
|
||||||
sed -i "/static/d" test\ cases/frameworks/1\ boost/meson.build
|
sed -i "/static/d" test\ cases/frameworks/1\ boost/meson.build
|
||||||
@ -180,18 +177,14 @@ install -Dpm 0644 data/syntax-highlighting/vim/syntax/meson.vim \
|
|||||||
%if %{testsuite}
|
%if %{testsuite}
|
||||||
%check
|
%check
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
|
export MESON_EXE=%{_bindir}/meson
|
||||||
export MESON_PRINT_TEST_OUTPUT=1
|
export MESON_PRINT_TEST_OUTPUT=1
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
source %{_libdir}/mpi/gcc/openmpi/bin/mpivars.sh
|
|
||||||
python3 run_tests.py
|
python3 run_tests.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%else
|
|
||||||
%doc COPYING
|
|
||||||
%endif
|
|
||||||
%if !%{testsuite}
|
%if !%{testsuite}
|
||||||
%{_bindir}/meson
|
%{_bindir}/meson
|
||||||
%{_bindir}/mesonconf
|
%{_bindir}/mesonconf
|
||||||
@ -200,6 +193,9 @@ python3 run_tests.py
|
|||||||
%{_bindir}/wraptool
|
%{_bindir}/wraptool
|
||||||
%{python3_sitelib}/%{_name}/
|
%{python3_sitelib}/%{_name}/
|
||||||
%{python3_sitelib}/meson-*
|
%{python3_sitelib}/meson-*
|
||||||
|
%dir %{_datadir}/polkit-1/
|
||||||
|
%dir %{_datadir}/polkit-1/actions/
|
||||||
|
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
||||||
%{_rpmconfigdir}/macros.d/macros.meson
|
%{_rpmconfigdir}/macros.d/macros.meson
|
||||||
%{_mandir}/man1/meson.1%{?ext_man}
|
%{_mandir}/man1/meson.1%{?ext_man}
|
||||||
%{_mandir}/man1/mesonconf.1%{?ext_man}
|
%{_mandir}/man1/mesonconf.1%{?ext_man}
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 25 17:52:38 UTC 2018 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update to version 0.47.2:
|
||||||
|
* https://github.com/mesonbuild/meson/milestone/29?closed=1
|
||||||
|
- Rebase meson-restore-python3.4.patch, meson-fix-gcc48.patch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 3 21:00:12 UTC 2018 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update to version 0.47.1:
|
||||||
|
* See https://mesonbuild.com/Release-notes-for-0-47-0.html
|
||||||
|
- Remove Don-t-raise-StopIteration-in-generators-no-longer-al.patch.
|
||||||
|
- Add a new dependency for tests:
|
||||||
|
libqt5-qtbase-private-headers-devel.
|
||||||
|
- Set MESON_EXE for tests.
|
||||||
|
- Adjust meson-test-installed-bin.patch.
|
||||||
|
- Rebase meson-restore-python3.4.patch, meson-fix-gcc48.patch.
|
||||||
|
- No longer test with OpenMPI: starting with this release
|
||||||
|
"-Wl,--no-undefined -Wl,--as-needed" appears in the gfortran
|
||||||
|
arguments, causing an error similiar to lp#1727474.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 28 21:08:48 UTC 2018 - bjorn.lie@gmail.com
|
Sat Jul 28 21:08:48 UTC 2018 - bjorn.lie@gmail.com
|
||||||
|
|
||||||
|
24
meson.spec
24
meson.spec
@ -24,7 +24,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%define _name mesonbuild
|
%define _name mesonbuild
|
||||||
Name: meson%{name_ext}
|
Name: meson%{name_ext}
|
||||||
Version: 0.46.1
|
Version: 0.47.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python-based build system
|
Summary: Python-based build system
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -38,13 +38,11 @@ Patch0: meson-suse-ify-macros.patch
|
|||||||
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package.
|
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package.
|
||||||
Patch1: meson-test-installed-bin.patch
|
Patch1: meson-test-installed-bin.patch
|
||||||
# PATCH-FIX-OPENSUSE meson-suse-fix-llvm-3.8.patch -- Fix LLVM 3.8 tests.
|
# PATCH-FIX-OPENSUSE meson-suse-fix-llvm-3.8.patch -- Fix LLVM 3.8 tests.
|
||||||
Patch3: meson-suse-fix-llvm-3.8.patch
|
Patch2: meson-suse-fix-llvm-3.8.patch
|
||||||
# PATCH-FIX-OPENSUSE meson-restore-python3.4.patch -- Restore Python 3.4 support (reverts commit 0538009).
|
# PATCH-FIX-OPENSUSE meson-restore-python3.4.patch -- Restore Python 3.4 support (reverts commit 0538009).
|
||||||
Patch4: meson-restore-python3.4.patch
|
Patch3: meson-restore-python3.4.patch
|
||||||
# PATCH-FIX-OPENSUSE meson-fix-gcc48.patch sor.alexei@meowr.ru -- Fix GCC 4.8 handling for openSUSE Leap 42.x.
|
# PATCH-FIX-OPENSUSE meson-fix-gcc48.patch sor.alexei@meowr.ru -- Fix GCC 4.8 handling for openSUSE Leap 42.x.
|
||||||
Patch5: meson-fix-gcc48.patch
|
Patch4: meson-fix-gcc48.patch
|
||||||
# PATCH-FIX-UPSTREAM Don-t-raise-StopIteration-in-generators-no-longer-al.patch -- Don't raise StopIteration in generators, no longer allowed with Python 3.7. Fixes #3622
|
|
||||||
Patch6: Don-t-raise-StopIteration-in-generators-no-longer-al.patch
|
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{testsuite}
|
%if %{testsuite}
|
||||||
@ -63,12 +61,12 @@ BuildRequires: gtk-doc
|
|||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
|
BuildRequires: libqt5-qtbase-private-headers-devel
|
||||||
BuildRequires: libwmf-devel
|
BuildRequires: libwmf-devel
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm-devel
|
||||||
BuildRequires: meson = %{version}
|
BuildRequires: meson = %{version}
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: ninja
|
BuildRequires: ninja
|
||||||
BuildRequires: openmpi-devel
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3-devel >= 3.4
|
BuildRequires: python3-devel >= 3.4
|
||||||
BuildRequires: python3-gobject
|
BuildRequires: python3-gobject
|
||||||
@ -132,11 +130,10 @@ This package provides support for meson.build files in Vim.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%if 0%{?suse_version} < 1500
|
%if 0%{?suse_version} < 1500
|
||||||
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
|
||||||
%endif
|
%endif
|
||||||
%patch6 -p1
|
|
||||||
|
|
||||||
# Remove static boost tests from test cases/frameworks/1 boost (can't use patch due to spaces in dirname)
|
# Remove static boost tests from test cases/frameworks/1 boost (can't use patch due to spaces in dirname)
|
||||||
sed -i "/static/d" test\ cases/frameworks/1\ boost/meson.build
|
sed -i "/static/d" test\ cases/frameworks/1\ boost/meson.build
|
||||||
@ -180,18 +177,14 @@ install -Dpm 0644 data/syntax-highlighting/vim/syntax/meson.vim \
|
|||||||
%if %{testsuite}
|
%if %{testsuite}
|
||||||
%check
|
%check
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
|
export MESON_EXE=%{_bindir}/meson
|
||||||
export MESON_PRINT_TEST_OUTPUT=1
|
export MESON_PRINT_TEST_OUTPUT=1
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
source %{_libdir}/mpi/gcc/openmpi/bin/mpivars.sh
|
|
||||||
python3 run_tests.py
|
python3 run_tests.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%else
|
|
||||||
%doc COPYING
|
|
||||||
%endif
|
|
||||||
%if !%{testsuite}
|
%if !%{testsuite}
|
||||||
%{_bindir}/meson
|
%{_bindir}/meson
|
||||||
%{_bindir}/mesonconf
|
%{_bindir}/mesonconf
|
||||||
@ -200,6 +193,9 @@ python3 run_tests.py
|
|||||||
%{_bindir}/wraptool
|
%{_bindir}/wraptool
|
||||||
%{python3_sitelib}/%{_name}/
|
%{python3_sitelib}/%{_name}/
|
||||||
%{python3_sitelib}/meson-*
|
%{python3_sitelib}/meson-*
|
||||||
|
%dir %{_datadir}/polkit-1/
|
||||||
|
%dir %{_datadir}/polkit-1/actions/
|
||||||
|
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
||||||
%{_rpmconfigdir}/macros.d/macros.meson
|
%{_rpmconfigdir}/macros.d/macros.meson
|
||||||
%{_mandir}/man1/meson.1%{?ext_man}
|
%{_mandir}/man1/meson.1%{?ext_man}
|
||||||
%{_mandir}/man1/mesonconf.1%{?ext_man}
|
%{_mandir}/man1/mesonconf.1%{?ext_man}
|
||||||
|
Loading…
Reference in New Issue
Block a user