SHA256
3
0
forked from pool/meson

Accepting request 481274 from GNOME:Next

- Add meson-disable-untested-code.patch: meson has code in the test
  suite that assumes different behaviour between glib 2.51.5 (rc)
  and 2.52.0 (final); this must be a wrong assumption to start with
  and the test suite fails with 2.52.20. When this was added by
  upstream 4 months before glib-2.52.0 was released, there must
  have been no way at all to test this. We revert back to a state
  like with the previous glib verison, where this test was simply
  skipped (gh#mesonbuild/meson#1480).

OBS-URL: https://build.opensuse.org/request/show/481274
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=35
This commit is contained in:
Alexei Sorokin 2017-03-20 11:41:12 +00:00 committed by Git OBS Bridge
parent 81f051cf2b
commit 8ba18e34f7
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: meson-0.39.1/test cases/frameworks/7 gnome/resources/meson.build
===================================================================
--- meson-0.39.1.orig/test cases/frameworks/7 gnome/resources/meson.build
+++ meson-0.39.1/test cases/frameworks/7 gnome/resources/meson.build
@@ -29,7 +29,7 @@ gnome.compile_resources('simple-resource
)
test('simple resource test (gresource)', find_program('resources.py'))
-if glib.version() >= '2.52.0'
+if glib.version() >= '9.99.9'
# This test cannot pass if GLib version is older than 9.99.9.
# Meson will raise an error if the user tries to use the 'dependencies'
# argument and the version of GLib is too old for generated resource

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Mar 20 11:21:10 UTC 2017 - dimstar@opensuse.org
- Add meson-disable-untested-code.patch: meson has code in the test
suite that assumes different behaviour between glib 2.51.5 (rc)
and 2.52.0 (final); this must be a wrong assumption to start with
and the test suite fails with 2.52.20. When this was added by
upstream 4 months before glib-2.52.0 was released, there must
have been no way at all to test this. We revert back to a state
like with the previous glib verison, where this test was simply
skipped (gh#mesonbuild/meson#1480).
-------------------------------------------------------------------
Thu Mar 16 11:04:13 UTC 2017 - sor.alexei@meowr.ru

View File

@ -31,6 +31,8 @@ Source2: %{name}.keyring
Patch0: meson-suse-ify-macros.patch
# PATCH-FIX-OPENSUSE meson-fix-gcc48.patch sor.alexei@meowr.ru -- Fix GCC 4.8 handling for openSUSE Leap 42.x.
Patch1: meson-fix-gcc48.patch
# PATCH-FIX-UPSTREAM meson-disable-untested-code.patch gh#mesonbuild/meson#1480 dimstar@opensuse.org -- Do not assume that the untested meson test works with glib 2.52.0
Patch2: meson-disable-untested-code.patch
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: flex
@ -77,6 +79,7 @@ Domain Specific Language.
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
# Lack of gtest, gmock, gnustep.
rm -rf "test cases/frameworks/2 gtest" \