Closed Bug 1468240 Opened 6 years ago Closed 6 years ago

Thunderbird Dailies l10n busted as of 2018-06-09

Categories

(Thunderbird :: Search, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 62.0

People

(Reporter: jorgk-bmo, Assigned: mkaply)

References

Details

Attachments

(1 file)

Tom told me in a PM that this is due to bug 1437942.

Michael, can you please tell me what we need to to since
https://hg.mozilla.org/mozilla-central/rev/67f15f445506
is huge.
Flags: needinfo?(mozilla)
I tried to write that patch specifically do it wouldn't break Thunderbird. Can I get the build log?
Flags: needinfo?(mozilla)
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=5ee92a30a3f4a0242c238249b1a2ecef4935db37
and then click on any of the red "Nx" and look at the log.

For example:
https://taskcluster-artifacts.net/Jb1wj5BBTPO2iuFNb8C08g/0/public/logs/live_backing.log

There we see:
Error: Missing file: ../../../dist/xpi-stage/locale-be/chrome/be/locale/be/messenger/searchplugins/amazondotcom.xml

And later:
ERROR - failure: repack_locale(be)
So the problem is:

https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/installer/l10n-repack.py

Thunderbird still needs the line:

'chrome/**/searchplugins/*.xml',

in NON_CHROME because the searchplugins are still in the langpacks.

buildconfig is imported into this file.

Is there some way to do a Thunderbird check and add that line to NON_CHROME?
(In reply to Mike Kaply [:mkaply] from comment #3)
> Is there some way to do a Thunderbird check and add that line to NON_CHROME?
Question for Tom?
Flags: needinfo?(mozilla)
From IRC:
23:30:38 - tomprince: jorgk: my inclination is to suggest porting the changes, rather than figuring out how to keep TB working the way it does now.
Basically you need to move all search engines from the locales into the tree.

The build process itself is much simpler.

I'll see if I can do a patch.
(In reply to Mike Kaply [:mkaply] from comment #6)
> Basically you need to move all search engines from the locales into the tree.
Yes, you did, for example:
rename from browser/locales/searchplugins/ebay-au.xml
rename to browser/components/search/searchplugins/ebay-au.xml

Looking in our tree, we don't have mail/locales/searchplugins/, all we have is mail/locales/en-US/searchplugins with a few XML files.
Attached patch First passSplinter Review
Here's my first pass at this change. It's still not building locally, but I think it's my tree.

It moves the plugins into mail/components/search.
Please let me know if you want a try build.
I verified that this patch fixes the build problem.

In addition to this step, all search XML files from the mail directories here:

https://dxr.mozilla.org/l10n-central/search?q=file%3A*.xml&redirect=false

Should be moved into mail/components/search/searchplugins and removed from the l10n tree.

All search engines are now maintained in the main tree instead of langpacks.
Comment on attachment 8985225 [details] [diff] [review]
First pass

(In reply to Mike Kaply [:mkaply] from comment #10)
> I verified that this patch fixes the build problem.
Thanks Mike, I'll get this landed.

> In addition to this step, all search XML files from the mail directories
> here:
> https://dxr.mozilla.org/l10n-central/search?q=file%3A*.xml&redirect=false
> Should be moved into mail/components/search/searchplugins and removed from
> the l10n tree.
That's 216 files. I'll file a follow-up for this.
Flags: needinfo?(mozilla)
Attachment #8985225 - Flags: review+
Blocks: 1468686
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/33551f4516d0
Move searchplugins to mail directory. rs=jorgk DONTBUILD
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Landed with DONTBUILD, I'll check the Daily run in a few hours. I filed bug 1468686 for the follow-up.

BIG THANK YOU again, Mike!!
Target Milestone: --- → Thunderbird 62.0
Wow, that worked \o/ - Thanks again.
Assignee: nobody → mozilla
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: