Closed Bug 1296502 Opened 8 years ago Closed 8 years ago

js-config contains the python representation of a list for NSPR_CFLAGS

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

NSPR_CFLAGS='['-I(...)/obj-x86_64-pc-linux-gnu/dist/include/nspr']'

is what this looks like in js-config. This is a regression from bug 1229541.

The problem is that we're feeding raw substs values to the preprocessor:
https://dxr.mozilla.org/mozilla-central/rev/97a52326b06a07930216ebefa5af333271578904/python/mozbuild/mozbuild/backend/base.py#244

The preprocessor then goes on to convert the values to strings when apply the substitution filter:
https://dxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/preprocessor.py#728
Comment on attachment 8782736 [details]
Bug 1296502 - Serialize lists when preparing a context for the preprocessor in build backends.

https://reviewboard.mozilla.org/r/72784/#review70700
Attachment #8782736 - Flags: review?(gps) → review+
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/c3edbba2eb8a
Serialize lists when preparing a context for the preprocessor in build backends. r=gps
https://hg.mozilla.org/mozilla-central/rev/c3edbba2eb8a
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
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: