Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336412 - www-client/firefox-bin-3.6.9 fails to install if LINGUAS is set
Summary: www-client/firefox-bin-3.6.9 fails to install if LINGUAS is set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 05:25 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2010-09-08 08:29 UTC (History)
2 users (show)

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


Attachments
ebuild that correctly installs language pack xpis (firefox-bin-3.6.9.ebuild,5.06 KB, text/plain)
2010-09-08 05:29 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-09-08 05:25:34 UTC
If LINGUAS is set to anything other than "en", firefox-bin-3.6.9 fails to install because the ebuild uses an incorrect xpi directory:

# LINGUAS="en ru" emerge firefox-bin
[...]
>>> Install firefox-bin-3.6.9 into /var/tmp/portage/www-client/firefox-bin-3.6.9/image/ category www-client
/var/tmp/portage/www-client/firefox-bin-3.6.9/temp/environment: line 3172: cd: /var/tmp/portage/www-client/firefox-bin-3.6.9/work/firefox-3.6.9-ru.xpi: No such file or directory
sed: can't read /var/tmp/portage/www-client/firefox-bin-3.6.9/work/firefox-3.6.9-ru.xpi/install.rdf: No such file or directory
 * ERROR: www-client/firefox-bin-3.6.9 failed:
 *   failed to determine extension id
 * 

The solution is to change line 123 in the ebuild from
		[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}.xpi"
to
		[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}"
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-09-08 05:29:05 UTC
Created attachment 246418 [details]
ebuild that correctly installs language pack xpis

I'm attaching an ebuild that incorporates the above fix to correctly install language pack xpis.
Comment 2 Satoshi Hayazaki 2010-09-08 08:02:32 UTC
*** Bug 336415 has been marked as a duplicate of this bug. ***
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-09-08 08:03:45 UTC
This was already fixed. Please re-sync your portage-tree and try again.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-09-08 08:10:47 UTC
Forget my previous post. The dupe is not the same problem and this bug is actually still unfixed...
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-09-08 08:29:16 UTC
+  08 Sep 2010; Lars Wendler <polynomial-c@gentoo.org>
+  firefox-bin-3.6.9.ebuild:
+  Fixed installing the language files. Thanks to Alexandre Rostovtsev for
+  reporting this in bug #336412