www-client/firefox: don't install firefox-bin
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 23 Sep 2018 23:59:01 +0000 (01:59 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 24 Sep 2018 00:55:26 +0000 (02:55 +0200)
firefox and firefox-bin are identical. So instead of installing
the same file twice, we will now install a symlink only.

Package-Manager: Portage-2.3.49, Repoman-2.3.10

www-client/firefox/firefox-60.2.1.ebuild
www-client/firefox/firefox-62.0.2.ebuild

index 51a218b24b4d43181ed9ba90b1f6ef87b0977c8c..2d2e154e84635c3db29aba4f06be291b56eadfad 100644 (file)
@@ -354,8 +354,12 @@ PROFILE_EOF
                        || die
        fi
 
+       # firefox and firefox-bin are identical
+       rm "${ED%/}"${MOZILLA_FIVE_HOME}/firefox-bin || die
+       dosym firefox ${MOZILLA_FIVE_HOME}/firefox-bin
+
        # Required in order to use plugins and even run firefox on hardened.
-       pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
+       pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{firefox,plugin-container}
 }
 
 pkg_preinst() {
index efa2aff50838962d3e8b04d840c9fe66a2694101..569e8d139db34cd7f2ed42815dbac8ca339d5381 100644 (file)
@@ -542,8 +542,12 @@ PROFILE_EOF
                        || die
        fi
 
+       # firefox and firefox-bin are identical
+       rm "${ED%/}"${MOZILLA_FIVE_HOME}/firefox-bin || die
+       dosym firefox ${MOZILLA_FIVE_HOME}/firefox-bin
+
        # Required in order to use plugins and even run firefox on hardened.
-       pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
+       pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{firefox,plugin-container}
 }
 
 pkg_preinst() {