[go: nahoru, domu]

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

chromium: Add UPower to RDPENDS #502

Merged
merged 1 commit into from
Sep 27, 2021
Merged

chromium: Add UPower to RDPENDS #502

merged 1 commit into from
Sep 27, 2021

Conversation

yifan19
Copy link
@yifan19 yifan19 commented Apr 21, 2021

Chromium uses D-Bus to communicate with UPower.
It uses it to query battery among many things.
see:
services/device/battery/battery_status_manager_linux.cc

Fixes error/warning messages related to UPower:

Failed to call method: org.freedesktop.UPower.GetDisplayDevice
The name org.freedesktop.UPower was not provided by any .service files

Signed-off-by: Yi Fan Yu yifan.yu@windriver.com

@yifan19
Copy link
Author
yifan19 commented Apr 21, 2021

Note: I looked at Gentoo:
upower is not mentioned.
but dbus is mentioned as both DEPENDS and RDEPENDS
https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium/chromium-90.0.4430.72.ebuild#n71

should this be a rrecommends then?

RDEPENDS_${PN} = "bash"
RDEPENDS_${PN} = " \
bash \
upower \
Copy link
Member

Choose a reason for hiding this comment

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

I'd add it using a PACKAGECONFIG so people can choose to add it or not.

Copy link
Author

Choose a reason for hiding this comment

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

ok

Copy link
Collaborator

Choose a reason for hiding this comment

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

@otavio should it really be that optional? If UPower is not present, there's at least one Web API that will not work as expected. Is UPower not commonly shipped in embedded systems/is it too big?

Copy link
Member

Choose a reason for hiding this comment

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

If the application runs without it, it is optional. As suggested below, I think it should be enabled by default.

@otavio otavio requested review from kraj, msisov and rakuco April 28, 2021 13:00
@threexc
Copy link
threexc commented May 27, 2021

Any updates on the review?

@otavio
Copy link
Member
otavio commented Aug 10, 2021

@yifan19 can you address @rakuco comments?

@yifan19 yifan19 force-pushed the upower branch 2 times, most recently from 4973f32 to 8dbe25b Compare September 19, 2021 19:10
Copy link
Collaborator
@rakuco rakuco left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good. I've only made some suggestions to the comments, and after that we're good to go!

meta-chromium/README.md Outdated Show resolved Hide resolved
meta-chromium/README.md Outdated Show resolved Hide resolved
meta-chromium/recipes-browser/chromium/chromium-gn.inc Outdated Show resolved Hide resolved
meta-chromium/recipes-browser/chromium/chromium-gn.inc Outdated Show resolved Hide resolved
meta-chromium/recipes-browser/chromium/chromium-gn.inc Outdated Show resolved Hide resolved
Chromium uses D-Bus to communicate with UPower.
It uses it to query battery status among many things.
see:
    services/device/battery/battery_status_manager_linux.cc

Fixes error/warning messages related to UPower:
```
Failed to call method: org.freedesktop.UPower.GetDisplayDevice
The name org.freedesktop.UPower was not provided by any .service files
```

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Copy link
Collaborator
@rakuco rakuco left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@rakuco rakuco merged commit a2bb287 into OSSystems:master Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants