mozilla packages: migrate arm neon/softfp/hardfp config fixes to the eclass
authorIan Stakenvicius <axs@gentoo.org>
Wed, 23 Dec 2015 16:22:18 +0000 (11:22 -0500)
committerIan Stakenvicius <axs@gentoo.org>
Wed, 23 Dec 2015 20:55:49 +0000 (15:55 -0500)
The firefox ebuild received fixes for various arm configurations (neon, hardfp/softfp)
but these fixes should also be applied to the other mozilla packages.  This commit
removes them from firefox and adds them to mozconfig.

eclass/mozconfig-v6.38.eclass
eclass/mozconfig-v6.42.eclass
www-client/firefox/firefox-38.4.0.ebuild
www-client/firefox/firefox-38.5.0.ebuild
www-client/firefox/firefox-43.0.ebuild

index dc32140cb826c2de5a1e800dde032ae3cf4fc1ab..ecd4578c082cdeb064036f1eded1e15fd9c6429d 100644 (file)
@@ -45,7 +45,7 @@ esac
 # Set the variable to any value if the use flag should exist but not be default-enabled.
 
 # use-flags common among all mozilla ebuilds
-IUSE="${IUSE} dbus debug gstreamer gstreamer-0 +jemalloc3 pulseaudio selinux startup-notification system-cairo system-icu system-jpeg system-sqlite system-libvpx"
+IUSE="${IUSE} dbus debug gstreamer gstreamer-0 +jemalloc3 neon pulseaudio selinux startup-notification system-cairo system-icu system-jpeg system-sqlite system-libvpx"
 
 # some notes on deps:
 # gtk:2 minimum is technically 2.10 but gio support (enabled by default) needs 2.14
@@ -237,4 +237,20 @@ mozconfig_config() {
        mozconfig_use_with system-icu
        mozconfig_use_enable system-icu intl-api
        mozconfig_use_with system-libvpx
+
+       # Modifications to better support ARM, bug 553364
+       if use neon ; then
+               mozconfig_annotate '' --with-fpu=neon
+               mozconfig_annotate '' --with-thumb=yes
+               mozconfig_annotate '' --with-thumb-interwork=no
+       fi
+       if [[ ${CHOST} == armv* ]] ; then
+               mozconfig_annotate '' --with-float-abi=hard
+               mozconfig_annotate '' --enable-skia
+
+               if ! use system-libvpx ; then
+                       sed -i -e "s|softfp|hard|" \
+                               "${S}"/media/libvpx/moz.build
+               fi
+       fi
 }
index 7ed728314fca242f5a3452047b502037f8ddc0ce..1feea383d844a6ccdcefa996ea68d207f6d8b5d5 100644 (file)
@@ -55,7 +55,7 @@ esac
 # Set the variable to any value if the use flag should exist but not be default-enabled.
 
 # use-flags common among all mozilla ebuilds
-IUSE="${IUSE} dbus debug +gstreamer gstreamer-0 +jemalloc3 pulseaudio selinux startup-notification system-cairo system-icu system-jpeg system-sqlite system-libvpx"
+IUSE="${IUSE} dbus debug +gstreamer gstreamer-0 +jemalloc3 neon pulseaudio selinux startup-notification system-cairo system-icu system-jpeg system-sqlite system-libvpx"
 
 # some notes on deps:
 # gtk:2 minimum is technically 2.10 but gio support (enabled by default) needs 2.14
@@ -263,4 +263,20 @@ mozconfig_config() {
        mozconfig_use_with system-icu
        mozconfig_use_enable system-icu intl-api
        mozconfig_use_with system-libvpx
+
+       # Modifications to better support ARM, bug 553364
+       if use neon ; then
+               mozconfig_annotate '' --with-fpu=neon
+               mozconfig_annotate '' --with-thumb=yes
+               mozconfig_annotate '' --with-thumb-interwork=no
+       fi
+       if [[ ${CHOST} == armv* ]] ; then
+               mozconfig_annotate '' --with-float-abi=hard
+               mozconfig_annotate '' --enable-skia
+
+               if ! use system-libvpx ; then
+                       sed -i -e "s|softfp|hard|" \
+                               "${S}"/media/libvpx/moz.build
+               fi
+       fi
 }
