package/wayland: bump to version 1.21.0

Drop patches which are now upstream.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard 2022-09-17 15:53:00 -06:00 committed by Thomas Petazzoni
parent 58d5166d9f
commit 8bfc2afd6f
4 changed files with 5 additions and 147 deletions

View File

@ -1,34 +0,0 @@
From 40c275f642e3895aeb748403fcdfd92d7d875d65 Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Mon, 10 Jan 2022 14:54:02 +0100
Subject: [PATCH] build: set c_std=c99
Set explicitly the C standard to use to make sure we don't use
features not available on our target platforms.
Signed-off-by: Simon Ser <contact@emersion.fr>
[Retrieved from:
https://gitlab.freedesktop.org/wayland/wayland/-/commit/40c275f642e3895aeb748403fcdfd92d7d875d65]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index cab267e9..e9691ffe 100644
--- a/meson.build
+++ b/meson.build
@@ -5,7 +5,8 @@ project(
meson_version: '>= 0.52.1',
default_options: [
'warning_level=2',
- 'buildtype=debugoptimized'
+ 'buildtype=debugoptimized',
+ 'c_std=c99',
]
)
wayland_version = meson.project_version().split('.')
--
GitLab

View File

@ -1,108 +0,0 @@
From 0d314c4a04ef1b86a1ea66107b2d1a8d1bcd93b9 Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Mon, 10 Jan 2022 14:51:55 +0100
Subject: [PATCH] build: don't rely on implicit GNU extensions
Currently libwayland assumes GNU extensions will be available, but
doesn't define the C standard to use. Instead, let's unconditionally
enable POSIX extensions, and enable GNU extensions on a case-by-case
basis as needed.
Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[james.hilliard1@gmail.com: backport from upstream commit
0d314c4a04ef1b86a1ea66107b2d1a8d1bcd93b9]
---
cursor/xcursor.c | 1 +
meson.build | 10 ++++++++--
tests/display-test.c | 1 +
tests/event-loop-test.c | 1 +
tests/fixed-test.c | 1 +
5 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/cursor/xcursor.c b/cursor/xcursor.c
index 0506680..188be7c 100644
--- a/cursor/xcursor.c
+++ b/cursor/xcursor.c
@@ -23,6 +23,7 @@
* SOFTWARE.
*/
+#define _GNU_SOURCE
#include "xcursor.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/meson.build b/meson.build
index 07bbd29..cab267e 100644
--- a/meson.build
+++ b/meson.build
@@ -14,6 +14,12 @@ config_h = configuration_data()
config_h.set_quoted('PACKAGE', meson.project_name())
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
+cc_args = []
+if host_machine.system() != 'freebsd'
+ cc_args += ['-D_POSIX_C_SOURCE=200809L']
+endif
+add_project_arguments(cc_args, language: 'c')
+
compiler_flags = [
'-Wno-unused-parameter',
'-Wstrict-prototypes',
@@ -79,7 +85,7 @@ if get_option('libraries')
]
foreach d: decls
- if not cc.has_header_symbol(d['header'], d['symbol'], dependencies: epoll_dep)
+ if not cc.has_header_symbol(d['header'], d['symbol'], dependencies: epoll_dep, args: cc_args)
error('@0@ is needed to compile Wayland libraries'.format(d['symbol']))
endif
endforeach
@@ -87,7 +93,7 @@ if get_option('libraries')
rt_dep = []
if not cc.has_function('clock_gettime', prefix: '#include <time.h>')
rt_dep = cc.find_library('rt')
- if not cc.has_function('clock_gettime', prefix: '#include <time.h>', dependencies: rt_dep)
+ if not cc.has_function('clock_gettime', prefix: '#include <time.h>', dependencies: rt_dep, args: cc_args)
error('clock_gettime not found')
endif
endif
diff --git a/tests/display-test.c b/tests/display-test.c
index 763adc9..a6f410d 100644
--- a/tests/display-test.c
+++ b/tests/display-test.c
@@ -24,6 +24,7 @@
* SOFTWARE.
*/
+#define _GNU_SOURCE
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/event-loop-test.c b/tests/event-loop-test.c
index 9d43c91..a51ba8f 100644
--- a/tests/event-loop-test.c
+++ b/tests/event-loop-test.c
@@ -24,6 +24,7 @@
* SOFTWARE.
*/
+#define _GNU_SOURCE
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
diff --git a/tests/fixed-test.c b/tests/fixed-test.c
index 47a4dae..0b58797 100644
--- a/tests/fixed-test.c
+++ b/tests/fixed-test.c
@@ -23,6 +23,7 @@
* SOFTWARE.
*/
+#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
--
2.25.1

View File

@ -1,6 +1,6 @@
# From https://lists.freedesktop.org/archives/wayland-devel/2021-December/042064.html # From https://lists.freedesktop.org/archives/wayland-devel/2022-June/042268.html
sha256 b8a034154c7059772e0fdbd27dbfcda6c732df29cae56a82274f6ec5d7cd8725 wayland-1.20.0.tar.xz sha256 6dc64d7fc16837a693a51cfdb2e568db538bfdc9f457d4656285bb9594ef11ac wayland-1.21.0.tar.xz
sha512 e8a1f410994b947f850799bdd0d95a2429d8467f853e62a0ab3915a4e9fe130f8aa977e03715114ab740c6ec546edea63d275ce7f927d4f3029ea126e6a7d215 wayland-1.20.0.tar.xz sha512 5575216d30fdf5c63caa6bcad071e15f2a4f3acb12df776806073f65db37a50b5b5b3cc7957c5497636f4ac01893e2eaab26e453ded44b287acde01762f5fdc3 wayland-1.21.0.tar.xz
# Locally calculated # Locally calculated
sha256 6eefcb023622a463168a5c20add95fd24a38c7482622a9254a23b99b7c153061 COPYING sha256 6eefcb023622a463168a5c20add95fd24a38c7482622a9254a23b99b7c153061 COPYING

View File

@ -4,8 +4,8 @@
# #
################################################################################ ################################################################################
WAYLAND_VERSION = 1.20.0 WAYLAND_VERSION = 1.21.0
WAYLAND_SITE = https://wayland.freedesktop.org/releases WAYLAND_SITE = https://gitlab.freedesktop.org/wayland/wayland/-/releases/$(WAYLAND_VERSION)/downloads
WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
WAYLAND_LICENSE = MIT WAYLAND_LICENSE = MIT
WAYLAND_LICENSE_FILES = COPYING WAYLAND_LICENSE_FILES = COPYING