From a34b97a03bd16161f3eafb43668bf0f71e390d38 Mon Sep 17 00:00:00 2001
From: Pavel Zhukov <pavel.zhukov@huawei.com>
Date: Wed, 24 Nov 2021 09:13:28 +0100
Subject: [PATCH] oniro-linux.conf: Specify preferred version of pyyaml

Homeassistant requires pyyaml == 5.3 while oe layer provides newer
version. Specifying preferred older version to fix the broken
dependencies.

Fixes: https://booting.oniroproject.org/distro/oniro/-/issues/187
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
---
 meta-oniro-core/conf/distro/oniro-linux.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oniro-core/conf/distro/oniro-linux.conf b/meta-oniro-core/conf/distro/oniro-linux.conf
index d5d7724d..b173adfc 100644
--- a/meta-oniro-core/conf/distro/oniro-linux.conf
+++ b/meta-oniro-core/conf/distro/oniro-linux.conf
@@ -111,6 +111,9 @@ PREFERRED_PROVIDER_virtual/kernel_qemuarm64 = "linux-oniro"
 PREFERRED_PROVIDER_virtual/kernel_qemux86 = "linux-oniro"
 PREFERRED_PROVIDER_virtual/kernel_qemux86-64 = "linux-oniro"
 
+# https://booting.oniroproject.org/distro/oniro/-/issues/187
+PREFERRED_VERSION_python3-pyyaml = "5.3"
+
 # Default to enabling serial debug console on RaspberryPi
 ENABLE_UART ?= "1"
 
-- 
GitLab