summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
AgeCommit message (Collapse)Author
2022-02-25virglrenderer: fix CVE-2022-0135 and -0175Joe Slater
CVE-2022-0135 concerns out-of-bounds writes in read_transfer_data(). CVE-2022-0175 concerns using malloc() instead of calloc(). We cherry-pick from master. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 91f7511df79c5c1f93add9f2827a5a266453614e) Modify -0175 patch to apply to hardknott branch. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-01-17xserver-xorg: whitelist two CVEsRoss Burton
CVE-2011-4613 is specific to Debian/Ubuntu. CVE-2020-25697 is a non-trivial attack that may not actually be feasible considering the default behaviour for clients is to exit if the connection is lost. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit afa2e6c31a79f75ff4113d53f618bbb349cd6c17) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-01-05xserver-xorg: update CVE_PRODUCTAnuj Mittal
Some of the CVEs have x_server as the product name. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4d5d63cf8605515bb659b6b732683d7fe6540728) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-29xserver-xorg: fix CVE-2021-4011Kai Kang
Backport patch to fix CVE-2021-4011 for xserver-xorg. CVE: CVE-2021-4011 Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-29xserver-xorg: fix CVE-2021-4010Kai Kang
Backport patch to fix CVE-2021-4010 for xserver-xorg. CVE: CVE-2021-4010 Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-29xserver-xorg: fix CVE-2021-4009Kai Kang
Backport patch to fix CVE-2021-4009 for xserver-xorg. CVE: CVE-2021-4009 Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-29xserver-xorg: fix CVE-2021-4008Kai Kang
Backport patch to fix CVE-2021-4008 for xserver-xorg. CVE: CVE-2021-4008 Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-11-12meta: add explicit branch and protocol to SRC_URIAnuj Mittal
Add branch name explicitly to SRC_URI where it's not defined and switch to using https protocol for Github projects. The change was made using convert-srcuri script in scripts/contrib. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-11-01meta: bump HASHEQUIV_HASH_VERSION after RPM fixAnuj Mittal
ef37fca2f4 fixes issues where PLATFORM tag in RPMs generated n aarch and x86 hosts are different for noarch RPMs. But, we'd still need to bump hashequiv version for allarch recipes to avoid issues because of the RPMs that were incorrectly generated so reproducibility tests don't fail. Also bump PR to force rebuilds. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-11-01waffle: convert to git, website is downAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 28391c20044058e05a1bfdacc31a3e876828fb72) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-20mesa: Ensure megadrivers runtime mappings are deterministicRichard Purdie
Add a sort to ensure the package dependency output is determnistic. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 693e8d0dfe0b475bc233ccc1ad7674d39de346ce) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-20mesa: gallium/dri Make YUV formats we're going to emulate external-onlyPablo Saavedra Rodi?o
This patch fixes the red label issues on video for Raspberry 4-64 Mesa VC4 driver and for iMX53 Adreno A200 GPU using the Mesa Freedreno driver. Issue was originally reported in meta-webkit [1] and later contributed in Mesa [2] where it was already merged in master. [1] https://github.com/Igalia/meta-webkit/issues/185 [2] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13038 Signed-off-by: Pablo Saavedra <psaavedra@igalia.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-04glew: Stop polluting /tmp during buildsRichard Purdie
Currently the glew code creates a new directory in /tmp for each make invocation. This is a bit ugly, don't do that. The patch does break the dist targets but we don't use them. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 3a55194f90e11da5671b24391a4aaf2b86a8e1e6) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-26weston: Re-order gbm destruction at DRM-backend tear downKhem Raj
Fixes an annoying segfault seen on rpi4 when launching weston during boot especially using systemd service or sysvinit script, if weston is launched manually on VT, it works fine. This backport specifically addresses the issue described above. For more details see [1] [1] https://gitlab.freedesktop.org/wayland/weston/-/issues/314 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 74e0249af85782af436791d1339ce864536d2022) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-23pixman: re-disable iwmmxtPatrick Williams
Commit dd9c3d042aa5c2ae0fd80b558ec7e9c793ff36f0 dropped the iwmmxt disable as part of the meson conversion and said: "we can add this back again if it fails." It does. | cc1: warning: switch '-mcpu=arm1176jz-s' conflicts with switch '-march=iwmmxt2' | FAILED: pixman/libpixman-1.so.0.40.0 | lto1: fatal error: target specific builtin not available | compilation terminated. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia1278d18543493a3f9eace6c2dd2f84701b9c2b1 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit afa713033a7fc9b7c4ac3d703ea9218b4d775def) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-07-31glew: fix Makefile raceRoss Burton
Fix a Makefile race resulting in the target creating a directory being executed after the target to write into that directory. [ YOCTO #14485 ] Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e90c1d3b80e35fb685d4b321972743771eb2c2c0) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-07-14xserver-xorg: Fix builds without glxWadim Egorov
Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-06-18libx11: fix CVE-2021-31535Kai Kang
Backport patch to fix CVE-2021-31535 of libx11. Adjust indentation as well. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-22builder: whitelist CVE-2008-4178 (a different builder)Ross Burton
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-05-06libjpeg-turbo: Use --reproducible option for nasmKhem Raj
This ensures that nasm version and timestamps do but appear in build outputs Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2f69c00c4bc1de6cd518fd78f67ff3ca863392f3) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-06xserver-xorg: fix CVE-2021-3472Stefan Ghinea
Insufficient checks on the lengths of the XInput extension ChangeFeedbackControl request can lead to out of bounds memory accesses in the X server. References: https://nvd.nist.gov/vuln/detail/CVE-2021-3472 Upstream patches: https://gitlab.freedesktop.org/xorg/xserver/-/commit/7aaf54a1884f71dc363f0b884e57bcb67407a6cd Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6fec5fea942ce88e33e5cf4c2102d69ce25e7180) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-06mesa: upgrade 21.0.2 -> 21.0.3wangmy
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a89ed8ce30a5830a0ac90aa633ec466b4e3a0ba1) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-26weston: fix build failure due to race conditionChen Qi
The wayland.c actually include 'xdg-shell-client-protocol.h' instead of the server one, so fix it. Otherwise, it's possible to get build failure due to race condition. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit bd2a9a4d82f66f1ff414c392bcf234d8dbd5e553) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-23cairo: fix CVE-2020-35492Changqing Li
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-23libxshmfence: Build fixes for riscv32Mingli Yu
NR_futex is not defined by newer architectures e.g. riscv32 as they only have 64bit variant of time_t. Glibc defines SYS_futex interface based on __NR_futex, since this is used in applications, such applications start to fail to build for these newer architectures. Define a fallback to alias __NR_futex to __NR_futex_time64 to make SYS_futex keep working. Reference: https://git.openembedded.org/openembedded-core/commit/?id=7a218adf9990f5e18d0b6a33eb34091969f979c7 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 81599bf32135187b34726d41e9f619d22ca1bdd1) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-23glslang: strip whitespace in pkgconfig fileRoss Burton
Whilst pkg-config is fine with .pc files containing leading whitespace, pkgconf is less forgiving. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 14bfe5f15f78c1bc049868633fd6fa19feb5a70c) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-23pango: re-enable ptestSaul Wold
The run-ptest script got accidently dropped from the SRC_URI during a past update and ptest patch. Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4479f810c1a3ab2badf4f9610c309bc0e23e2a5f) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-23mesa: upgrade 21.0.1 -> 21.0.2wangmy
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 58ad359da1b05820ea3dc4ae3f789ccb8991fc32) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-05libxcb: use PN for naming dynamic packagesMatt Madison
so an explicit runtime dependency on one of the library packages doesn't generate a message about libxcb and libxcb-native both being providers. Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa: enable dri in native/nativesdk through gallium driversAlexander Kanavin
Previously, dri was enabled via a token dri driver (swrast, then nouveau). Upstream is discussing removing dri drivers altogether (they're becoming difficult to support and only needed for obsolete x86 hardware), so let's prepare for that happening in the future: https://lists.freedesktop.org/archives/mesa-dev/2021-March/224984.html Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa: gallium option requires libdrmAlexander Kanavin
Previously it was pulled in via dri option, and there was no configuration where gallium was enabled and dri was not. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa: update 21.0.0 -> 21.0.1Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa-gl: Use swrast gallium driverKhem Raj
Fixes: ../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau" with any driver enabled in DRIDRIVERS, do_configure fails with: ../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system even after enabling gallium and wayland PACKAGECONFIGs, move DRIDRIVERS_append* from mesa.inc to mesa recipe. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20packagegroup-core-weston.bb: add pam to REQUIRED_DISTRO_FEATURESMartin Jansa
* weston, weston-init, weston-examples require pam * fixes: ERROR: Nothing RPROVIDES 'weston-init' (but meta/recipes-graphics/packagegroups/packagegroup-core-weston.bb RDEPENDS on or otherwise requires it) weston-init was skipped: missing required distro feature 'pam' (not in DISTRO_FEATURES) NOTE: Runtime target 'weston-init' is unbuildable, removing... Missing or unbuildable dependency chain was: ['weston-init'] ERROR: Nothing RPROVIDES 'packagegroup-core-weston' (but meta/recipes-graphics/packagegroups/packagegroup-core-weston.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'packagegroup-core-weston' NOTE: Runtime target 'packagegroup-core-weston' is unbuildable, removing... Missing or unbuildable dependency chain was: ['packagegroup-core-weston'] ERROR: Nothing RPROVIDES 'weston-examples' (but meta/recipes-graphics/packagegroups/packagegroup-core-weston.bb RDEPENDS on or otherwise requires it) weston RPROVIDES weston-examples but was skipped: missing required distro feature 'pam' (not in DISTRO_FEATURES) NOTE: Runtime target 'weston-examples' is unbuildable, removing... Missing or unbuildable dependency chain was: ['weston-examples'] ERROR: Nothing RPROVIDES 'weston' (but meta/recipes-graphics/packagegroups/packagegroup-core-weston.bb RDEPENDS on or otherwise requires it) weston was skipped: missing required distro feature 'pam' (not in DISTRO_FEATURES) NOTE: Runtime target 'weston' is unbuildable, removing... Missing or unbuildable dependency chain was: ['weston'] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20mesa: update 20.3.4 -> 21.0.0Alexander Kanavin
0001-anv-fix-a-build-race-between-generating-a-header-and.patch merged upstream. osmesa is now a simple boolean option. Swrast has been removed from dri drivers, so as we need at least one driver to enable dri in native/nativesdk, replace it with nouveau (which does not take long to build). Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20spirv-tools: upgrade 2020.6 -> 2020.7Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20spirv-headers: update to latest revisionAlexander Kanavin
This is required by latest release of spirv-tools. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20spirv-tools: cleanup an old patch that is not used anymoreJose Quaresma
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20spirv-tools: python3 is need not only for the testsJose Quaresma
commit acf109c1a1a30907f7401f6225fcbfb5f2e39a58 remove the python3native when disabling the tests but python is needed not only for the tests, so re add it. Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20vulkan-tools: upgrade 1.2.162.1 -> 1.2.170.0Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20vulkan-loader: upgrade 1.2.162.0 -> 1.2.170.0Wang Mingyu
0001-Rename-LIB_SUFFIX-to-VULKAN_LIB_SUFFIX.patch removed since it is included in 1.2.170.0 Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20vulkan-headers: upgrade 1.2.162.0 -> 1.2.170.0Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20weston-init: Set $HOME variable for SysVinit managerAdrian
SysVinit sets by default the $HOME directory to "/" for the init scripts. It's picked then by the weston-launcher and make weston-terminal to have wrongly set $HOME environment variable for the root user. Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20libsdl2: disable shared memory for native buildsAwais Belal
libsdl2 currently does not handle the failures that occur due to shared memory in case of remote hosts where it should ideally switch to socket based writing when a failure is seen with shared memory. Consider a scenario where a qemu build is done with graphics support on a build machine and then accessed remotely using ssh. If the remote host's X presents MIT-SHM as an extension, launching qemu fails with runqemu - ERROR - Failed to run qemu: X Error: BadValue Request Major code 130 (MIT-SHM) Request Minor code 3 () This is most often seen when the remote machine doing ssh is a Ubuntu 20.04. The libsdl2 native are mainly used for qemu at this time so it is a major usecase. A report of such a failure was also presented at https://lists.yoctoproject.org/g/poky/topic/78854857 Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-11spirv-tools: Replace strncpy with memcpyKhem Raj
Fixes warnings produced with gcc 11 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-11meta/recipes-graphics: Add HOMEPAGE / DESCRIPTIONDorinda
Added missing HOMEPAGE and DESCRIPTION found using the test command `oe-selftest -r distrodata.Distrodata.test_missing_homepg` [YOCTO #13471] Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-06shaderc: upgrade 2020.4 -> 2020.5Wang Mingyu
0003-cmake-add-option-to-skip-build-the-examples.patch removed since it is included in 2020.5 Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-06core-image.bbclass: add a weston IMAGE_FEATURE, similar to x11-baseAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-06libinput: less parallism to increase chances the test suite worksRoss Burton
Discussion with the libinput maintainer has confirmed that many of the libinput test cases need to run on a relatively unloaded system, because input handling is by definition time-sensitive and any event mismatches are considered a failure to avoid broken code hiding. We can't expect libinput to run on an otherside unloaded machine because the autobuilder ptests execute in a qemu at the same time as builds can be happening. We can however reduce the amount of parallellism happening in the libinput test suite to give it a better chance of succeeding. This may not be enough, but it's worth a go. [ YOCTO #14164 ] Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-02recipes-graphics: Add missing HOMEPAGE and DESCRIPTION for recipes.Meh Mbeh Ida Delphine
Fixes: [YOCTO #13471] Signed-off-by: Ida Delphine <idadelm@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>