]> git.openpandora.org Git - openembedded.git/commitdiff
firefox: Perform a number of cleanups and fix consistency issues.
authorTom Rini <tom_rini@mentor.com>
Wed, 3 Mar 2010 19:05:33 +0000 (12:05 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 3 Mar 2010 19:05:33 +0000 (12:05 -0700)
- parallel builds need to happen via MOZ_MAKE_FLAGS and it gripes if still
  passed -jN, so keep the old value before we clear it.
- Move the HOST_LIBIDL stuff into configure, otherwise bad things happen when
  you don't have pkg-config on the build host.
- Prior to 3.6, wireless-tools can be, or not be built already and the Necko
  wifi options deals.  With how 3.6 is configured, it must be disabled or
  DEPENDED on.  For consistency, turn it off.
- In 3.5 and newer, libnotify can be used, add it to DEPENDS (could be
  disabled).
- Because of both of the above, bump PR.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
18 files changed:
classes/mozilla.bbclass
recipes/mozilla/fennec_hg.bb
recipes/mozilla/firefox-3.5.2/mozconfig
recipes/mozilla/firefox-3.5.4/mozconfig
recipes/mozilla/firefox-3.5.5/mozconfig
recipes/mozilla/firefox-3.6/mozconfig
recipes/mozilla/firefox.inc
recipes/mozilla/firefox_3.0.1.bb
recipes/mozilla/firefox_3.0.4.bb
recipes/mozilla/firefox_3.0.8.bb
recipes/mozilla/firefox_3.1b1.bb
recipes/mozilla/firefox_3.1b2.bb
recipes/mozilla/firefox_3.5.2.bb
recipes/mozilla/firefox_3.5.4.bb
recipes/mozilla/firefox_3.5.5.bb
recipes/mozilla/firefox_3.5b4.bb
recipes/mozilla/firefox_3.6.bb
recipes/mozilla/firefox_hg.bb

index c9a3966709ee67cd83ca6ab6357a4977c4c394d8..4e3054b9ab67e50ed5726493b7234c7c4cd8919f 100644 (file)
@@ -6,10 +6,12 @@ SRC_URI += "file://mozconfig"
 
 inherit gettext pkgconfig
 
+# Parallel make is special in mozilla.
+OLD_PARALLEL_MAKE := "${PARALLEL_MAKE}"
+PARALLEL_MAKE = ""
+
 EXTRA_OECONF = "--target=${TARGET_SYS} --host=${BUILD_SYS} \
                --build=${BUILD_SYS} --prefix=${prefix}"
-EXTRA_OEMAKE = "'HOST_LIBIDL_LIBS=${HOST_LIBIDL_LIBS}' \
-               'HOST_LIBIDL_CFLAGS=${HOST_LIBIDL_CFLAGS}'"
 SELECTED_OPTIMIZATION = "-Os -fsigned-char -fno-strict-aliasing"
 
 export CROSS_COMPILE = "1"
@@ -17,9 +19,6 @@ export MOZCONFIG = "${WORKDIR}/mozconfig"
 export MOZ_OBJDIR = "${S}"
 
 export CONFIGURE_ARGS = "${EXTRA_OECONF}"
-export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`"
-export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`"
-export HOST_LIBIDL_CONFIG = "PKG_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/pkgconfig pkg-config libIDL-2.0"
 export HOST_CC = "${BUILD_CC}"
 export HOST_CXX = "${BUILD_CXX}"
 export HOST_CFLAGS = "${BUILD_CFLAGS}"
@@ -38,7 +37,22 @@ mozilla_do_configure() {
                        `dirname $cg`/
                done
        )
-       if [ -e ${MOZ_OBJDIR}/Makefile ] ; then 
+
+       # Put PARALLEL_MAKE into mozconfig
+       if [ ! -z "${OLD_PARALLEL_MAKE}" ] ; then
+               echo mk_add_options MOZ_MAKE_FLAGS=\"${OLD_PARALLEL_MAKE}\" \
+                       >> ${MOZCONFIG}
+       fi
+
+       # Set the host libIDL stuff correctly.
+       export HOST_LIBIDL_CONFIG="PKG_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/pkgconfig pkg-config libIDL-2.0"
+       # Due to sysroot we need to sed out references to the target staging
+       # when building the native version of xpidl Symptons of the failure
+       # include "gthread.h:344: error: size of array 'type name' is negative"
+       export HOST_LIBIDL_CFLAGS="`${HOST_LIBIDL_CONFIG} --cflags | sed -e s:${STAGING_DIR_TARGET}:${STAGING_DIR_NATIVE}:g`"
+       export HOST_LIBIDL_LIBS="`${HOST_LIBIDL_CONFIG} --libs`"
+
+       if [ -e ${MOZ_OBJDIR}/Makefile ] ; then
                oe_runmake -f client.mk ${MOZ_OBJDIR}/Makefile \
                                        ${MOZ_OBJDIR}/config.status
        fi
index ef4cedd70b2918d7dbba50bba36626a44d8a9554..ada5fa8e87f354b8eee95658d0e1da2c8c3f0ca9 100644 (file)
@@ -19,8 +19,6 @@ require firefox.inc
 
 DEPENDS += "libnotify autoconf213-native cairo alsa-lib sqlite3"
 
-PARALLEL_MAKE = ""
-
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 export LIBXUL_DIST="${S}/objdir/xulrunner/dist/"
index d8d3f3923d7f1afb683fd3169c58fc91f57c017a..7e2ade0b7112f69d9da19a8caa4b8d4177ae4caa 100644 (file)
@@ -26,6 +26,7 @@ ac_add_options --disable-jsd
 ac_add_options --disable-installer
 ac_add_options --disable-xprint
 ac_add_options --disable-necko-disk-cache
+ac_add_options --disable-necko-wifi
 ac_add_options --disable-updater
 
 # configure necko to allocate smaller network buffers
index d8d3f3923d7f1afb683fd3169c58fc91f57c017a..7e2ade0b7112f69d9da19a8caa4b8d4177ae4caa 100644 (file)
@@ -26,6 +26,7 @@ ac_add_options --disable-jsd
 ac_add_options --disable-installer
 ac_add_options --disable-xprint
 ac_add_options --disable-necko-disk-cache
+ac_add_options --disable-necko-wifi
 ac_add_options --disable-updater
 
 # configure necko to allocate smaller network buffers
index d8d3f3923d7f1afb683fd3169c58fc91f57c017a..7e2ade0b7112f69d9da19a8caa4b8d4177ae4caa 100644 (file)
@@ -26,6 +26,7 @@ ac_add_options --disable-jsd
 ac_add_options --disable-installer
 ac_add_options --disable-xprint
 ac_add_options --disable-necko-disk-cache
+ac_add_options --disable-necko-wifi
 ac_add_options --disable-updater
 
 # configure necko to allocate smaller network buffers
index b561f067b8155c955572e57b66ee5d04e6dc5b3b..883a396e538e82d7ea35b9b86df58dd15d867cbc 100644 (file)
@@ -26,6 +26,7 @@ ac_add_options --disable-jsd
 ac_add_options --disable-installer
 ac_add_options --disable-xprint
 ac_add_options --enable-necko-disk-cache
+ac_add_options --disable-necko-wifi
 ac_add_options --disable-updater
 
 # configure necko to allocate smaller network buffers
index b0e79f96c40701a52933d6e1dd4589911e49fa8a..cf429f05ebc635f059fad50370460124c1240f6b 100644 (file)
@@ -2,7 +2,6 @@ DESCRIPTION ?= "Browser made by mozilla"
 DEPENDS += "alsa-lib"
 SRC_URI += "file://mozilla-${PN}.png file://mozilla-${PN}.desktop"
 
-PARALLEL_MAKE = ""
 ARM_INSTRUCTION_SET = "arm"
 
 MOZPV ?= "${PV}"
@@ -31,13 +30,6 @@ FILES_${PN}-dbg += " ${libdir}/${PN}-*/.debug \
                        ${bindir}/.debug \
                        "
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
-
-# Due to sysroot we need to sed out references to the target staging when building the native version of xpidl
-# Symptons of the failure include "gthread.h:344: error: size of array 'type name' is negative"
-export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags | sed -e s:${STAGING_DIR_TARGET}:${STAGING_DIR_NATIVE}:g`"
-
-
 do_install() {
        oe_runmake DESTDIR="${D}" destdir="${D}" install
        install -d ${D}${datadir}/applications
index ee60fc026e76622953425d238f14bdfe7e26e27b..72c72bd13f1fa40f626faf433f783670f6d2c9eb 100644 (file)
@@ -23,7 +23,6 @@ S = "${WORKDIR}/mozilla"
 inherit mozilla
 require firefox.inc
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index 7cfebfc554920a195147f02425346e3e535b8df0..f783000d246666ffaf6a720ac45281476e60b6f0 100644 (file)
@@ -23,7 +23,6 @@ DEFAULT_PREFERENCE = "-1"
 inherit mozilla
 require firefox.inc
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index 541a542c9214e4f90d668b5e493b6a63a1587f01..5ce6f953402a3945f4c0396d480f2ca66c17e464 100644 (file)
@@ -23,7 +23,6 @@ S = "${WORKDIR}/mozilla"
 inherit mozilla
 require firefox.inc
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index 7a41491ea79185c26f67d6d10ea3cc5f670222b3..54113f498539f9d9a24bb22d638fd0f3742bc2a8 100644 (file)
@@ -17,7 +17,6 @@ DEFAULT_PREFERENCE = "-1"
 inherit mozilla
 require firefox.inc
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_configure_prepend() {
index 2d661ea5f93fa63ba718e2e80c3d75e2bb2f2b8b..7be8baa32e8a7e852579a90a1f9940820c2ceeae 100644 (file)
@@ -16,7 +16,6 @@ DEFAULT_PREFERENCE = "-1"
 inherit mozilla
 require firefox.inc
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_configure_prepend() {
index 3d940d7af57175354982350c1b034ec484cea4ca..b6e265b7d3ff13d13dc8bb04c3b055780f3b496d 100644 (file)
@@ -1,5 +1,6 @@
-DEPENDS += "cairo sqlite3"
-PR = "r3"
+DEPENDS += "cairo sqlite3 libnotify"
+
+PR = "r4"
 
 SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}-source.tar.bz2 \
        file://jsautocfg.h \
@@ -25,7 +26,6 @@ require firefox.inc
 EXTRA_OECONF += " --enable-official-branding "
 
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index 8ba6ba15dbaf26cd155dd7bd97deb2216fba4c32..b1b2af372a83d528e3d6ac25d609905e54cf2fd1 100644 (file)
@@ -1,6 +1,6 @@
-DEPENDS += "cairo sqlite3"
+DEPENDS += "cairo sqlite3 libnotify"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}.source.tar.bz2 \
        file://jsautocfg.h \
@@ -26,7 +26,6 @@ require firefox.inc
 EXTRA_OECONF += " --enable-official-branding "
 
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index da54872046e619a120586ba264617ee0397b8eec..ea3d4fc4b547f2ded98377588e3ffa308c0e5b8e 100644 (file)
@@ -1,6 +1,6 @@
-DEPENDS += "cairo sqlite3"
+DEPENDS += "cairo sqlite3 libnotify"
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}.source.tar.bz2 \
        file://jsautocfg.h \
@@ -26,7 +26,6 @@ require firefox.inc
 EXTRA_OECONF += " --enable-official-branding --disable-crashreporter"
 
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index 4a1232923173c3e0e6b61ffdeb0605a1e1069bcd..0418c3b2577fedecf8fff3ab0cf11a91cc265deb 100644 (file)
@@ -1,8 +1,8 @@
-DEPENDS += "cairo sqlite"
+DEPENDS += "cairo sqlite libnotify"
 
 PV = "3.0.1+3.5b4"
 MOZPV = "3.5b4"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/${MOZPV}-candidates/build1/source/firefox-${MOZPV}-source.tar.bz2 \
        file://jsautocfg.h \
@@ -16,7 +16,6 @@ DEFAULT_PREFERENCE = "-10"
 inherit mozilla
 require firefox.inc
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_configure_prepend() {
index 82e92be1282538899ab69cd25d9da9012c4726da..43e42b731be01fdaa6d4136cd8bd73290197607e 100644 (file)
@@ -1,6 +1,6 @@
-DEPENDS += "cairo sqlite3"
+DEPENDS += "cairo sqlite3 libnotify"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}.source.tar.bz2;name=archive \
        file://jsautocfg.h \
@@ -28,7 +28,6 @@ require firefox.inc
 EXTRA_OECONF += " --enable-official-branding --disable-crashreporter"
 
 
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
index 17a46ee1c806c30084af5d88e0695e407eac5ecc..37bb2608bd9fe8fd518645846a5278aa574762b1 100644 (file)
@@ -17,8 +17,6 @@ S = "${WORKDIR}/mozilla-central"
 inherit mozilla
 require firefox.inc
 
-PARALLEL_MAKE = ""
-export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 export LIBXUL_DIST="${S}/objdir/xulrunner/dist/"