forked from pool/meson
Accepting request 891207 from devel:tools:building
Revert to Factory version 0.56.2 - together with patch to address GCC11 / GNOME build issues (0.57.2 is stored in a branch of mine) (forwarded request 891206 from dimstar) OBS-URL: https://build.opensuse.org/request/show/891207 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/meson?expand=0&rev=69
This commit is contained in:
commit
8ee6635f5a
159
0200340a.patch
Normal file
159
0200340a.patch
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
From 0200340a497fb911c13ce3147b4223e4b5e290e7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Philip Withnall <pwithnall@endlessos.org>
|
||||||
|
Date: Mon, 16 Nov 2020 18:38:39 +0000
|
||||||
|
Subject: [PATCH] gnome: Drop use of volatile in GLib type functions
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
See https://gitlab.gnome.org/GNOME/glib/-/issues/600
|
||||||
|
|
||||||
|
`volatile` was previously mistakenly used in GLib to indicate that a
|
||||||
|
variable was accessed atomically or otherwise multi-threaded. It’s not
|
||||||
|
meant for that, and up to date compilers (like gcc-11) will rightly warn
|
||||||
|
about it.
|
||||||
|
|
||||||
|
Drop the `volatile` qualifiers.
|
||||||
|
|
||||||
|
Based on a patch by Jeff Law.
|
||||||
|
|
||||||
|
See also http://isvolatileusefulwiththreads.in/c/.
|
||||||
|
|
||||||
|
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
||||||
|
---
|
||||||
|
mesonbuild/modules/gnome.py | 2 +-
|
||||||
|
test cases/frameworks/7 gnome/mkenums/enums.c.in | 8 ++++----
|
||||||
|
test cases/frameworks/7 gnome/mkenums/enums2.c.in | 8 ++++----
|
||||||
|
test cases/frameworks/7 gnome/mkenums/meson.build | 8 ++++----
|
||||||
|
.../dependency-generated/enum-types.c.template | 8 ++++----
|
||||||
|
5 files changed, 17 insertions(+), 17 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
|
||||||
|
index 9fd31c73885..547aff17cd4 100644
|
||||||
|
--- a/mesonbuild/modules/gnome.py
|
||||||
|
+++ b/mesonbuild/modules/gnome.py
|
||||||
|
@@ -1430,7 +1430,7 @@ def mkenums_simple(self, state, args, kwargs):
|
||||||
|
GType
|
||||||
|
%s@enum_name@_get_type (void)
|
||||||
|
{
|
||||||
|
- static volatile gsize gtype_id = 0;
|
||||||
|
+ static gsize gtype_id = 0;
|
||||||
|
static const G@Type@Value values[] = {''' % func_prefix
|
||||||
|
|
||||||
|
c_file_kwargs['vprod'] = ' { C_@TYPE@(@VALUENAME@), "@VALUENAME@", "@valuenick@" },'
|
||||||
|
diff --git a/test cases/frameworks/7 gnome/mkenums/enums.c.in b/test cases/frameworks/7 gnome/mkenums/enums.c.in
|
||||||
|
index 62e1adcb462..1c19d8ffaa8 100644
|
||||||
|
--- a/test cases/frameworks/7 gnome/mkenums/enums.c.in
|
||||||
|
+++ b/test cases/frameworks/7 gnome/mkenums/enums.c.in
|
||||||
|
@@ -13,9 +13,9 @@
|
||||||
|
/*** BEGIN value-header ***/
|
||||||
|
GType
|
||||||
|
@enum_name@_get_type(void) {
|
||||||
|
- static volatile gsize g_define_type_id__volatile = 0;
|
||||||
|
+ static gsize static_g_define_type_id = 0;
|
||||||
|
|
||||||
|
- if(g_once_init_enter(&g_define_type_id__volatile)) {
|
||||||
|
+ if(g_once_init_enter(&static_g_define_type_id)) {
|
||||||
|
static const G@Type@Value values [] = {
|
||||||
|
/*** END value-header ***/
|
||||||
|
|
||||||
|
@@ -29,10 +29,10 @@ GType
|
||||||
|
|
||||||
|
GType g_define_type_id =
|
||||||
|
g_@type@_register_static(g_intern_static_string("@EnumName@"), values);
|
||||||
|
- g_once_init_leave(&g_define_type_id__volatile, g_define_type_id);
|
||||||
|
+ g_once_init_leave(&static_g_define_type_id, g_define_type_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
- return g_define_type_id__volatile;
|
||||||
|
+ return static_g_define_type_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** END value-tail ***/
|
||||||
|
diff --git a/test cases/frameworks/7 gnome/mkenums/enums2.c.in b/test cases/frameworks/7 gnome/mkenums/enums2.c.in
|
||||||
|
index 62e1adcb462..1c19d8ffaa8 100644
|
||||||
|
--- a/test cases/frameworks/7 gnome/mkenums/enums2.c.in
|
||||||
|
+++ b/test cases/frameworks/7 gnome/mkenums/enums2.c.in
|
||||||
|
@@ -13,9 +13,9 @@
|
||||||
|
/*** BEGIN value-header ***/
|
||||||
|
GType
|
||||||
|
@enum_name@_get_type(void) {
|
||||||
|
- static volatile gsize g_define_type_id__volatile = 0;
|
||||||
|
+ static gsize static_g_define_type_id = 0;
|
||||||
|
|
||||||
|
- if(g_once_init_enter(&g_define_type_id__volatile)) {
|
||||||
|
+ if(g_once_init_enter(&static_g_define_type_id)) {
|
||||||
|
static const G@Type@Value values [] = {
|
||||||
|
/*** END value-header ***/
|
||||||
|
|
||||||
|
@@ -29,10 +29,10 @@ GType
|
||||||
|
|
||||||
|
GType g_define_type_id =
|
||||||
|
g_@type@_register_static(g_intern_static_string("@EnumName@"), values);
|
||||||
|
- g_once_init_leave(&g_define_type_id__volatile, g_define_type_id);
|
||||||
|
+ g_once_init_leave(&static_g_define_type_id, g_define_type_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
- return g_define_type_id__volatile;
|
||||||
|
+ return static_g_define_type_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** END value-tail ***/
|
||||||
|
diff --git a/test cases/frameworks/7 gnome/mkenums/meson.build b/test cases/frameworks/7 gnome/mkenums/meson.build
|
||||||
|
index 3d7adf052aa..8ff05ba5ea2 100644
|
||||||
|
--- a/test cases/frameworks/7 gnome/mkenums/meson.build
|
||||||
|
+++ b/test cases/frameworks/7 gnome/mkenums/meson.build
|
||||||
|
@@ -89,9 +89,9 @@ enums_c3 = gnome.mkenums('enums3.c',
|
||||||
|
vhead : '''
|
||||||
|
GType
|
||||||
|
@enum_name@_get_type(void) {
|
||||||
|
- static volatile gsize g_define_type_id__volatile = 0;
|
||||||
|
+ static gsize static_g_define_type_id = 0;
|
||||||
|
|
||||||
|
- if(g_once_init_enter(&g_define_type_id__volatile)) {
|
||||||
|
+ if(g_once_init_enter(&static_g_define_type_id)) {
|
||||||
|
static const G@Type@Value values [] = {
|
||||||
|
''',
|
||||||
|
vprod : ''' { @VALUENAME@, "@VALUENAME@", "@valuenick@" },''',
|
||||||
|
@@ -100,10 +100,10 @@ GType
|
||||||
|
|
||||||
|
GType g_define_type_id =
|
||||||
|
g_@type@_register_static(g_intern_static_string("@EnumName@"), values);
|
||||||
|
- g_once_init_leave(&g_define_type_id__volatile, g_define_type_id);
|
||||||
|
+ g_once_init_leave(&static_g_define_type_id, g_define_type_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
- return g_define_type_id__volatile;
|
||||||
|
+ return static_g_define_type_id;
|
||||||
|
}
|
||||||
|
''')
|
||||||
|
|
||||||
|
diff --git a/test cases/vala/8 generated sources/dependency-generated/enum-types.c.template b/test cases/vala/8 generated sources/dependency-generated/enum-types.c.template
|
||||||
|
index 5ecdd2df234..85d74d11c5c 100644
|
||||||
|
--- a/test cases/vala/8 generated sources/dependency-generated/enum-types.c.template
|
||||||
|
+++ b/test cases/vala/8 generated sources/dependency-generated/enum-types.c.template
|
||||||
|
@@ -14,9 +14,9 @@
|
||||||
|
GType
|
||||||
|
@enum_name@_get_type (void)
|
||||||
|
{
|
||||||
|
- static volatile gsize g_define_type_id__volatile = 0;
|
||||||
|
+ static gsize static_g_define_type_id = 0;
|
||||||
|
|
||||||
|
- if (g_once_init_enter (&g_define_type_id__volatile)) {
|
||||||
|
+ if (g_once_init_enter (&static_g_define_type_id)) {
|
||||||
|
static const G@Type@Value values[] = {
|
||||||
|
/*** END value-header ***/
|
||||||
|
|
||||||
|
@@ -30,10 +30,10 @@ GType
|
||||||
|
GType g_define_type_id =
|
||||||
|
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
||||||
|
|
||||||
|
- g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
|
||||||
|
+ g_once_init_leave (&static_g_define_type_id, g_define_type_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
- return g_define_type_id__volatile;
|
||||||
|
+ return static_g_define_type_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** END value-tail ***/
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 7 07:18:34 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Add 0200340a.patch: gnome: Drop use of volatile in GLib type
|
||||||
|
functions (boo#1185720).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 4 13:35:57 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
Thu Feb 4 13:35:57 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package meson
|
# spec file for package meson-test
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -37,6 +37,8 @@ URL: http://mesonbuild.com/
|
|||||||
Source: https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz
|
Source: https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz
|
||||||
Source1: https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz.asc
|
Source1: https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz.asc
|
||||||
Source2: meson.keyring
|
Source2: meson.keyring
|
||||||
|
# PATCH-FIX-UPSTREAM 0200340a.patch boo#1185720 dimstar@opensuse.org -- gnome: Drop use of volatile in GLib type functions
|
||||||
|
Patch0: https://github.com/mesonbuild/meson/commit/0200340a.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-FEATURE-OPENSUSE meson-distutils.patch tchvatal@suse.com -- build and install using distutils instead of full setuptools
|
# PATCH-FEATURE-OPENSUSE meson-distutils.patch tchvatal@suse.com -- build and install using distutils instead of full setuptools
|
||||||
@ -157,6 +159,7 @@ This package provides support for meson.build files in Vim.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n meson-%{version}
|
%setup -q -n meson-%{version}
|
||||||
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%if !%{with setuptools}
|
%if !%{with setuptools}
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
Loading…
Reference in New Issue
Block a user