Closed
Bug 1228467
Opened 9 years ago
Closed 9 years ago
Transform "no preprocessing directives" warnings into errors
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox45 fixed)
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(4 files)
9.12 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
2.67 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
990 bytes,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
4.69 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
FWIW, I checked the corresponding files in all locales, and they have no preprocessor directives either (which is unsurprising)
Attachment #8692926 -
Flags: review?(gps)
Assignee | ||
Comment 2•9 years ago
|
||
There is preprocessing directive in the file. Also, the current support for
preprocessing doesn't take into account any DEFINES that would be set in the
corresponding moz.build, which would be quite surprising would someone want
to use preprocessing on that file in the future.
Attachment #8692927 -
Flags: review?(nfroyd)
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #2)
> Created attachment 8692927 [details] [diff] [review]
> Don't preprocess dom/base/UseCounters.conf
>
> There is preprocessing directive in the file. Also, the current support for
^ no
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8692928 -
Flags: review?(gps)
Assignee | ||
Comment 5•9 years ago
|
||
This will undoubtedly break c-c, but it's not really something hard to overcome, see the 3 other patches.
Attachment #8692929 -
Flags: review?(gps)
Comment 6•9 years ago
|
||
Comment on attachment 8692927 [details] [diff] [review]
Don't preprocess dom/base/UseCounters.conf
Review of attachment 8692927 [details] [diff] [review]:
-----------------------------------------------------------------
I think this is OK, given that we usually use prefs rather than defines for DOM features, and we're unlikely to gate use counters (or features!) on particular platforms, which would be the other major reason for #ifdefs, judging from a skim through dom/
Attachment #8692927 -
Flags: review?(nfroyd) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8692926 [details] [diff] [review]
Don't preprocess chrome files without preprocessor directives
Review of attachment 8692926 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/locales/jar.mn
@@ +8,5 @@
> % locale b2g-l10n @AB_CD@ %locale/@AB_CD@/b2g-l10n/
>
> % override chrome://global/locale/aboutCertError.dtd chrome://b2g-l10n/locale/aboutCertError.dtd
> % override chrome://global/locale/appstrings.properties chrome://b2g-l10n/locale/appstrings.properties
> + locale/@AB_CD@/b2g-l10n/aboutCertError.dtd (%chrome/overrides/aboutCertError.dtd)
What if a specific locale contains preprocessing directives? I have a very vague recollection of having to add a '*' somewhere because this occurs in the wild. I guess we won't know until we do repacks in a few weeks/months :/
Attachment #8692926 -
Flags: review?(gps) → review+
Updated•9 years ago
|
Attachment #8692928 -
Flags: review?(gps) → review+
Updated•9 years ago
|
Attachment #8692929 -
Flags: review?(gps) → review+
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #7)
> ::: b2g/locales/jar.mn
> @@ +8,5 @@
> > % locale b2g-l10n @AB_CD@ %locale/@AB_CD@/b2g-l10n/
> >
> > % override chrome://global/locale/aboutCertError.dtd chrome://b2g-l10n/locale/aboutCertError.dtd
> > % override chrome://global/locale/appstrings.properties chrome://b2g-l10n/locale/appstrings.properties
> > + locale/@AB_CD@/b2g-l10n/aboutCertError.dtd (%chrome/overrides/aboutCertError.dtd)
>
> What if a specific locale contains preprocessing directives? I have a very
> vague recollection of having to add a '*' somewhere because this occurs in
> the wild. I guess we won't know until we do repacks in a few weeks/months :/
As mentioned in comment 1, I checked all locales already.
Comment 10•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/235a270a4c2a
https://hg.mozilla.org/mozilla-central/rev/9125a6b6c61d
https://hg.mozilla.org/mozilla-central/rev/18f833a960d3
https://hg.mozilla.org/mozilla-central/rev/778332f8017d
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
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
•