configure fails when git for Windows is in PATH ahead of MozillaBuild's msys (/usr/bin/grep: nul: No such file or directory)
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: daleharvey, Assigned: mars)
Details
Attachments
(1 file, 2 obsolete files)
Reporter | ||
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
![]() |
||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
![]() |
Assignee | |
Updated•6 years ago
|
![]() |
Assignee | |
Updated•6 years ago
|
![]() |
Assignee | |
Comment 4•6 years ago
|
||
Autoconf on Windows will use the first sh it detects in $PATH. If the user has
installed other mingw programs and put them in $PATH before the mozilla-build
tools then Autoconf will pick up a foreign tool's copy of sh. When Autoconf
runs our checks with the foreign sh all of our checks fail.
This patch adds a check to the old.configure autoconf tool check to detect
if a shell outside mozilla-build will be picked up before our mozilla-build
shell is. configure fails if it detects a foreign copy of sh.
![]() |
Assignee | |
Comment 5•6 years ago
|
||
Sometimes users modify $PATH on Windows to install other MinGW-packaged
programs, such as Git. If the /bin directory for these other tools comes first
in the MozillaBuild shell $PATH then our Autoconf scripts will pick up the
Unix tools from the foreign MingGW package instead of the tools we package in
/mozilla-build. The foreign tools break and crash mach configure
.
This patch ensures that the /mozilla-build directory always comes first in
$PATH when calling Autoconf during mach configure
.
Updated•6 years ago
|
![]() |
Assignee | |
Comment 6•6 years ago
|
||
Detect if Unix utilities on win32 are being picked up from a foreign
installation of MinGW, such as the tools packaged with Git for Windows.
If autoconf dies during ./mach configure
and foreign tools are found
in $PATH then warn the user that their $PATH may need to change to fix
the problem.
Updated•6 years ago
|
Comment 8•6 years ago
|
||
Backed out changeset 7dcc2fa474a8 (bug 1448349) for causing win2012 bustages
push that caused the backout: https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel%2Crunnable&revision=7dcc2fa474a86bc2064b8ffa13e35f3ee7259344
backout: https://hg.mozilla.org/integration/autoland/rev/0f73b8cd0915bab32ed09d7c4c79477141e71469
Comment 9•6 years ago
|
||
My guess is the failure was due to the @imports('os')
, which changed the meaning of many of the os.foo
things in the function. Try @imports(_from='os', _import='environ')
![]() |
Assignee | |
Comment 10•6 years ago
|
||
My tests were passing locally and in Try, however :tomprince pointed out that I was running artifact builds in both. I was able to reproduce the failure using mach try --no-artifact
.
Comment 11•6 years ago
|
||
![]() |
||
Comment 12•6 years ago
|
||
bugherder |
Description
•