Closed Bug 1801826 Opened 5 days ago Closed 3 days ago

Consider adding <mozillabuild>/msys2/usr/bin to the beginning of PATH automatically

Categories

(Firefox Build System :: General, enhancement, P3)

enhancement

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

When invoking mach from an msys2 set-up outside of mozilla-build, I need to have the following in my mozconfig to avoid a bunch of cygwin errors during configure:

export PATH="/c/mozilla-build/msys2/usr/bin:$PATH"

We even have a warning for when this directory is not in the PATH, but it's not enough for it to be in the PATH, it has to be at the beginning of the path.

https://searchfox.org/mozilla-central/rev/650c19c96529eb28d081062c1ca274bc50ef3635/build/moz.configure/old.configure#207-212

Maybe this could be done automatically?

This makes sure that we find the right tools in the right msys2
environment in case we get called from another msys2 env.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07a9c642a637
Prepend rather than append mozillabuild path. r=ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.