Closed
Bug 948405
Opened 11 years ago
Closed 11 years ago
Define a dummy non-ASCII environment variable to make sure that the build system is sane
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla29
People
(Reporter: emk, Assigned: emk)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
3.18 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
I'm tired of the build system being broken on non-English Windows.
Assignee | ||
Comment 1•11 years ago
|
||
Build fails without a patch from bug 944551 and succeeds with the patch:
https://tbpl.mozilla.org/?tree=Try&rev=f489d35affe8
https://tbpl.mozilla.org/?tree=Try&rev=29c5cad0c10d
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8347689 -
Flags: review?(gps)
Comment 3•11 years ago
|
||
Comment on attachment 8347689 [details] [diff] [review]
patch
Review of attachment 8347689 [details] [diff] [review]:
-----------------------------------------------------------------
::: configure.in
@@ +7676,5 @@
> + dnl Make sure that the build system can handle non-ASCII characters
> + dnl in environment variables to prevent it from breking silently on
> + dnl non-English systems.
> + NONASCII=$'\241\241'
> + AC_SUBST(NONASCII)
Why is this under an if block? You can just put it in the root "scope."
Attachment #8347689 -
Flags: review?(gps) → feedback+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #3)
> > + dnl Make sure that the build system can handle non-ASCII characters
> > + dnl in environment variables to prevent it from breking silently on
> > + dnl non-English systems.
> > + NONASCII=$'\241\241'
> > + AC_SUBST(NONASCII)
>
> Why is this under an if block? You can just put it in the root "scope."
Because I'm not sure it works on non-Windows platforms. I intentionally chose a sequence which is invalid as UTF-8 to make sure that the build system doesn't confuse the Windows ANSI code page with UTF-8.
Assignee | ||
Comment 5•11 years ago
|
||
Also other platforms are unlikely to have non-ASCII environment variables. The offending value was always CL_INCLUDE_PREFIX. So I made the dummy envvar parallel to CL_INCLUDE_PREFIX as much as possible.
Assignee | ||
Comment 6•11 years ago
|
||
Hm, actually it builds on non-Window platforms: https://tbpl.mozilla.org/?tree=Try&rev=3dbde5423996
Attachment #8347689 -
Attachment is obsolete: true
Attachment #8350870 -
Flags: review?(gps)
Comment 7•11 years ago
|
||
Comment on attachment 8350870 [details] [diff] [review]
patch v2
Review of attachment 8350870 [details] [diff] [review]:
-----------------------------------------------------------------
Please drop a comment in config.mk before landing.
Attachment #8350870 -
Flags: review?(gps) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•11 years ago
|
Whiteboard: [qa-]
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•