Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox 4 bin ebuild error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Mon Apr 25, 2011 2:08 am    Post subject: Firefox 4 bin ebuild error Reply with quote

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
View user's profile Send private message
luizm929
n00b
n00b


Joined: 26 Apr 2011
Posts: 24
Location: San Diego CA

PostPosted: Wed Apr 27, 2011 1:28 am    Post subject: regenerate locales Reply with quote

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
View user's profile Send private message
amiga23
n00b
n00b


Joined: 01 Sep 2006
Posts: 5

PostPosted: Thu Apr 28, 2011 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
luizm929
n00b
n00b


Joined: 26 Apr 2011
Posts: 24
Location: San Diego CA

PostPosted: Thu Apr 28, 2011 11:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
amiga23
n00b
n00b


Joined: 01 Sep 2006
Posts: 5

PostPosted: Fri Apr 29, 2011 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
dark_knight
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2006
Posts: 112

PostPosted: Fri Apr 29, 2011 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message
silbak04
n00b
n00b


Joined: 01 May 2011
Posts: 9

PostPosted: Tue May 03, 2011 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum