Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469898 - www-client/firefox-21.0 version bump
Summary: www-client/firefox-21.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Mozilla Gentoo Team
URL: ftp://ftp.mozilla.org/pub/firefox/rel...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-05-15 00:50 UTC by Gary HUnt
Modified: 2013-05-28 03:37 UTC (History)
10 users (show)

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


Attachments
Fixed ebuild (firefox-bin-21.0.ebuild,4.96 KB, text/plain)
2013-05-15 16:17 UTC, Jan Vansteenkiste
Details
fix_extensions_installation.patch (fix_extensions_installation.patch,899 bytes, patch)
2013-05-27 21:48 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary HUnt 2013-05-15 00:50:34 UTC
bump to Firefox 21.0
Comment 1 Rafał Mużyło 2013-05-15 03:46:15 UTC
Just a little note here: it seems that something got broken regarding localization.
Ebuild based on mozila-overlay produces firefox with general.useragent.locale en-US regardless of locale settings and firefox behaves as if the language pack wasn't installed.
Also, intl.locale.matchOS, which was earlier true by default, is now false.
Comment 2 Rafał Mużyło 2013-05-15 04:45:48 UTC
Note, that installing the language pack as if it were a normal extension makes it work.

Makes me wonder if there would be a way for language packs to be installed by portage without being unpacked - just as user extensions now are (even if that's not that old change).
Comment 3 Jory A. Pratt gentoo-dev 2013-05-15 12:13:51 UTC
(In reply to comment #1)
> Just a little note here: it seems that something got broken regarding
> localization.
> Ebuild based on mozila-overlay produces firefox with
> general.useragent.locale en-US regardless of locale settings and firefox
> behaves as if the language pack wasn't installed.
> Also, intl.locale.matchOS, which was earlier true by default, is now false.

The entire pref file is actually failing to be read, I will look into it tonight.
Comment 4 Jan Vansteenkiste 2013-05-15 16:08:27 UTC
Installation fails here:

>>> Install firefox-bin-21.0 into /var/tmp/portage/www-client/firefox-bin-21.0/image/ category www-client
 * ERROR: www-client/firefox-bin-21.0 failed (install phase):
 *   !!! newins: /var/tmp/portage/www-client/firefox-bin-21.0/work/firefox/chrome/icons/default/default48.png does not exist


Icons seem to have moved here:


WORKDIR/firefox/browser/chrome/icons/default/default48.png
Comment 5 Jan Vansteenkiste 2013-05-15 16:12:45 UTC
(In reply to comment #4)
> Installation fails here:
> 
> >>> Install firefox-bin-21.0 into /var/tmp/portage/www-client/firefox-bin-21.0/image/ category www-client
>  * ERROR: www-client/firefox-bin-21.0 failed (install phase):
>  *   !!! newins:
> /var/tmp/portage/www-client/firefox-bin-21.0/work/firefox/chrome/icons/
> default/default48.png does not exist
> 
> 
> Icons seem to have moved here:
> 
> 
> WORKDIR/firefox/browser/chrome/icons/default/default48.png

With debug enabled this time:

+ newins /var/tmp/portage/www-client/firefox-bin-21.0/work/firefox/browser/chrome/icons/default/../../../icons/mozicon128.png firefox-bin.png
+ newicon /var/tmp/portage/www-client/firefox-bin-21.0/work/firefox/chrome/icons/default/default48.png firefox-bin-icon.png
+ _iconins newicon /var/tmp/portage/www-client/firefox-bin-21.0/work/firefox/chrome/icons/default/default48.png firefox-bin-icon.png
...
Cut some stuff out, seems unrelated
...
+ [[ newicon == newicon ]]
+ newins /var/tmp/portage/www-client/firefox-bin-21.0/work/firefox/chrome/icons/default/default48.png firefox-bin-icon.png
* ERROR
Comment 6 Jan Vansteenkiste 2013-05-15 16:17:07 UTC
Created attachment 348402 [details]
Fixed ebuild

--- firefox-bin-21.0.ebuild.orig	2013-05-15 18:13:59.424866266 +0200
+++ firefox-bin-21.0.ebuild	2013-05-15 18:14:40.950864596 +0200
@@ -87,7 +87,7 @@ src_install() {
 	insinto "/usr/share/icons/hicolor/128x128/apps"
 	newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die
 	# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
-	newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png
+	newicon "${icon_path}/default48.png" ${PN}-icon.png
 	domenu "${FILESDIR}"/${PN}.desktop
 	sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \
 		"${ED}/usr/share/applications/${PN}.desktop" || die
Comment 7 Jory A. Pratt gentoo-dev 2013-05-16 01:35:34 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Just a little note here: it seems that something got broken regarding
> > localization.
> > Ebuild based on mozila-overlay produces firefox with
> > general.useragent.locale en-US regardless of locale settings and firefox
> > behaves as if the language pack wasn't installed.
> > Also, intl.locale.matchOS, which was earlier true by default, is now false.
> 
> The entire pref file is actually failing to be read, I will look into it
> tonight.

If you could update overlay and recompile would be appreciated. Soon as I have your feedback I will get it moved to tree.
Comment 8 Rafał Mużyło 2013-05-16 10:15:28 UTC
Well, if the only change was patch tarball from 0.1 to 0.2, then it both did and didn't help.

intl.locale.matchOS is true by default, just as it should be, but general.useragent.locale also is en-US and that's wrong.

In fact, Add-ons Manager doesn't even show language pack as installed.
Comment 9 Eugene Shalygin 2013-05-16 18:30:48 UTC
firefox-21 from mozilla overlay installs language extensions into /usr/lib/firefox/extensions/, while they shall be in /usr/lib/firefox/browser/extensions/ [1]. This is the reason why Add-on manager does not see them

[1] http://mike.kaply.com/2013/05/13/more-major-changes-coming-in-firefox-21/
Comment 10 Rafał Mużyło 2013-05-16 20:09:23 UTC
Regarding comment 9:
That seems to help. At the same time simply placing langpack xpi, renamed to its description id, almost works: while value of general.useragent.locale doesn't change, firefox detects the extension as installed, just asks for confirmation at first run and after a restart it works.

Don't know yet how it's getting registered by the current build, but figuring out this could potentially be used to simplify langpack/extensions install.
Comment 11 Jory A. Pratt gentoo-dev 2013-05-17 01:47:18 UTC
(In reply to comment #10)
> Regarding comment 9:
> That seems to help. At the same time simply placing langpack xpi, renamed to
> its description id, almost works: while value of general.useragent.locale
> doesn't change, firefox detects the extension as installed, just asks for
> confirmation at first run and after a restart it works.
> 
> Don't know yet how it's getting registered by the current build, but
> figuring out this could potentially be used to simplify langpack/extensions
> install.

Other then linguas issues, all should be working, we will rework the eclass a bit for linguas support then get this all moved into the tree.
Comment 12 Ulenrich 2013-05-17 12:14:47 UTC
I am just testing to compile the overlay mozilla firefox-21 ebuild:

USE=jemalloc
gets jemalloc-1.0 from mozilla. But I have a system
dev-libs/jemalloc-3.3.1

Should I file an extra bug? 
Would it be reasonable to have an extra use flag 
system-jemalloc
Comment 13 Ulenrich 2013-05-20 23:21:10 UTC
Uups, jemalloc is an issue of libreoffice, which I did compile at the time also, excuse me ...

But I can confirm firefox-21 from mozilla overlay
is running fine here since a few days.
Comment 14 timemars 2013-05-27 02:33:57 UTC
Do we plan to skip this version? or we are waiting for 21.0.1?
Comment 15 Jory A. Pratt gentoo-dev 2013-05-27 21:35:03 UTC
--- a/eclass/mozextension.eclass
+++ b/eclass/mozextension.eclass
@@ -8,10 +8,22 @@
 # @BLURB: Install extensions for use in mozilla products.
 
 
-inherit eutils mozcoreconf-2
+inherit eutils
 
 DEPEND="app-arch/unzip"
 
+mozversion_extension_location() {
+	case ${PN} in
+		firefox|firefox-bin)
+			if [[ $(get_version_component_range 1) -ge 21 ]] ; then
+				return 0
+			fi
+		;;
+	esac
+
+	return 1
+}
+
 xpi_unpack() {
 	local xpi xpiname srcdir
 
@@ -53,7 +65,7 @@ xpi_install() {
 	# determine id for extension
 	emid="$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${x}"/install.rdf)" \
 		|| die "failed to determine extension id"
-	if $(mozversion_is_new_enough) ; then
+	if $(mozversion_extension_location) ; then
 		insinto "${MOZILLA_FIVE_HOME}"/browser/extensions/${emid}
 	else
 		insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid}

If someone who has a linguas set could test this asap I will get this landed today and the bump to 21.0 will be able to happen.
Comment 16 Jory A. Pratt gentoo-dev 2013-05-27 21:48:53 UTC
Created attachment 349402 [details, diff]
fix_extensions_installation.patch

To easy in your testing use the patch, patch -p1. As I have said soon as I get the feedback I will get it all moved to tree.
Comment 17 Emanuel Dávila 2013-05-28 01:29:01 UTC
running quite good here... emerge from overlay (the patch seems there already)... using linguas es_MX
Comment 18 Jory A. Pratt gentoo-dev 2013-05-28 03:37:59 UTC
Any new bugs please open create a new report. I have landed everything sorry for the delay.