eclass/moz*: refactor some configuration options from mozcoreconf-v4 to mozconfig
authorIan Stakenvicius <axs@gentoo.org>
Tue, 5 Jul 2016 15:05:16 +0000 (11:05 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Wed, 6 Jul 2016 21:24:52 +0000 (17:24 -0400)
mozilla-48 and newer have dropped some configuration options that are no longer used
in the build system, and due to the way the new python configure operates, any options
specified that are not recognized are fatal.  Moving these options out of mozcoreconf
allows the older mozconfig's to retain the same configuration while also allowing newer
mozconfig's to drop them as appropriate.

eclass/mozconfig-v6.45.eclass
eclass/mozconfig-v6.47.eclass
eclass/mozcoreconf-v4.eclass

index e92f7693c198d035e1e8591878149560f788aa0b..02890a31d754938fcd3d8b59b143c8fb7ff718bc 100644 (file)
@@ -15,7 +15,7 @@
 # Some use flags which may be optional in particular mozilla packages can be
 # supported through setting eclass variables.
 #
-# This eclass inherits mozconfig helper functions as defined in mozcoreconf-v3,
+# This eclass inherits mozconfig helper functions as defined in mozcoreconf-v4,
 # and so ebuilds inheriting this eclass do not need to inherit that.
 
 case ${EAPI} in
@@ -216,6 +216,19 @@ REQUIRED_USE="
 # }
 
 mozconfig_config() {
+       # Migrated from mozcoreconf-v3
+       mozconfig_annotate 'more disable_update_strip' \
+               --disable-pedantic \
+               --disable-installer \
+               --disable-strip-libs
+
+       if [[ ${PN} != seamonkey ]]; then
+               mozconfig_annotate 'basic_profile' \
+                       --disable-profilelocking \
+                       --enable-single-profile \
+                       --disable-profilesharing
+       fi
+
        # Migrated from mozcoreconf-2
        mozconfig_annotate 'system_libs' \
                --with-system-zlib \
index 263f4c0eb64363d9c729dc5b9795ac6aefc7908e..ab0803f05e7153a7cd6933df6f4ce6b30f04cafa 100644 (file)
@@ -15,7 +15,7 @@
 # Some use flags which may be optional in particular mozilla packages can be
 # supported through setting eclass variables.
 #
-# This eclass inherits mozconfig helper functions as defined in mozcoreconf-v3,
+# This eclass inherits mozconfig helper functions as defined in mozcoreconf-v4,
 # and so ebuilds inheriting this eclass do not need to inherit that.
 
 case ${EAPI} in
@@ -222,6 +222,19 @@ REQUIRED_USE="
 # }
 
 mozconfig_config() {
+       # Migrated from mozcoreconf-v3
+       mozconfig_annotate 'more disable_update_strip' \
+               --disable-pedantic \
+               --disable-installer \
+               --disable-strip-libs
+
+       if [[ ${PN} != seamonkey ]]; then
+               mozconfig_annotate 'basic_profile' \
+                       --disable-profilelocking \
+                       --enable-single-profile \
+                       --disable-profilesharing
+       fi
+
        # Migrated from mozcoreconf-2
        mozconfig_annotate 'system_libs' \
                --with-system-zlib \
index fc5a07956c8001ce9955822910a33e11bc082e05..191f5fa76468527727d2170ebb4c02337f639154 100644 (file)
@@ -208,7 +208,7 @@ mozconfig_init() {
        append-flags "$MAKEEDIT_FLAGS"
 
        # Use the MOZILLA_FIVE_HOME for the rpath
-       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}"
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
        # Set MOZILLA_FIVE_HOME in mozconfig
        mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
 
@@ -219,19 +219,9 @@ mozconfig_init() {
        ####################################
 
        mozconfig_annotate disable_update_strip \
-               --disable-pedantic \
                --disable-updater \
                --disable-strip \
-               --disable-install-strip \
-               --disable-installer \
-               --disable-strip-libs
-
-       if [[ ${PN} != seamonkey ]]; then
-               mozconfig_annotate basic_profile \
-                       --disable-profilelocking \
-                       --enable-single-profile \
-                       --disable-profilesharing
-       fi
+               --disable-install-strip
 
        # Here is a strange one...
        if is-flag '-mcpu=ultrasparc*' || is-flag '-mtune=ultrasparc*'; then