Closed Bug 1728536 Opened 4 years ago Closed 4 years ago

--disable-maintenance-service fails to build

Categories

(Toolkit :: Application Update, defect)

All
Windows
defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- fixed
firefox93 --- wontfix
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- fixed

People

(Reporter: alexboy94, Assigned: bytesized)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidedi-ope])

Attachments

(2 files, 2 obsolete files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0 Waterfox/91.0a1

Steps to reproduce:

Build mozilla-central with mingw-w64 or standard toolchain targetting Windows and ac_add_options --disable-maintenance-service.

Actual results:

toolkit/mozapps/update/updater/updater.cpp:3436:13: error: use of undeclared identifier 'IsSecureUpdateStatusSucceeded'
 8:21.41         if (IsSecureUpdateStatusSucceeded(updateStatusSucceeded) &&
 8:21.41             ^
 8:21.41 1 error generated.

Expected results:

Build should complete.

It appears that IsSecureUpdateStatusSucceeded is only declared when MOZ_MAINTENANCE_SERVICE is, here.

in Bug 1658711, the guards wrapping the if block in MOZ_MAINTENANCE_SERVICE were removed.

OS: Unspecified → Windows
Regressed by: 1658711
Hardware: Unspecified → All
Has Regression Range: --- → yes

The Bugbug bot thinks this bug should belong to the 'Toolkit::Application Update' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Application Update

Alex: I'd review a patch to wrap the block in MOZ_MAINTENANCE_SERVICE, if you want to supply one.

Sorry, missed this! Yes, not a problem at all. Currently on holiday but will submit a patch when I’m back 👍

Setting S4 severity because this is a build problem that does not affect any of our standard releases.

Severity: -- → S4
Attached patch Patch to add correct guards (obsolete) — Splinter Review

(In reply to Nick Alexander :nalexander [he/him] from comment #2)

Alex: I'd review a patch to wrap the block in MOZ_MAINTENANCE_SERVICE, if you want to supply one.

Here's the patch I've used (and haven't noticed any issues with so far).

Flags: needinfo?(nalexander)
Assignee: nobody → nalexander
Attachment #9240546 - Attachment is obsolete: true
Flags: needinfo?(nalexander)

Sorry for the long delay. I've submitted a modified version of this patch to Phab for review.

Set release status flags based on info from the regressing bug 1658711

Whiteboard: [fidedi-ope]

I finally have a moment to take a look at this. It looks to me like the correct thing to do is to make the relevant functions available without MOZ_MAINTENANCE_SERVICE being defined rather than to remove the code using those functions. I should have a patch up shortly.

Attachment #9243090 - Attachment is obsolete: true

Building without support for the maintenance service currently does not work because the definitions of EnvHasValue and IsSecureUpdateStatusSucceeded are ifdef'ed out despite being used. This patch fixes this by including those functions, even if compiling without support for the maintenance service.

Pushed by ksteuber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/28941c9d2525 Fix --disable-maintenance-service build capability r=nalexander,application-update-reviewers
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

Is that something we would benefit from uplifting to beta or can I mark this bug as wontfix for 95?

Flags: needinfo?(nalexander)

(In reply to Pascal Chevrel:pascalc from comment #13)

Is that something we would benefit from uplifting to beta or can I mark this bug as wontfix for 95?

This is fallout from a change in Firefox 81, so I see no reason to uplift. Thanks for checking!

Flags: needinfo?(nalexander)

Would it be possible to have this pulled in to ESR91 as well?

(In reply to Alex Kontos from comment #15)

Would it be possible to have this pulled in to ESR91 as well?

ESR91 makes more sense than uplift to Beta 94, IMO.

(In reply to Alex Kontos from comment #15)

Would it be possible to have this pulled in to ESR91 as well?

Hmm. I've spent a little time thinking about this. The user impact seems low to non-existent, depending on how you quantify it. But the risk is also low to non-existent. I think it's reasonable to uplift to ESR.

Assignee: nalexander → ksteuber

Comment on attachment 9248111 [details]
Bug 1728536 - Fix --disable-maintenance-service build capability r=nalexander!

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This patch really doesn't affect Firefox users, because we don't build Firefox with this build flag. But not having the patch does make it more difficult for Firefox forks that use this build flag to incorporate upstream changes and build successfully.
  • User impact if declined: Build bustage in certain non-default configurations.
  • Fix Landed on Version: 96
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch strictly changes #ifdefs that determine what functions ought to be defined. The changes should only really be relevant when the --disable-maintenance-service flag is specified. So this patch should have no effect on official Mozilla builds, which do not use that flag.
  • String or UUID changes made by this patch: None
Attachment #9248111 - Flags: approval-mozilla-esr91?

Comment on attachment 9248111 [details]
Bug 1728536 - Fix --disable-maintenance-service build capability r=nalexander!

NPOTB for Firefox, makes life easier for downstream distros. Approved for 91.4esr.

Attachment #9248111 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+

Comment on attachment 9248111 [details]
Bug 1728536 - Fix --disable-maintenance-service build capability r=nalexander!

Actually this needs rebasing for ESR91.

Flags: needinfo?(ksteuber)
Attachment #9248111 - Flags: approval-mozilla-esr91+
Attached patch esr91.patchSplinter Review

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This patch really doesn't affect Firefox users, because we don't build Firefox with this build flag. But not having the patch does make it more difficult for Firefox forks that use this build flag to incorporate upstream changes and build successfully.
  • User impact if declined: Build bustage in certain non-default configurations.
  • Fix Landed on Version: 96
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch strictly changes #ifdefs that determine what functions ought to be defined. The changes should only really be relevant when the --disable-maintenance-service flag is specified. So this patch should have no effect on official Mozilla builds, which do not use that flag.
  • String or UUID changes made by this patch: None
Flags: needinfo?(ksteuber)
Attachment #9250309 - Flags: approval-mozilla-esr91?

Comment on attachment 9250309 [details] [diff] [review]
esr91.patch

Approved for 91.4esr.

Attachment #9250309 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: