diff options
author | tnn <tnn@pkgsrc.org> | 2020-07-28 22:43:01 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2020-07-28 22:43:01 +0000 |
commit | e92e38020553e579e6557c948be7632761b3bdaf (patch) | |
tree | 12302ba4e50620b386b276d7d1b529b71dad822a /devel/meson | |
parent | 69846a9723712d12c531047acec98f8eede2ba6f (diff) | |
download | pkgsrc-e92e38020553e579e6557c948be7632761b3bdaf.tar.gz |
meson: fix C++ compiler detection fallout from last update. Bump.
Diffstat (limited to 'devel/meson')
-rw-r--r-- | devel/meson/Makefile | 3 | ||||
-rw-r--r-- | devel/meson/distinfo | 3 | ||||
-rw-r--r-- | devel/meson/patches/patch-mesonbuild_environment.py | 34 |
3 files changed, 38 insertions, 2 deletions
diff --git a/devel/meson/Makefile b/devel/meson/Makefile index 899b268fed3..34ed3a5ad1a 100644 --- a/devel/meson/Makefile +++ b/devel/meson/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.14 2020/07/27 16:08:13 adam Exp $ +# $NetBSD: Makefile,v 1.15 2020/07/28 22:43:01 tnn Exp $ DISTNAME= meson-0.55.0 +PKGREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=m/meson/} diff --git a/devel/meson/distinfo b/devel/meson/distinfo index 3245caad6d4..783d5f5c181 100644 --- a/devel/meson/distinfo +++ b/devel/meson/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.11 2020/07/27 16:08:13 adam Exp $ +$NetBSD: distinfo,v 1.12 2020/07/28 22:43:01 tnn Exp $ SHA1 (meson-0.55.0.tar.gz) = 266c35ad4ea0b526e3437500b99a0745adf82d92 RMD160 (meson-0.55.0.tar.gz) = 59db72dded4bf8dfb53dd5eb00d229e377a2ae80 SHA512 (meson-0.55.0.tar.gz) = bf2a5bab19deb433e363bf569527dbd1a9e8c0f77482aa077abbaa480dadc396e43148957473a31ecd9d3965578d2f7b7dc8808839c619ae2c0d419aed72d4e2 Size (meson-0.55.0.tar.gz) = 1742882 bytes SHA1 (patch-mesonbuild_dependencies_dev.py) = ce9b93369d771f7e24208923b58af769e51bcd98 +SHA1 (patch-mesonbuild_environment.py) = 6bb8a8743a0706c8845a20bf297841af6c1de4b5 SHA1 (patch-mesonbuild_modules_pkgconfig.py) = 7b5dff2fbc29199a2b1b18a0073e73461c517744 SHA1 (patch-mesonbuild_scripts_depfixer.py) = 4c212e4f25f5cf3fb993b41993580805d57695b3 diff --git a/devel/meson/patches/patch-mesonbuild_environment.py b/devel/meson/patches/patch-mesonbuild_environment.py new file mode 100644 index 00000000000..842800c0ccb --- /dev/null +++ b/devel/meson/patches/patch-mesonbuild_environment.py @@ -0,0 +1,34 @@ +$NetBSD: patch-mesonbuild_environment.py,v 1.3 2020/07/28 22:43:01 tnn Exp $ + +Specify c++ language when making CXX parse standard input. +Fixes problem where graphics/MesaLib fails to build due to: + +> clang++ -std=c++14 -dM -E - +> error: invalid argument '-std=c++14' not allowed with 'C' + +--- mesonbuild/environment.py.orig 2020-07-05 20:13:14.000000000 +0000 ++++ mesonbuild/environment.py +@@ -708,7 +708,10 @@ class Environment: + """ + # Arguments to output compiler pre-processor defines to stdout + # gcc, g++, and gfortran all support these arguments +- args = compiler + ['-E', '-dM', '-'] ++ args = compiler + ['-E', '-dM' ] ++ if "++" in compiler[0]: ++ args += [ '-x', 'c++' ] ++ args += [ '-' ] + p, output, error = Popen_safe(args, write='', stdin=subprocess.PIPE) + if p.returncode != 0: + raise EnvironmentException('Unable to detect GNU compiler type:\n' + output + error) +@@ -750,7 +753,10 @@ class Environment: + """ + Get the list of Clang pre-processor defines + """ +- args = compiler + ['-E', '-dM', '-'] ++ args = compiler + ['-E', '-dM' ] ++ if "++" in compiler[0]: ++ args += [ '-x', 'c++' ] ++ args += [ '-' ] + 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) |