Closed Bug 1836718 Opened 2 years ago Closed 2 years ago

Snap build fails to apply native-messaging-portal.patch since conversion of NativeMessaging to ES module

Categories

(Firefox Build System :: Third Party Packaging, defect)

defect

Tracking

(firefox-esr102 unaffected, firefox114 unaffected, firefox115 fixed, firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox114 --- unaffected
firefox115 --- fixed
firefox116 --- fixed

People

(Reporter: ke5trel, Assigned: bandali)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Snap build error:

Applying patch /root/project/patches/native-messaging-portal.patch
...
can't find file to patch at input line 50
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/toolkit/components/extensions/NativeMessaging.jsm
|+++ b/toolkit/components/extensions/NativeMessaging.jsm
--------------------------
No file to patch.  Skipping patch.

https://github.com/canonical/firefox-snap/actions/workflows/nightly-build.yml

Regressed by Bug 1824612.

Component: Release Automation: Snap → Third Party Packaging
Product: Release Engineering → Firefox Build System
Assignee: nobody → lissyx+mozillians

Looks like Amin is already working on this.

Assignee: lissyx+mozillians → bandali

I've been indeed. :) I pushed 9dbf42bce65d4018552fdc10d560ec9f53b457df to nightly, refreshing the patch. It has fixed the nightly build, and after a quick double-check by Alexandre, I'll cherry-pick it to beta as well.

Flags: needinfo?(lissyx+mozillians)
Blocks: 1661935
Flags: needinfo?(lissyx+mozillians)

Gentle reminder that you also need to take over https://phabricator.services.mozilla.com/D140803 and update it

Flags: needinfo?(bandali)

Ack, I've taken over https://phabricator.services.mozilla.com/D140803 per your suggestion, and it is on my todo list.

Flags: needinfo?(bandali)

I see the cherry-pick to beta mentioned in comment 2 was pushed - 0b8b579c22e3032da712ccdc3c2c63ee3579bb6a
:gerard-majax anything else needed here or can this be resolved?

Flags: needinfo?(lissyx+mozillians)

I'll let Amin answer, but I believe we want to close when the updated patch has made it to phab.

Flags: needinfo?(lissyx+mozillians) → needinfo?(bandali)

Indeed. I just pushed to https://phabricator.services.mozilla.com/D140803 rebasing against latest central and changing a call to ChromeUtils.import to ChromeUtils.importESModule.

./mach build and ./mach test toolkit/components/extensions/test/xpcshell/test_ext_native_messaging_portal.js both passed locally on my machine, so I'll go ahead and mark this as resolved.

Tangentially related, I'll later look more closely into the diffs between the patch in Phabricator and the one we carry in firefox-snap.git, but from a quick look, we don't seem to have anything in firefox-snap.git that isn't in Phabricator.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(bandali)
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.