index 39fef48bc3de7b14b8439f0f4e0dac56ea56a344..bfe259582d30070890ea3be0670749d31e5ad30e 100644 (file)
@@ -42,7 +42,7 @@ KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist egl hardened +minimal neon pgo selinux +gmp-autoupdate test"
+IUSE="bindist egl hardened +minimal pgo selinux +gmp-autoupdate test"
 RESTRICT="!bindist? ( bindist )"
 
 # More URIs appended below...
@@ -206,22 +206,6 @@ src_configure() {
        # Add full relro support for hardened
        use hardened && append-ldflags "-Wl,-z,relro,-z,now"
 
-       if use neon ; then
-               mozconfig_annotate '' --with-fpu=neon
-               mozconfig_annotate '' --with-thumb=yes
-               mozconfig_annotate '' --with-thumb-interwork=no
-       fi
-
-       if [[ ${CHOST} == armv* ]] ; then
-               mozconfig_annotate '' --with-float-abi=hard
-               mozconfig_annotate '' --enable-skia
-
-               if ! use system-libvpx ; then
-                       sed -i -e "s|softfp|hard|" \
-                               "${S}"/media/libvpx/moz.build
-               fi
-       fi
-
        use egl && mozconfig_annotate 'Enable EGL as GL provider' --with-gl-provider=EGL
 
        # Setup api key for location services
index 038a181b18e9072a6c2faefa81508ca7b04accac..48ff07d8baa530ff33c7ee41248e135baac90887 100644 (file)
@@ -42,7 +42,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linu
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist egl hardened +minimal neon pgo selinux +gmp-autoupdate test"
+IUSE="bindist egl hardened +minimal pgo selinux +gmp-autoupdate test"
 RESTRICT="!bindist? ( bindist )"
 
 # More URIs appended below...
@@ -207,22 +207,6 @@ src_configure() {
        # Add full relro support for hardened
        use hardened && append-ldflags "-Wl,-z,relro,-z,now"
 
-       if use neon ; then
-               mozconfig_annotate '' --with-fpu=neon
-               mozconfig_annotate '' --with-thumb=yes
-               mozconfig_annotate '' --with-thumb-interwork=no
-       fi
-
-       if [[ ${CHOST} == armv* ]] ; then
-               mozconfig_annotate '' --with-float-abi=hard
-               mozconfig_annotate '' --enable-skia
-
-               if ! use system-libvpx ; then
-                       sed -i -e "s|softfp|hard|" \
-                               "${S}"/media/libvpx/moz.build
-               fi
-       fi
-
        use egl && mozconfig_annotate 'Enable EGL as GL provider' --with-gl-provider=EGL
 
        # Setup api key for location services
index 2c932c1d99efb489964260ffde553674fd348ee6..d0229f53ce604eb4b8cd275145f85501681dd0c6 100644 (file)
@@ -43,7 +43,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linu
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist egl hardened +hwaccel +minimal neon pgo selinux +gmp-autoupdate test"
+IUSE="bindist egl hardened +hwaccel +minimal pgo selinux +gmp-autoupdate test"
 RESTRICT="!bindist? ( bindist )"
 
 # More URIs appended below...
@@ -220,22 +220,6 @@ src_configure() {
        # Add full relro support for hardened
        use hardened && append-ldflags "-Wl,-z,relro,-z,now"
 
-       if use neon ; then
-               mozconfig_annotate '' --with-fpu=neon
-               mozconfig_annotate '' --with-thumb=yes
-               mozconfig_annotate '' --with-thumb-interwork=no
-       fi
-
-       if [[ ${CHOST} == armv* ]] ; then
-               mozconfig_annotate '' --with-float-abi=hard
-               mozconfig_annotate '' --enable-skia
-
-               if ! use system-libvpx ; then
-                       sed -i -e "s|softfp|hard|" \
-                               "${S}"/media/libvpx/moz.build
-               fi
-       fi
-
        use egl && mozconfig_annotate 'Enable EGL as GL provider' --with-gl-provider=EGL
 
        # Setup api key for location services