Closed Bug 1177896 Opened 9 years ago Closed 8 years ago

MOZ_PATH_PROG trusts env overrides

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox42 affected)

RESOLVED WONTFIX
Tracking Status
firefox42 --- affected

People

(Reporter: rillian, Assigned: rillian)

References

Details

Attachments

(1 file)

Testing the rust stuff I noticed that if one sets an absolute path environment override for a variable set by AC_PATH_PROG*, it will trust it without verification. If the override points to an invalid location, configure will succeed, but the build will fail later when the program in invoked.

Since we have a wrapper (MOZ_PATH_PROG*) it might be nice to fail at configure time for faster test turn-around.
NB we may not be able to do this currently; it looks like some integration builds run configure _before_ tooltool. That's incorrect of course, but this patch would break such builds if they rely on stuff installed after configure is run.
I don't think this is worth fixing.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
This will get fixed when we port the Rust bits of configure to moz.configure, since the MOZ_PATH_PROG replacement actually checks these things.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: