sys-apps/portage: elog for default autounmask behavior
authorZac Medico <zmedico@gentoo.org>
Sun, 8 Dec 2019 00:14:15 +0000 (16:14 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 Dec 2019 00:21:09 +0000 (16:21 -0800)
Suggested-by: Michal Privoznik <miso.privoznik@gmail.com>
Bug: https://bugs.gentoo.org/658648#c9
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Zac Medico <zmedico@gentoo.org>
sys-apps/portage/portage-2.3.79.ebuild
sys-apps/portage/portage-2.3.81.ebuild

index 0389ff89cfada95c17614c10419caf8a6fdd2319..42d64562857cb72d711a730e5dea165043c9b780 100644 (file)
@@ -259,4 +259,14 @@ pkg_preinst() {
        if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
                chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
        fi
+
+       if has_version "<${CATEGORY}/${PN}-2.3.77"; then
+               elog "The emerge --autounmask option is now disabled by default, except for"
+               elog "portions of behavior which are controlled by the --autounmask-use and"
+               elog "--autounmask-license options. For backward compatibility, previous"
+               elog "behavior of --autounmask=y and --autounmask=n is entirely preserved."
+               elog "Users can get the old behavior simply by adding --autounmask to the"
+               elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this"
+               elog "change, see https://bugs.gentoo.org/658648."
+       fi
 }
index be56b54d20522b1a42db7f8b9729409bef58fb00..a7197349654da4b42317c0c86329ae8c3f1c791c 100644 (file)
@@ -259,4 +259,14 @@ pkg_preinst() {
        if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
                chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
        fi
+
+       if has_version "<${CATEGORY}/${PN}-2.3.77"; then
+               elog "The emerge --autounmask option is now disabled by default, except for"
+               elog "portions of behavior which are controlled by the --autounmask-use and"
+               elog "--autounmask-license options. For backward compatibility, previous"
+               elog "behavior of --autounmask=y and --autounmask=n is entirely preserved."
+               elog "Users can get the old behavior simply by adding --autounmask to the"
+               elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this"
+               elog "change, see https://bugs.gentoo.org/658648."
+       fi
 }