commit:     f9d24c9e19828b554778b2b776d867f739e08ff7
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 15 01:50:45 2015 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Thu Jan 15 01:51:45 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=f9d24c9e

Add back buildobj dir fix, bug #536516

---
 www-client/firefox/firefox-35.0.ebuild | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/www-client/firefox/firefox-35.0.ebuild 
b/www-client/firefox/firefox-35.0.ebuild
index 06e88a8..72b0e29 100644
--- a/www-client/firefox/firefox-35.0.ebuild
+++ b/www-client/firefox/firefox-35.0.ebuild
@@ -91,6 +91,8 @@ fi
 
 QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/firefox"
 
+BUILD_OBJ_DIR="${S}/ff"
+
 pkg_setup() {
        moz_pkgsetup
 
@@ -229,6 +231,8 @@ src_configure() {
                echo "mk_add_options PROFILE_GEN_SCRIPT='\$(PYTHON) 
\$(OBJDIR)/_profile/pgo/profileserver.py'" >> "${S}"/.mozconfig
        fi
 
+       echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+
        # Finalize and report settings
        mozconfig_final
 
@@ -278,33 +282,30 @@ src_install() {
        MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
        DICTPATH="\"${EPREFIX}/usr/share/myspell\""
 
-       # MOZ_BUILD_ROOT, and hence OBJ_DIR change depending on arch, compiler, 
pgo, etc.
-       local obj_dir="$(echo */config.log)"
-       obj_dir="${obj_dir%/*}"
-       cd "${S}/${obj_dir}" || die
+       cd "${BUILD_OBJ_DIR}" || die
 
        # Pax mark xpcshell for hardened support, only used for startupcache 
creation.
-       pax-mark m "${S}/${obj_dir}"/dist/bin/xpcshell
+       pax-mark m "${BUILD_OBJ_DIR}"/dist/bin/xpcshell
 
        # Add our default prefs for firefox
        cp "${FILESDIR}"/gentoo-default-prefs.js-1 \
-               
"${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+               
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
                || die
 
        # Set default path to search for dictionaries.
        echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
-               >> 
"${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+               >> 
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
                || die
 
        echo "pref(\"extensions.autoDisableScopes\", 3);" >> \
-               
"${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+               
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
                || die
 
        local plugin
        use gmp-autoupdate || for plugin in \
        gmp-gmpopenh264 ; do
                echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
-                       
"${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+                       
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
                        || die
        done
 

Reply via email to