summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-xserver
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-10 20:39:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-11 17:09:16 +0000
commit6d7d97d787ee9351fe9fd42e21045239bbdae8ff (patch)
treef1274f9bc5715c4721848323e40c8275dc635b9f /meta/recipes-graphics/xorg-xserver
parent5e8410a9541a4ff30e3fb667e3695fad17da1379 (diff)
downloadpoky-6d7d97d787ee9351fe9fd42e21045239bbdae8ff.tar.gz
xserver-xorg: update 1.20.13 -> 21.1.1
libxcvt is a new dependency (thanks Oleksandr!). Include ${libdir}/xorg/modules/input/*.so into the main package (if for someone separate packaging matters, please investigate what they do). Remove options no longer present upstream. Remove patches available upstream; drop a chunk as well. (From OE-Core rev: fe501ae1f6bea73882707c944c4fab5c5657a551) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-xserver')
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg.inc7
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch24
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch34
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch36
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch34
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch50
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.1.bb (renamed from meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.13.bb)6
7 files changed, 7 insertions, 184 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
index e1fc0a06dc..6a5f274046 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
@@ -28,7 +28,7 @@ inherit autotools pkgconfig
28inherit features_check 28inherit features_check
29REQUIRED_DISTRO_FEATURES = "x11" 29REQUIRED_DISTRO_FEATURES = "x11"
30 30
31LIB_DEPS = "pixman libxfont2 xtrans libxau libxext libxdmcp libdrm libxkbfile libpciaccess" 31LIB_DEPS = "pixman libxfont2 xtrans libxau libxext libxdmcp libdrm libxkbfile libpciaccess libxcvt"
32DEPENDS = "xorgproto ${LIB_DEPS} font-util" 32DEPENDS = "xorgproto ${LIB_DEPS} font-util"
33 33
34# Split out some modules and extensions from the main package 34# Split out some modules and extensions from the main package
@@ -78,7 +78,7 @@ RRECOMMENDS:${PN}-xwayland += "${XSERVER_RRECOMMENDS}"
78RDEPENDS:${PN}-xvfb += "xkeyboard-config" 78RDEPENDS:${PN}-xvfb += "xkeyboard-config"
79RDEPENDS:${PN}-module-exa = "${PN} (= ${EXTENDPKGV})" 79RDEPENDS:${PN}-module-exa = "${PN} (= ${EXTENDPKGV})"
80 80
81FILES:${PN} = "${bindir} ${libdir}/X11/Options ${libdir}/X11/Cards ${libdir}/X11/getconfig ${libdir}/X11/etc ${libdir}/modules/*.so ${libdir}/xorg/modules/*.so /etc/X11 ${libdir}/xorg/protocol.txt ${datadir}/X11/xorg.conf.d" 81FILES:${PN} = "${bindir} ${libdir}/X11/Options ${libdir}/X11/Cards ${libdir}/X11/getconfig ${libdir}/X11/etc ${libdir}/modules/*.so ${libdir}/xorg/modules/input/*.so ${libdir}/xorg/modules/*.so /etc/X11 ${libdir}/xorg/protocol.txt ${datadir}/X11/xorg.conf.d"
82FILES:${PN}-dev += "${libdir}/xorg/modules/*.la ${libdir}/xorg/modules/*/*.la" 82FILES:${PN}-dev += "${libdir}/xorg/modules/*.la ${libdir}/xorg/modules/*/*.la"
83FILES:${PN}-doc += "${libdir}/X11/doc ${datadir}/X11/xkb/compiled/README.compiled ${localstatedir}/lib/xkb/README.compiled" 83FILES:${PN}-doc += "${libdir}/X11/doc ${datadir}/X11/xkb/compiled/README.compiled ${localstatedir}/lib/xkb/README.compiled"
84FILES:${PN}-sdl = "${bindir}/Xsdl" 84FILES:${PN}-sdl = "${bindir}/Xsdl"
@@ -109,7 +109,6 @@ EXTRA_OECONF += "--with-fop=no \
109 --with-pic \ 109 --with-pic \
110 --disable-static \ 110 --disable-static \
111 --disable-record \ 111 --disable-record \
112 --disable-dmx \
113 --disable-xnest \ 112 --disable-xnest \
114 --enable-xvfb \ 113 --enable-xvfb \
115 --enable-composite \ 114 --enable-composite \
@@ -118,7 +117,6 @@ EXTRA_OECONF += "--with-fop=no \
118 --sysconfdir=/etc/X11 \ 117 --sysconfdir=/etc/X11 \
119 --localstatedir=/var \ 118 --localstatedir=/var \
120 --with-xkb-output=/var/lib/xkb \ 119 --with-xkb-output=/var/lib/xkb \
121 --with-os-name=Linux \
122" 120"
123 121
124OPENGL_PKGCONFIGS = "dri glx glamor dri3 xshmfence" 122OPENGL_PKGCONFIGS = "dri glx glamor dri3 xshmfence"
@@ -141,7 +139,6 @@ PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-
141PACKAGECONFIG[systemd-logind] = "--enable-systemd-logind=yes,--enable-systemd-logind=no,dbus," 139PACKAGECONFIG[systemd-logind] = "--enable-systemd-logind=yes,--enable-systemd-logind=no,dbus,"
142PACKAGECONFIG[systemd] = "--with-systemd-daemon,--without-systemd-daemon,systemd" 140PACKAGECONFIG[systemd] = "--with-systemd-daemon,--without-systemd-daemon,systemd"
143PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama" 141PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama"
144PACKAGECONFIG[xwayland] = "--enable-xwayland,--disable-xwayland,wayland wayland-native wayland-protocols libepoxy"
145 142
146# Xorg requires a SHA1 implementation, pick one 143# Xorg requires a SHA1 implementation, pick one
147XORG_CRYPTO ??= "openssl" 144XORG_CRYPTO ??= "openssl"
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch
index 4737040675..11d5546537 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch
@@ -1,4 +1,4 @@
1From fc04acfd948ac99d04a5dc08c78f3b13bc0c5c41 Mon Sep 17 00:00:00 2001 1From ce3b8a230a3805c9b557c1f106795675bd034860 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 17 Aug 2020 10:50:51 -0700 3Date: Mon, 17 Aug 2020 10:50:51 -0700
4Subject: [PATCH] Avoid duplicate definitions of IOPortBase 4Subject: [PATCH] Avoid duplicate definitions of IOPortBase
@@ -10,26 +10,13 @@ compiler.h:528: multiple definition of `IOPortBase';
10 10
11Upstream-Status: Pending 11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13
13--- 14---
14 hw/xfree86/common/compiler.h | 2 +-
15 hw/xfree86/os-support/linux/lnx_video.c | 1 + 15 hw/xfree86/os-support/linux/lnx_video.c | 1 +
16 2 files changed, 2 insertions(+), 1 deletion(-) 16 1 file changed, 1 insertion(+)
17 17
18diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
19index 2b2008b..c7d617e 100644
20--- a/hw/xfree86/common/compiler.h
21+++ b/hw/xfree86/common/compiler.h
22@@ -525,7 +525,7 @@ xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
23 #define PORT_SIZE short
24 #endif
25
26-_X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */
27+extern _X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */
28
29 static __inline__ void
30 outb(unsigned PORT_SIZE port, unsigned char val)
31diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c 18diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
32index 04e4509..9dc7316 100644 19index fd83022..1d0d96e 100644
33--- a/hw/xfree86/os-support/linux/lnx_video.c 20--- a/hw/xfree86/os-support/linux/lnx_video.c
34+++ b/hw/xfree86/os-support/linux/lnx_video.c 21+++ b/hw/xfree86/os-support/linux/lnx_video.c
35@@ -78,6 +78,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem) 22@@ -78,6 +78,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem)
@@ -40,6 +27,3 @@ index 04e4509..9dc7316 100644
40 27
41 #if defined(__powerpc__) 28 #if defined(__powerpc__)
42 volatile unsigned char *ioBase = NULL; 29 volatile unsigned char *ioBase = NULL;
43--
442.28.0
45
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch
deleted file mode 100644
index 8b687d612d..0000000000
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From e50c85f4ebf559a3bac4817b41074c43d4691779 Mon Sep 17 00:00:00 2001
2From: Eric Anholt <eric@anholt.net>
3Date: Fri, 26 Oct 2018 17:47:30 -0700
4Subject: [PATCH] Fix segfault on probing a non-PCI platform device on a system
5 with PCI.
6
7Some Broadcom set-top-box boards have PCI busses, but the GPU is still
8probed through DT. We would dereference a null busid here in that
9case.
10
11Signed-off-by: Eric Anholt <eric@anholt.net>
12
13Upstream-Status: Backport [https://github.com/freedesktop/xorg-xserver/commit/e50c85f4e]
14Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
15---
16 hw/xfree86/common/xf86platformBus.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
20index cef47da03..dadbac6c8 100644
21--- a/hw/xfree86/common/xf86platformBus.c
22+++ b/hw/xfree86/common/xf86platformBus.c
23@@ -289,7 +289,7 @@ xf86platformProbe(void)
24 for (i = 0; i < xf86_num_platform_devices; i++) {
25 char *busid = xf86_platform_odev_attributes(i)->busid;
26
27- if (pci && (strncmp(busid, "pci:", 4) == 0)) {
28+ if (pci && busid && (strncmp(busid, "pci:", 4) == 0)) {
29 platform_find_pci_info(&xf86_platform_devices[i], busid);
30 }
31
32--
332.28.0
34
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch
deleted file mode 100644
index c0c242814b..0000000000
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From 8a382c015cd3c69fcfc146ef03dcbf30c77ff207 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 1 Mar 2019 09:47:57 -0800
4Subject: [PATCH] test/xtest: Initialize array with braces
5
6Fixes an error when extra warnings are enabled, this is caught with clang
7
8test/xtest.c:64:23: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
9 WindowRec root = {0};
10 ^
11 {}
121 error generated.
13
14Upstream-Status: Pending
15
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 test/xtest.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/test/xtest.c b/test/xtest.c
22index fc5e433..d7e6620 100644
23--- a/test/xtest.c
24+++ b/test/xtest.c
25@@ -61,7 +61,7 @@ xtest_init_devices(void)
26 {
27 ScreenRec screen = {0};
28 ClientRec server_client = {0};
29- WindowRec root = {0};
30+ WindowRec root = {{0}};
31 WindowOptRec optional = {0};
32
33 /* random stuff that needs initialization */
34--
352.21.0
36
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch
deleted file mode 100644
index 2ef9fa9fe4..0000000000
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1Upstream-Status: Submitted [https://gitlab.freedesktop.org/xorg/xserver/merge_requests/22]
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From 5f65a6246fe752764045dd1e38912f1dccec71e4 Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Thu, 20 Sep 2018 20:12:24 +0100
7Subject: [PATCH] xorg-server.m4: just all cflags instead of just sdkdir
8
9Instead of fetching just the sdkdir variable of xorg-server using pkg-config,
10simply get all of the CFLAGS. Aside from completeness, this helps builds in
11sysroots as pkg-config knows what to do with --cflags but doesn't remap
12arbitrary variables.
13
14Signed-off-by: Ross Burton <ross.burton@intel.com>
15---
16 xorg-server.m4 | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/xorg-server.m4 b/xorg-server.m4
20index 18255b91a..195bda5d8 100644
21--- a/xorg-server.m4
22+++ b/xorg-server.m4
23@@ -31,7 +31,7 @@ dnl
24 AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
25 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
26 SAVE_CFLAGS="$CFLAGS"
27- CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
28+ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
29 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
30 #include "xorg-server.h"
31 #if !defined $1
32--
332.11.0
34
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch
deleted file mode 100644
index be198ece49..0000000000
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/merge_requests/253]
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From ca832598d38ba55a001088b57d73c6d7261dc9a7 Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Thu, 1 Aug 2019 15:24:51 +0100
7Subject: [PATCH] sdksyms.sh: don't embed the build path
8
9This script generates a header that has a comment containing the build path for
10no real reason. As this source can end up deployed on targets in debug packages
11this means there is both potentially sensitive information leakage about the
12build environment, and a source of change for reproducible builds.
13---
14 hw/xfree86/sdksyms.sh | 7 +++++--
15 1 file changed, 5 insertions(+), 2 deletions(-)
16
17diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh
18index 39e33711d..bdf47a71a 100755
19--- a/hw/xfree86/sdksyms.sh
20+++ b/hw/xfree86/sdksyms.sh
21@@ -302,13 +302,16 @@ LC_ALL=C
22 export LC_ALL
23 ${CPP:-cpp} "$@" sdksyms.c > /dev/null || exit $?
24 ${CPP:-cpp} "$@" sdksyms.c | ${AWK:-awk} -v topdir=$topdir '
25+function basename(file) {
26+ sub(".*/", "", file)
27+ return file
28+}
29 BEGIN {
30 sdk = 0;
31 print("/*");
32 print(" * These symbols are referenced to ensure they");
33 print(" * will be available in the X Server binary.");
34 print(" */");
35- printf("/* topdir=%s */\n", topdir);
36 print("_X_HIDDEN void *xorg_symbols[] = {");
37
38 printf("sdksyms.c:") > "sdksyms.dep";
39@@ -337,7 +340,7 @@ BEGIN {
40 # remove quotes
41 gsub(/"/, "", $3);
42 line = $2;
43- header = $3;
44+ header = basename($3);
45 if (! headers[$3]) {
46 printf(" \\\n %s", $3) >> "sdksyms.dep";
47 headers[$3] = 1;
48--
492.20.1
50
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.13.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.1.bb
index 01a54070c7..5793e078ee 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.13.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.1.bb
@@ -1,14 +1,10 @@
1require xserver-xorg.inc 1require xserver-xorg.inc
2 2
3SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \ 3SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \
4 file://pkgconfig.patch \
5 file://0001-test-xtest-Initialize-array-with-braces.patch \
6 file://sdksyms-no-build-path.patch \
7 file://0001-drmmode_display.c-add-missing-mi.h-include.patch \ 4 file://0001-drmmode_display.c-add-missing-mi.h-include.patch \
8 file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \ 5 file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \
9 file://0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch \
10 " 6 "
11SRC_URI[sha256sum] = "40aa4e96a56a81a301f15a9b10e06a22700f12b42d9e0e453c7f11d354386300" 7SRC_URI[sha256sum] = "782e7fef2ca0c7cbe60a937b8bf42dac69c904fb841950fd0363e1c2346ea755"
12 8
13# These extensions are now integrated into the server, so declare the migration 9# These extensions are now integrated into the server, so declare the migration
14# path for in-place upgrades. 10# path for in-place upgrades.