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.
This commit is contained in:
Krzesimir Nowak 2021-08-31 14:09:56 +02:00
parent 8ff3d67fcb
commit 4827507851

View File

@ -12,7 +12,10 @@ LICENSE="Apache-2.0"
SLOT="0" SLOT="0"
IUSE="" IUSE=""
RDEPEND="dev-lang/python-oem" RDEPEND="
dev-lang/python-oem
dev-python/distro-oem
"
S="${WORKDIR}/WALinuxAgent-${PV}" S="${WORKDIR}/WALinuxAgent-${PV}"