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).
This commit is contained in:
xumia 2022-09-26 20:43:11 +08:00 committed by GitHub
parent 95df56b4ed
commit da545b23da
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 \ gir1.2-glib-2.0 \
libdbus-1-3 \ libdbus-1-3 \
libgirepository-1.0-1 \ libgirepository-1.0-1 \
libsystemd0 libsystemd0 \
dbus
# Install redis-server # Install redis-server
{% if CONFIGURED_ARCH == "armhf" %} {% if CONFIGURED_ARCH == "armhf" %}