diff options
Diffstat (limited to 'x11-base/xwayland/files')
-rw-r--r-- | x11-base/xwayland/files/xwayland-23.2.4-c99.patch | 72 | ||||
-rw-r--r-- | x11-base/xwayland/files/xwayland-23.3.6-test-Skip-Xwayland-test-early-if-PIGLIT_DIR-XTEST_DI.patch | 36 |
2 files changed, 36 insertions, 72 deletions
diff --git a/x11-base/xwayland/files/xwayland-23.2.4-c99.patch b/x11-base/xwayland/files/xwayland-23.2.4-c99.patch deleted file mode 100644 index 21131ea317e4..000000000000 --- a/x11-base/xwayland/files/xwayland-23.2.4-c99.patch +++ /dev/null @@ -1,72 +0,0 @@ -https://gitlab.freedesktop.org/xorg/xserver/-/commit/f0a187f55d76139225c11ce92ab69816d46db55c - -From f0a187f55d76139225c11ce92ab69816d46db55c Mon Sep 17 00:00:00 2001 -From: Florian Weimer <fweimer@redhat.com> -Date: Mon, 29 Jan 2024 10:31:36 +0100 -Subject: [PATCH] xwayland: Use correct pointer types on i386 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -And other 32-bit architectures, where uint32_t and CARD32 are -not the same type. Otherwise the build will fail with GCC 14 -with errors like: - -../hw/xwayland/xwayland-glamor.c: In function ‘xwl_glamor_get_formats’: -../hw/xwayland/xwayland-glamor.c:291:43: error: passing argument 3 of ‘xwl_get_formats_for_device’ from incompatible pointer type [-Wincompatible-pointer-types] - 291 | num_formats, formats); - | ^~~~~~~~~~~ - | | - | CARD32 * {aka long unsigned int *} -../hw/xwayland/xwayland-glamor.c:238:38: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘CARD32 *’ {aka ‘long unsigned int *’} - 238 | uint32_t *num_formats, uint32_t **formats) - | ~~~~~~~~~~^~~~~~~~~~~ -../hw/xwayland/xwayland-glamor.c:291:56: error: passing argument 4 of ‘xwl_get_formats_for_device’ from incompatible pointer type [-Wincompatible-pointer-types] - 291 | num_formats, formats); - | ^~~~~~~ - | | - | CARD32 ** {aka long unsigned int **} -../hw/xwayland/xwayland-glamor.c:238:62: note: expected ‘uint32_t **’ {aka ‘unsigned int **’} but argument is of type ‘CARD32 **’ {aka ‘long unsigned int **’} - 238 | uint32_t *num_formats, uint32_t **formats) - | ~~~~~~~~~~~^~~~~~~ -../hw/xwayland/xwayland-glamor.c:295:28: error: passing argument 3 of ‘xwl_get_formats’ from incompatible pointer type [-Wincompatible-pointer-types] - 295 | num_formats, formats); - | ^~~~~~~~~~~ - | | - | CARD32 * {aka long unsigned int *} -../hw/xwayland/xwayland-glamor.c:217:26: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘CARD32 *’ {aka ‘long unsigned int *’} - 217 | uint32_t *num_formats, uint32_t **formats) - | ~~~~~~~~~~^~~~~~~~~~~ -../hw/xwayland/xwayland-glamor.c:295:41: error: passing argument 4 of ‘xwl_get_formats’ from incompatible pointer type [-Wincompatible-pointer-types] - 295 | num_formats, formats); - | ^~~~~~~ - | | - | CARD32 ** {aka long unsigned int **} -../hw/xwayland/xwayland-glamor.c:217:50: note: expected ‘uint32_t **’ {aka ‘unsigned int **’} but argument is of type ‘CARD32 **’ {aka ‘long unsigned int **’} - 217 | uint32_t *num_formats, uint32_t **formats) - | ~~~~~~~~~~~^~~~~~~ ---- a/hw/xwayland/xwayland-glamor.c -+++ b/hw/xwayland/xwayland-glamor.c -@@ -212,7 +212,7 @@ xwl_screen_get_main_dev(struct xwl_screen *xwl_screen) - - static Bool - xwl_get_formats(struct xwl_format *format_array, int format_array_len, -- uint32_t *num_formats, uint32_t **formats) -+ CARD32 *num_formats, CARD32 **formats) - { - *num_formats = 0; - *formats = NULL; -@@ -233,9 +233,9 @@ xwl_get_formats(struct xwl_format *format_array, int format_array_len, - - static Bool - xwl_get_formats_for_device(struct xwl_dmabuf_feedback *xwl_feedback, drmDevice *device, -- uint32_t *num_formats, uint32_t **formats) -+ CARD32 *num_formats, CARD32 **formats) - { -- uint32_t *ret = NULL; -+ CARD32 *ret = NULL; - uint32_t count = 0; - - /* go through all matching sets of tranches for the window's device */ --- -GitLab diff --git a/x11-base/xwayland/files/xwayland-23.3.6-test-Skip-Xwayland-test-early-if-PIGLIT_DIR-XTEST_DI.patch b/x11-base/xwayland/files/xwayland-23.3.6-test-Skip-Xwayland-test-early-if-PIGLIT_DIR-XTEST_DI.patch new file mode 100644 index 000000000000..173daa3c6265 --- /dev/null +++ b/x11-base/xwayland/files/xwayland-23.3.6-test-Skip-Xwayland-test-early-if-PIGLIT_DIR-XTEST_DI.patch @@ -0,0 +1,36 @@ +From d5ef57f1efc967fbc88dfa0f0177be354caf039b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com> +Date: Tue, 26 Sep 2023 17:23:32 +0200 +Subject: [PATCH xserver] test: Skip Xwayland test early if PIGLIT_DIR / + XTEST_DIR isn't set + +No point starting weston and waiting for it to start up in that case. +--- + test/scripts/xwayland-piglit.sh | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/test/scripts/xwayland-piglit.sh b/test/scripts/xwayland-piglit.sh +index 97a1759d9..9d6e54d01 100755 +--- a/test/scripts/xwayland-piglit.sh ++++ b/test/scripts/xwayland-piglit.sh +@@ -1,5 +1,17 @@ + #!/bin/bash -e + ++if test "x$XTEST_DIR" = "x"; then ++ echo "XTEST_DIR must be set to the directory of the xtest repository." ++ # Exit as a "skip" so make check works even without xtest. ++ exit 77 ++fi ++ ++if test "x$PIGLIT_DIR" = "x"; then ++ echo "PIGLIT_DIR must be set to the directory of the piglit repository." ++ # Exit as a "skip" so make check works even without piglit. ++ exit 77 ++fi ++ + # this times out on Travis, because the tests take too long. + if test "x$TRAVIS_BUILD_DIR" != "x"; then + exit 77 +-- +2.43.2 + |