Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504762 - www-client/firefox-27.0.1 - preferred language not automatically enabled?
Summary: www-client/firefox-27.0.1 - preferred language not automatically enabled?
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 07:19 UTC by nobookcn
Modified: 2017-08-26 17:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobookcn 2014-03-16 07:19:52 UTC
firefox ebuild will download language extension from i686 directory from mozilla ftp server while the arch is amd64/~amd64, with LINGUAS value other than en_US, that cause the following emerge error report:

(((unpack firefox-27.0.1-zh-CN.xpi: file format not recognized. Ignoring.)))

(file format not recognized) because that .xpi is i686 ABI instead of x86-64 ABI.

This bug cause all amd64 firefox installation only got Enligsh language UI, no mater which LINGUAS value you set.

ebuild download URL in emerge-fetch.log is:
ftp://ftp.mozilla.org/pub/firefox/releases//27.0.1/linux-i686/xpi/zh-CN.xpi
but the correct URL should be: 
ftp://ftp.mozilla.org/pub/firefox/releases/27.0.1/linux-x86_64/xpi/zh-CN.xpi
because the arch is amd64.
==============CUT===============
>>> Emerging (1 of 1) www-client/firefox-27.0.1
 * firefox-27.0.1-zh-CN.xpi SHA256 SHA512 WHIRLPOOL size ;-) ...                [ ok ]
 * firefox-26.0-patches-0.3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...         [ ok ]
 * firefox-27.0.1.source.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...           [ ok ]
 *
 * You are enabling official branding. You may not redistribute this build
 * to any users on your network or the internet. Doing so puts yourself into
 * a legal problem with Mozilla Foundation
 * You can disable it by emerging firefox _with_ the bindist USE-flag
 * Checking for at least 4 gibibytes disk space at "/tmp/portage/www-client/firefox-27.0.1/temp" ...                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking firefox-27.0.1-zh-CN.xpi to /tmp/portage/www-client/firefox-27.0.1/work
unpack firefox-27.0.1-zh-CN.xpi: file format not recognized. Ignoring.
>>> Unpacking firefox-26.0-patches-0.3.tar.xz to /tmp/portage/www-client/firefox-27.0.1/work
>>> Unpacking firefox-27.0.1.source.tar.bz2 to /tmp/portage/www-client/firefox-27.0.1/work
 * Unpacking firefox-27.0.1-zh-CN.xpi to /tmp/portage/www-client/firefox-27.0.1/work
 * Selected language packs (first will be default): zh-CN
>>> Source unpacked in /tmp/portage/www-client/firefox-27.0.1/work
>>> Preparing source in /tmp/portage/www-client/firefox-27.0.1/work/mozilla-release ...
 * Applying various patches (bugfixes/updates) ...
==============CUT===============

==============CUT===============
 # tail -f /var/log/emerge-fetch.log
--2014-03-16 15:14:51--  ftp://ftp.mozilla.org/pub/firefox/releases//27.0.1/linux-i686/xpi/zh-CN.xpi
  (try: 2) => ‘/usr/portage/distfiles/firefox-27.0.1-zh-CN.xpi’
Connecting to ftp.mozilla.org|63.245.215.46|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/firefox/releases//27.0.1/linux-i686/xpi ... done.
==> SIZE zh-CN.xpi ... 374671
==> PASV ... done.    ==> RETR zh-CN.xpi ...
==============CUT===============
Comment 1 nobookcn 2014-03-16 07:28:33 UTC
And the ftp protocal download still got problem while downloading if user behind a firewall.
URL
ftp://ftp.mozilla.org/pub/firefox/releases//27.0.1/linux-i686/xpi/zh-CN.xpi
should change to:
http://ftp.mozilla.org/pub/firefox/releases//27.0.1/linux-i686/xpi/zh-CN.xpi
and everyone can download that resource without problem.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-16 16:03:39 UTC
(In reply to nobookcn from comment #0)
> firefox ebuild will download language extension from i686 directory from
> mozilla ftp server while the arch is amd64/~amd64, with LINGUAS value other
> than en_US, that cause the following emerge error report:
> 
> (((unpack firefox-27.0.1-zh-CN.xpi: file format not recognized. Ignoring.)))

That message is harmless.

> (file format not recognized) because that .xpi is i686 ABI instead of x86-64
> ABI.

No, it isn't recognised by portage's unpack function, and that has nothing to do with the architecture. It's a ZIP file containing a directory structure with architecture independent XML files. The download location is immaterial.

> This bug cause all amd64 firefox installation only got Enligsh language UI,
> no mater which LINGUAS value you set.

To select a new language, select [Tools] => [Add-ons]. This opens the [Add-ons Manager]. Click on the [Languages] tab and select [Enable] next to the language pack you want to enable, if it isn't enabled already.

If that's all as it should be, then you should be able to set the UI language in your window manager (or by exporting LANG=zh_CN in the environment) and Firefox should pick it up automatically.

If that does not work, then please attach the entire build log to this bug report.
Comment 3 Jory A. Pratt gentoo-dev 2017-08-26 17:56:14 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team