Closed
Bug 758849
Opened 12 years ago
Closed 12 years ago
UPower isnt linux-only
Categories
(Core :: Hardware Abstraction Layer (HAL), defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: gaston, Assigned: gaston)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
mounir
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mounir
:
checkin+
|
Details | Diff | Splinter Review |
While looking for other things under hal/ i noticed the following chunk in hal?Makefile.in, within ifeq (Linux,$(OS_TARGET))
79679: ifdef MOZ_ENABLE_DBUS
79679: CPPSRCS += UPowerClient.cpp
92976: else
92976: CPPSRCS += FallbackBattery.cpp
79679: endif
That's a bit wrong, since upower is not linux only. It also builds and runs fine on OpenBSD and FreeBSD (also probably builds on NetBSD but there's no dedicated backend yet, see http://cgit.freedesktop.org/upower/tree/src). I dont know if MOZ_ENABLE_DBUS can be set on osx (i guess so), so maybe the same ifdef MOZ_ENABLE_DBUS -then-enable-upower chunk should be added to the last else chunk, so that poor other platforms get a chance to talk to upower too ?
It doesnt seem to me that this battery api is used for anything else on desktop firefox, but who knows, in the future it might ?
Assignee | ||
Comment 1•12 years ago
|
||
That patch correctly builds UPowerClient.o here if dbus is enabled.
Assignee: nobody → landry
Attachment #627453 -
Flags: review?(mounir)
Comment 2•12 years ago
|
||
Landry, what about just adding a line for BSD's instead?
Assignee | ||
Comment 3•12 years ago
|
||
Something like that ?
Attachment #627453 -
Attachment is obsolete: true
Attachment #627453 -
Flags: review?(mounir)
Attachment #627656 -
Flags: review?(mounir)
Comment 4•12 years ago
|
||
Comment on attachment 627656 [details] [diff] [review]
Buld upowerclient on BSDs too if dbus is enabled
Review of attachment 627656 [details] [diff] [review]:
-----------------------------------------------------------------
r=me but avoid the change at the end if unnecessary.
::: hal/Makefile.in
@@ +135,5 @@
> ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
> # So that we can call nsScreenManagerGonk::GetConfiguration().
> LOCAL_INCLUDES += -I$(topsrcdir)/widget/gonk
> LOCAL_INCLUDES += -I$(topsrcdir)/widget/xpwidgets
> +endif
What are you changing here?
Attachment #627656 -
Flags: review?(mounir) → review+
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Mounir Lamouri (:volkmar) (:mounir) from comment #4)
> Comment on attachment 627656 [details] [diff] [review]
> Buld upowerclient on BSDs too if dbus is enabled
>
> Review of attachment 627656 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me but avoid the change at the end if unnecessary.
>
> ::: hal/Makefile.in
> @@ +135,5 @@
> > ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
> > # So that we can call nsScreenManagerGonk::GetConfiguration().
> > LOCAL_INCLUDES += -I$(topsrcdir)/widget/gonk
> > LOCAL_INCLUDES += -I$(topsrcdir)/widget/xpwidgets
> > +endif
>
> What are you changing here?
Hmm. i guess that's mercurial/vim that added that, dunno if there's a policy wrt newline at EOF in the codebase..
-endif
\ No newline at end of file
+endif
Assignee | ||
Comment 6•12 years ago
|
||
New patch without that chunk, setting checkin-needed.
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Updated•12 years ago
|
Updated•12 years ago
|
Attachment #627881 -
Flags: checkin+
Assignee | ||
Comment 7•12 years ago
|
||
Status: ASSIGNED → NEW
Target Milestone: mozilla15 → ---
Updated•12 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla15
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•