From 48275078512bca5ff3e2d4b5d2b96cc7377084b5 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 31 Aug 2021 14:09:56 +0200 Subject: [PATCH] app-emulation/wa-linux-agent: Add dependency on dev-python/distro-oem WALinuxAgent falls back to using the `distro` module to figure out the distribution details in case the `get_linux_distribution` function from the builtin `platform` module is not able to do it. With the update of python-oem to python3, the distribution detection broke, because we stopped carrying a patch that implemented fetching the distribution information from `/etc/os-release`. It does not make sense to backport that patch though, because `platform.get_linux_distribution` is deprecated and removed in python 3.7 or 3.8. So when we update python3 to the newer version, we would need to add the `distro` module anyway. Maybe we can drop `distro-oem` module in future, when python-oem will use version 3.10 and WALinuxAgent starts using the newly added functionality in 3.10 to figure out the distribution information. --- .../wa-linux-agent/wa-linux-agent-2.3.1.1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/wa-linux-agent/wa-linux-agent-2.3.1.1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/wa-linux-agent/wa-linux-agent-2.3.1.1.ebuild index 087d7c62f7..d55a4734c2 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/wa-linux-agent/wa-linux-agent-2.3.1.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/wa-linux-agent/wa-linux-agent-2.3.1.1.ebuild @@ -12,7 +12,10 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" -RDEPEND="dev-lang/python-oem" +RDEPEND=" +dev-lang/python-oem +dev-python/distro-oem +" S="${WORKDIR}/WALinuxAgent-${PV}"