Closed Bug 1651641 Opened 4 years ago Closed 4 years ago

servo/components/style/build.rs references PYTHON3 environment variable which is not necessarily set

Categories

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

68 Branch
defect

Tracking

(firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: l.majewski, Assigned: rstewart)

Details

(Keywords: in-triage)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Build firefox 68esr with meta-browser layer in Yocto thud

Actual results:

Error as described in this issue:
https://github.com/OSSystems/meta-browser/issues/338

Expected results:

Firefox shall build without any workarounds needed

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → General
Product: Firefox → Firefox Build System

The actual code in question has changed (it now references Python 3), but the underlying problem remains the same, that a typical build of Firefox doesn't plumb the configured python down to the Cargo build, where this environment variable is read.

Assignee: nobody → rstewart
Severity: -- → S3
Keywords: in-triage
Priority: -- → P3
Summary: Build failure with cargo python2.7 dependency on firefox 68esr → servo/components/style/build.rs references PYTHON3 environment variable which is not necessarily set

The previous logic would check the value of the PYTHON3 environment variable, which is not set by the Firefox build system, so this build script tends to just use the python3 at the tip of the PATH, regardless of which value you've configured for it. Instead, it should prefer to read from the OBJDIR if one is present.

Pushed by rstewart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cbfe3335cfe5 `servo/components/style/build.rs` reads `PYTHON3` configuration value in addition to environment variable r=glandium
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: