From da545b23da80f3d5a1521289e7dfb7fe287cf4fe Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:43:11 +0800 Subject: [PATCH] Fix dbus-run-session command not found issue when install dbus-python (#12009) (#12055) Why I did it Cherry-pick #12009, and fix code conflict. Fix the dbus-pyhon installation failure when building docker-sonic-vs, caused by the command dbus-run-session not found. The command "dbus-run-session" should be the new dependency introduced in dbus-python 1.3.2, the old version 1.2.18 does not have the issue. How I did it Install the dbus debian package which contains the command dbus-run-session. It is not a blocking issue on release branches. The release branches with reproducible build feature can avoid such issue in official builds and PR builds, it only block the version upgrade (trying to upgrade from 1.2.18 to 1.3.2). --- platform/vs/docker-sonic-vs/Dockerfile.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/vs/docker-sonic-vs/Dockerfile.j2 b/platform/vs/docker-sonic-vs/Dockerfile.j2 index 15a4bdd6f6..d4890d908b 100644 --- a/platform/vs/docker-sonic-vs/Dockerfile.j2 +++ b/platform/vs/docker-sonic-vs/Dockerfile.j2 @@ -66,7 +66,8 @@ RUN apt-get install -y net-tools \ gir1.2-glib-2.0 \ libdbus-1-3 \ libgirepository-1.0-1 \ - libsystemd0 + libsystemd0 \ + dbus # Install redis-server {% if CONFIGURED_ARCH == "armhf" %}