forked from pool/meson
This commit is contained in:
parent
297724bad1
commit
211d61fb7d
25
meson-0.36.0-fix-old-pkgconfig-test.patch
Normal file
25
meson-0.36.0-fix-old-pkgconfig-test.patch
Normal file
@ -0,0 +1,25 @@
|
||||
--- "a/test cases/common/51 pkgconfig-gen/meson.build"
|
||||
+++ "b/test cases/common/51 pkgconfig-gen/meson.build"
|
||||
@@ -19,11 +19,17 @@ pkgg.generate(
|
||||
)
|
||||
|
||||
pkgconfig = find_program('pkg-config', required: false)
|
||||
-if pkgconfig.found() and build_machine.system() != 'windows'
|
||||
- test('pkgconfig-validation', pkgconfig,
|
||||
- args: ['--validate', 'simple'],
|
||||
- env: ['PKG_CONFIG_PATH=' + meson.current_build_dir() + '/meson-private' ],
|
||||
- )
|
||||
+if pkgconfig.found()
|
||||
+ v = run_command(pkgconfig, '--version').stdout().strip()
|
||||
+ if v.version_compare('>=0.29')
|
||||
+ test('pkgconfig-validation', pkgconfig,
|
||||
+ args: ['--validate', 'simple'],
|
||||
+ env: ['PKG_CONFIG_PATH=' + meson.current_build_dir() + '/meson-private' ])
|
||||
+ else
|
||||
+ message('pkg-config version \'' + v + '\' too old, skipping validate test')
|
||||
+ endif
|
||||
+else
|
||||
+ message('pkg-config not found, skipping validate test')
|
||||
endif
|
||||
|
||||
# Test that name_prefix='' and name='libfoo' results in '-lfoo'
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 10 20:38:23 UTC 2016 - sor.alexei@meowr.ru
|
||||
|
||||
- Add meson-0.36.0-fix-old-pkgconfig-test.patch: tests/common/51:
|
||||
Skip validate if pkg-config is too old (commit 2f804e9).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 22 15:04:05 UTC 2016 - dimstar@opensuse.org
|
||||
|
||||
|
@ -27,6 +27,8 @@ Url: http://mesonbuild.com/
|
||||
Source: https://github.com/%{_name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: https://github.com/%{_name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
||||
Source2: %{name}.keyring
|
||||
# PATCH-FIX-UPSTREAM meson-0.36.0-fix-old-pkgconfig-test.patch nirbheek.chauhan@gmail.com -- tests/common/51: Skip validate if pkg-config is too old (commit 2f804e9).
|
||||
Patch0: %{name}-0.36.0-fix-old-pkgconfig-test.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: flex
|
||||
@ -69,6 +71,7 @@ and the like.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
# Lack of gtest, gmock, gnustep.
|
||||
rm -rf "test cases/frameworks/2 gtest" \
|
||||
|
Loading…
Reference in New Issue
Block a user