Closed Bug 1917090 Opened 1 year ago Closed 1 year ago

EWS: Disable "gethostname" feature in mail-builder (ews_xpcom dependency)

Categories

(Thunderbird :: General, defect)

defect

Tracking

(thunderbird_esr128+ affected, thunderbird131 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
thunderbird_esr128 + affected
thunderbird131 --- fixed

People

(Reporter: rjl, Assigned: rjl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

ews_xpcom -> mail-builder -> gethostname (optional) -> windows-targets 0.48

The issue is with windows-targets depending rather large binary blobs. For version 0.52, Firefox has a workaround to avoid vendoring those dependencies. However, gethostname depends on an older version so they end up getting pulled in by cargo vendor anyway.

ews_xpcom's use of mail-builder doesn't require gethostname, so the idea is to disable the (default) gethostname feature and avoid pulling in the older windows-targets and its dependencies.

Avoids pulling in the binary windows-target dependencies.

Target Milestone: --- → 132 Branch
Blocks: 1917110

Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/9761f3c1173f
Disable "gethostname" feature of mail-builder crate. r=ikey

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9423032 [details]
Bug 1917090 - Disable "gethostname" feature of mail-builder crate. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9423032 - Flags: approval-comm-beta+

Comment on attachment 9423032 [details]
Bug 1917090 - Disable "gethostname" feature of mail-builder crate. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): 1895317
User impact if declined: Zero to none. The gethostname crate code should be getting dropped by the linker since it's never actually called by our code. (ews_xpcom)
Testing completed (on c-c, etc.): nightly, going to beta
Risk to taking this patch (and alternatives if risky):
I'd call this low risk. EWS is disabled by pref in 128, but still built. Even so, the above does still apply.

Attachment #9423032 - Flags: approval-comm-esr128?

Comment on attachment 9423032 [details]
Bug 1917090 - Disable "gethostname" feature of mail-builder crate. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

Attachment #9423032 - Flags: approval-comm-esr128? → approval-comm-esr128+

This does not want to merge into 128 cleanly. I think we need a 128-specific patch.

Comment on attachment 9423032 [details]
Bug 1917090 - Disable "gethostname" feature of mail-builder crate. r=#thunderbird-reviewers

Withdrawing c-esr128 for now.

Attachment #9423032 - Flags: approval-comm-esr128+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: