Closed Bug 1387332 Opened 7 years ago Closed 7 years ago

Remove the code behind ENABLE_INTL_API==no condition

Categories

(Core :: Internationalization, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: zbraniecki, Assigned: zbraniecki)

References

Details

Attachments

(1 file)

With bug 1344625 fixed in 56, we can look into removing all the code that lives in m-c just for the ENABLE_INTL_API==no condition.
Blocks: 866344
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #0)
> With bug 1344625 fixed in 56, we can look into removing all the code that
> lives in m-c just for the ENABLE_INTL_API==no condition.

I'm eager to get this done, but I would suggest we don't actually start removing stuff until we've seen bug 1344625 successfully make it through to Release without problems.
That's fair. We can wait.

My only thought is that the assumption that we can turn it off again is quickly becoming an illusion. People are turning on things in mobile that depend on mozIntl and Intl APIs.

But in case something goes wrong, I guess it's easier to revert it without this patch here, so let's axe it in 58.
Priority: -- → P3
Depends on: 1402048
Depends on: 1402049
Depends on: 1402053
Depends on: 1402234
Depends on: 1402235
Depends on: 1402271
Depends on: 1402273
Depends on: 1402799
Depends on: 1402858
Depends on: 1402859
Depends on: 1402860
Depends on: 1402861
Depends on: 1402862
Before proceeding much further here, could you land a patch to make...
  ac_add_options --without-intl-api
...unrecognized by our build system?

Otherwise that previously-working mozconfig option is just becoming a footgun, guarding a recently-working-but-now-broken build configuration.

If I add it to my mozconfig in current mozilla-central, my build fails with "ERROR PROCESSING MOZBUILD FILE" for netwerk/dns/moz.build , since the mozconfig option successfully prevents ICU from being built, and that causes problems for directories like DNS that now depend on ICU unconditionally as of bug 1402048.  Ideally, our configuration process shouldn't honor --without-intl-api at all anymore, since it is now unsupported I guess.  And then I think it'll error out early in the build process, with a clearer* build error

* (although still slightly inscrutable; see bug 1401255)
Flags: needinfo?(jfkthame)
Yes, I agree we should do this; I'm not sure quite how it should all work, though, given that the JS engine wants to retain the option to build without ICU (and hence without ENABLE_INTL_API) for the sake of embedders, although this won't be used in any Firefox builds. (See bug 1402235.)

Which means, I think, that the option support in icu.m4 needs to stick around for now; we want to block Firefox builds from using it while leaving it available to standalone spidermonkey builds.

:gandalf, can you look into this and maybe get advice from the build-system folk as to how best to handle things?
Flags: needinfo?(jfkthame) → needinfo?(gandalf)
> :gandalf, can you look into this and maybe get advice from the build-system folk as to how best to handle things?

I'm not sure if I understand the question.

I believe we're on the path to remove the mozconfig option `--without-intl-api` and removing ENABLE_INTL_API config flag from all of Mozilla except of SpiderMonkey which will retrain ENABLE_INTL_API and its own build config flag specific for SM.

NI :till to confirm that.
Flags: needinfo?(gandalf) → needinfo?(till)
I guess my question is how to actually achieve this via the configure scripts. Currently, I believe the --with-intl-api option is handled by the icu.m4 file; but that is shared (IIUC) between normal Firefox builds and standalone Spidermonkey ones. In the one case, we want to remove support for the option; but not in the other.

There are probably several possible ways to go about this, but rather than me starting to hack about in there, we should find out how the build peers think it should be handled.
My naive guess is that we should move the `--with-intl-api` to SpiderMonkey specific build script and make it always on when building as part of Gecko/Firefox.
But I'll let :till answer this from their use case perspective :)
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Comment on attachment 8923188 [details]
Bug 1387332 - Remove leftover ENABLE_INTL_API conditions.

https://reviewboard.mozilla.org/r/194350/#review199300
Attachment #8923188 - Flags: review?(jfkthame) → review+
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5879aecaeff1
Remove leftover ENABLE_INTL_API conditions. r=jfkthame
https://hg.mozilla.org/mozilla-central/rev/5879aecaeff1
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Flags: needinfo?(till)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: