| View previous topic :: View next topic |
| Author |
Message |
jonfr Veteran

Joined: 20 Jul 2003 Posts: 1008 Location: Denmark
|
Posted: Mon Apr 25, 2011 2:08 am Post subject: Firefox 4 bin ebuild error |
|
|
I did try to install firefox-4-bin today and it did give me this error message.
| Code: | >>> Install firefox-bin-4.0 into /var/tmp/portage/www-client/firefox-bin-4.0/image/ category www-client
* Setting default locale to is
sed: can't read /var/tmp/portage/www-client/firefox-bin-4.0/image//opt/firefox/defaults/pref/firefox.js: No such file or directory
sed: can't read /var/tmp/portage/www-client/firefox-bin-4.0/image//opt/firefox/defaults/pref/firefox-l10n.js: No such file or directory
* ERROR: www-client/firefox-bin-4.0 failed (install phase):
* sed failed to change locale
*
* Call stack:
* ebuild.sh, line 56: Called src_install
* environment, line 2402: Called die
* The specific snippet of code:
* sed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" -i "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${MY_PN}.js -i "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${MY_PN}-l10n.js || die "sed failed to change locale";
*
* If you need support, post the output of 'emerge --info =www-client/firefox-bin-4.0',
* the complete build log and the output of 'emerge -pqv =www-client/firefox-bin-4.0'.
* The complete build log is located at '/var/tmp/portage/www-client/firefox-bin-4.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-bin-4.0/temp/environment'.
* S: '/var/tmp/portage/www-client/firefox-bin-4.0/work/firefox'
|
I guess that this is a ebuild bug rather then anything else. |
|
| Back to top |
|
 |
luizm929 n00b

Joined: 26 Apr 2011 Posts: 24 Location: San Diego CA
|
Posted: Wed Apr 27, 2011 1:28 am Post subject: regenerate locales |
|
|
What I would do is regenerate locales.
$locale-gen
but I didnt have that problem and I emerged firefox-bin as well. good luck |
|
| Back to top |
|
 |
amiga23 n00b

Joined: 01 Sep 2006 Posts: 5
|
Posted: Thu Apr 28, 2011 8:21 pm Post subject: |
|
|
locale-gen does not help.
I have the following locales in /etc/locale.gen:
de_DE.UTF-8 UTF-8
hu_HU.UTF-8 UTF-8
~ # echo $LANG
de_DE.utf8
~ #
I have filed a bug:
https://bugs.gentoo.org/show_bug.cgi?id=364777 |
|
| Back to top |
|
 |
luizm929 n00b

Joined: 26 Apr 2011 Posts: 24 Location: San Diego CA
|
Posted: Thu Apr 28, 2011 11:03 pm Post subject: |
|
|
Have you tried re-emergeing glibc ? Locales are regenerated everytime you install glibc, and if glibc is outdated then it might be that whats causing the problem.
I would re-install glibc, then try to emerge firefox-bin.
good luck. |
|
| Back to top |
|
 |
amiga23 n00b

Joined: 01 Sep 2006 Posts: 5
|
Posted: Fri Apr 29, 2011 8:30 am Post subject: |
|
|
Reemerging glibc did also not help.
I keep my system always up to date. And I also use
emerge --depclean
I don't think that it really has to do with the locales.
It is searching for 2 files:
sed: can't read /var/tmp/portage/www-client/firefox-bin-4.0/image//opt/firefox/defaults/pref/firefox.js: No such file or directory
and
sed: can't read /var/tmp/portage/www-client/firefox-bin-4.0/image//opt/firefox/defaults/pref/firefox-l10n.js: No such file or directory
but the folder contains only "channel-prefs.js":
~ # ls /var/tmp/portage/www-client/firefox-bin-4.0/image/opt/firefox/defaults/pref/
channel-prefs.js
~ # |
|
| Back to top |
|
 |
dark_knight Tux's lil' helper


Joined: 22 Apr 2006 Posts: 112
|
Posted: Fri Apr 29, 2011 10:42 am Post subject: |
|
|
See:
https://bugs.gentoo.org/361433
There is a problem with the ebuild. _________________ You can say that you are a true Gentoo-addicted when you type emerge --update --deep --newuse happiness. |
|
| Back to top |
|
 |
silbak04 n00b

Joined: 01 May 2011 Posts: 9
|
Posted: Tue May 03, 2011 4:36 pm Post subject: |
|
|
You need this:
| Code: |
PORTDIR_OVERLAY="/usr/local/portage"
|
in your /etc/make.conf before installing firefox, once that's in there, you can install firefox-bin and you should be okay |
|
| Back to top |
|
 |
|