Fix dbus-run-session command not found issue when install dbus-python (#12009) (#12054)

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).

How to verify it
This commit is contained in:
xumia 2022-09-26 20:42:51 +08:00 committed by GitHub
parent fc04f74dc9
commit f47872446b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" %}