Closed Bug 1643298 Opened 5 years ago Closed 5 years ago

No mozconfig information is outputted after running `mach bootstrap --no-system-changes`

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(firefox79 fixed)

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: xidorn, Assigned: mhentges)

Details

Attachments

(1 file)

I see that the document says:

Once mach bootstrap is complete it will tell you to copy and paste some configuration into your mozconfig file. The mozconfig file can be found in the root of your gecko repo - or create a file called mozconfig if it does not exist. Check that the correct value is associated with the --target argument as this may not correctly match your setup. Copy the file contents from the mach bootstrap output into your file and save in the root directory of your project.

But I see no mozconfig after running it with GeckoView/Firefox for Android chosen.

Note that I do have several other mozconfig files in the directory for desktop configuration, but it shouldn't affect it.

When looking at the code, I found there are several functions named suggest_mobile_android_mozconfig around, but I can find no entry point of these functions.

On my machine I get this output after mach bootstrap:

Paste the lines between the chevrons (>>> and <<<) into your
$topsrcdir/mozconfig file, or create the file if it does not exist:

>>>
# Build GeckoView/Firefox for Android:
ac_add_options --enable-application=mobile/android

# Targeting the following architecture.
# For regular phones, no --target is needed.
# For x86 emulators (and x86 devices, which are uncommon):
# ac_add_options --target=i686
# For newer phones.
# ac_add_options --target=aarch64
# For x86_64 emulators (and x86_64 devices, which are even less common):
# ac_add_options --target=x86_64
<<<

Are you not seeing this?

Flags: needinfo?(xidorn+moz)

I was not seeing that. And I tried it again this morning and it seems to work beyond what I previous see and I can see that it's on its way to this message since it started downloading Android stuff which I didn't see before.

I think this is probably related to --no-system-changes I passed to mach bootstrap yesterday. And I believe I had to pass this because of node version, which Ubuntu has 10.19, but building Firefox requires 10.21, so mach build or so asked me to pass --no-system-changes to work around.

Flags: needinfo?(xidorn+moz)
Summary: No mozconfig information is outputted after running bootstrap with GeckoView/Android chosen → No mozconfig information is outputted after running `mach bootstrap --no-system-changes`

You're right; when no-system-changes is set, we onboard onto a smaller, bespoke codepath that doesn't invoke that code.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Attachment #9155462 - Attachment description: Bug 1643298: |mach bootstrap --no-system-changes| should still deploy mozconfig r?rstewart → Bug 1643298: |mach bootstrap --no-system-changes| should still output mozconfig r?rstewart
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5595d6b0dedd |mach bootstrap --no-system-changes| should still output mozconfig r=rstewart,geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: