Firefox related improvements
Hello,
Since we're going to use Firefox in our system we've made few improvements on it to allow the usage of translations. During it, we also found that it wasn't disabling the application updating as done in most distributions and then we've fixed it as well.
Please ack/nack it.
PATCH 1/3 firefox.inc: disable application updating
--- recipes/mozilla/firefox.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
recipes/mozilla/firefox.inc +5 -0
@@ -37,6 +37,11 @@ do_install() { install -m 0644 ${WORKDIR}/mozilla-${PN}.desktop ${D}${datadir}/applications/ install -m 0644 ${WORKDIR}/mozilla-${PN}.png ${D}${datadir}/pixmaps/ rm -f ${D}${libdir}/${PN}-*/TestGtkEmbed + + # disable application updating + grep -Rl app.update.enabled ${D}${libdir}/${PN}-*/ \ + | grep '.js$' \ + | xargs -n 1 sed -i 's/\(pref("app.update.enabled",\s*\)true)/\1false)/g' } pkg_postinst_${PN}() {
Signature · 1 line
1.6.2.1.303.g63699
PATCH 2/3 firefox.inc: properly support locale usage based in system locale
--- recipes/mozilla/firefox.inc | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
recipes/mozilla/firefox.inc +6 -0
@@ -37,6 +37,12 @@ do_install() { install -m 0644 ${WORKDIR}/mozilla-${PN}.desktop ${D}${datadir}/applications/ install -m 0644 ${WORKDIR}/mozilla-${PN}.png ${D}${datadir}/pixmaps/ rm -f ${D}${libdir}/${PN}-*/TestGtkEmbed + rm -f ${D}${libdir}/${PN}-*/defaults/pref/firefox-l10n.js + + # use locale settings + grep -Rl intl.locale.matchOS ${D}${libdir}/${PN}-*/ \ + | grep '.js$' \ + | xargs -n 1 sed -i 's/\(pref("intl.locale.matchOS",\s*\)false)/\1true)/g' # disable application updating grep -Rl app.update.enabled ${D}${libdir}/${PN}-*/ \
Signature · 1 line
1.6.2.1.303.g63699
PATCH 3/3 firefox-l10n-pt-br: add
--- recipes/mozilla/firefox-l10n-pt-br_3.0.4.bb | 6 +++ recipes/mozilla/firefox-l10n.inc | 46 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 recipes/mozilla/firefox-l10n-pt-br_3.0.4.bb create mode 100644 recipes/mozilla/firefox-l10n.inc
recipes/mozilla/firefox-l10n-pt-br_3.0.4.bb new file +6 -0
@@ -0,0 +1,6 @@ +# Copyright (C) 2009, O.S. Systems Software Ltda. All Rights Reserved +# Released under the MIT license (see packages/COPYING) + +require firefox-l10n.inc + +PR = "${INC_PR}.1"
recipes/mozilla/firefox-l10n.inc new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
1.6.2.1.303.g63699