Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Fix dbus-run-session command not found issue when install dbus-python #12009

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

xumia
Copy link
Collaborator

@xumia xumia commented Sep 8, 2022

Why I did it

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

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Copy link
Contributor

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -72,7 +72,8 @@ RUN apt-get install -y net-tools \
{%- if ENABLE_ASAN == "y" %}
libasan5 \
{%- endif %}
libsystemd0
libsystemd0 \
dbus
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xumia just one quick question, where to specify the version of dbus for this branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StormLiangMS , you mean for reproducible build right?
We can specify version in release branches, such as 202012, 202205, not in master branch.

@prsunny
Copy link
Contributor

prsunny commented Sep 8, 2022

hi @xumia , can you also raise PRs to 202012/202205?

@xumia
Copy link
Collaborator Author

xumia commented Sep 13, 2022

hi @xumia , can you also raise PRs to 202012/202205?

Has already merged in 202205 branch, no affect 202012.
git diff origin/202012..origin/202106 src/sonic-host-services/setup.py
image

xumia added a commit that referenced this pull request Sep 26, 2022
…#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
xumia added a commit that referenced this pull request Sep 26, 2022
…#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).
xumia added a commit to xumia/sonic-buildimage-1 that referenced this pull request Nov 2, 2022
@mssonicbld
Copy link
Collaborator

@xumia PR conflicts with 202106 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants