Closed
Bug 980899
Opened 11 years ago
Closed 11 years ago
Master and 1.3 hamachi fail to build; unable to patch dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Tracking
(b2g-v2.2 fixed)
RESOLVED
FIXED
2.1 S5 (26sep)
Tracking | Status | |
---|---|---|
b2g-v2.2 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file, 1 obsolete file)
Trying to build the latest master hamachi, I get a build failure when the build is patching gecko:
Applying: Update callbacks to match bluetooth.h
error: dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp: does not exist in index
Patch failed at 0001 Update callbacks to match bluetooth.h
The copy of the patch that failed is found in:
/Users/kats/zspace/B2G-master/gecko/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
ERROR: Patching of gecko/ failed.
ERROR: B2G PATCHES FAILED TO APPLY
> Build failed! <
This same issue was reported by Sotaro on the dev-b2g newsgroup [1] and Shawn replied that as a workaround "you can delete the patch locally". I would like to apply this workaround except I don't know where to delete the patch from - can somebody please enlighten me?
Also, we should fix this build failure properly. If the patch isn't needed at all then we should remove it; otherwise the patch needs to be updated to reflect the new path to the file it's patching.
[1] https://groups.google.com/forum/#!topic/mozilla.dev.b2g/k_nGuW6dcUI
Assignee | ||
Updated•11 years ago
|
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
Patch path is at device/qcom/b2g_common, as the discussion thread mentioned. device/qcom/b2g_common maintained by caf, i inform owner here.
Hi Greg,
We saw build-break happened because of this patch. Can you help?
Patch:
https://www.codeaurora.org/cgit/quic/lf/b2g/build/tree/patch/all/gecko/Update-callbacks-to-match-bluetooth.h.patch
The patch failed because recently change (file path changed) in bug 972732.
dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp move to dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp
Flags: needinfo?(ggrisco)
Comment 3•11 years ago
|
||
Hi Shawn, I already updated the patch. I think we just have to wait for next push to CAF.
Flags: needinfo?(ggrisco)
When will we see the patch be updated?
Flags: needinfo?(ggrisco)
Assignee | ||
Updated•11 years ago
|
Summary: Master hamachi fails to build; unable to patch dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp → Master and 1.3 hamachi fail to build; unable to patch dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp
Comment 5•11 years ago
|
||
Hi Michael,
As I know that we didn't allow patch system in our build tree no matter they came from ours or partners. Right?
Hi Greg,
May I know the reason CAF applied patch into gecko?
All patches should be got rid of from gecko and looks for the solution then contribute back to upstream.
Thanks.
Flags: needinfo?(mwu)
Comment 6•11 years ago
|
||
There were some proprietary changes in bluetooth.h that were made to support android. These changes break gecko though. We are working to fix this in bluetooth.h but in the meantime thought it best to have this patch.
Comment 7•11 years ago
|
||
(In reply to Marco Chen [:mchen] from comment #5)
> Hi Michael,
>
> As I know that we didn't allow patch system in our build tree no matter they
> came from ours or partners. Right?
>
We don't allow it, but it's not enforced through technical measures.
Greg, would it possible for us to get an env variable we can set to disable the patching mechanism?
Flags: needinfo?(mwu)
Comment 8•11 years ago
|
||
What is the workaround for this issue, mwu did mention something on IRC but my scroll back didnt keep it.
Comment 9•11 years ago
|
||
as a workaround I deleted $B2G/devices/qcom/b2g_common/patches/ and was able to get this building again, I dont require bluetooth so happy to do this
No longer blocks: 976584
Comment 10•11 years ago
|
||
AU_LINUX_GECKO_B2G_KK_3.5.01.04.00.113.041 should have this fix now, could you please try it?
Flags: needinfo?(ggrisco)
Comment 11•11 years ago
|
||
It is device/qcom/b2g_common/patch (not patches) I had to delete.
This break the build. The change should be backed out ASAP.
Assignee | ||
Comment 12•11 years ago
|
||
This problem is even worse now, because it changes your gecko checkout to the b2g_autogen_ephemeral_branch from whatever you set it to, when you build gecko. I just wasted a whole build+run cycle because of this.
Comment 14•11 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #13)
> Created attachment 8395994 [details]
> Possible method of disabling vendorsetup
>
> Can we do this?
I rather not. Instead, I think we may be able to disable running vendorsetup scripts altogether.
Flags: needinfo?(mwu)
See Also: → 1004896
Assignee | ||
Comment 15•11 years ago
|
||
Should I write a patch to remove the vendorsetup code from envsetup.sh? This thing is still causing broken-by-default builds for hamachi.
Flags: needinfo?(mwu)
Comment 16•11 years ago
|
||
Sure, sounds good. I think we can do that for ICS (master branch on platform_build) without any problems.
Flags: needinfo?(mwu)
Assignee | ||
Comment 17•11 years ago
|
||
Attachment #8395994 -
Attachment is obsolete: true
Attachment #8494601 -
Flags: review?(mwu)
Updated•11 years ago
|
Attachment #8494601 -
Flags: review?(mwu) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 18•11 years ago
|
||
Master: https://github.com/mozilla-b2g/platform_build/commit/84923f1940625c47ff4c1fdf01b10fde3b7d909e
Assignee: nobody → bugmail.mozilla
Status: NEW → RESOLVED
Closed: 11 years ago
status-b2g-v2.2:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S5 (26sep)
You need to log in
before you can comment on or make changes to this bug.
Description
•