commit:     c03b86e8afdff46e7a21a5317afecbb5866b655a
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon May 17 21:26:29 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon May 17 21:27:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c03b86e8

perl-functions.eclass: Add perl-fix_permissions

Bug: https://bugs.gentoo.org/554346
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 eclass/perl-functions.eclass | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
index e6168a07534..8633f384f1b 100644
--- a/eclass/perl-functions.eclass
+++ b/eclass/perl-functions.eclass
@@ -127,6 +127,16 @@ perl_delete_emptybsdir() {
        fi
 }
 
+# @FUNCTION: perl_fix_permissions
+# @DESCRIPTION:
+# Make all of ${D} user-writable, since EU::MM does silly things with
+# the w bit. See bug 554346.
+perl_fix_permissions() {
+       debug-print-function $FUNCNAME "$@"
+       perl_set_version
+       fperms -R u+w "${D}"
+}
+
 # @FUNCTION: perl_fix_packlist
 # @DESCRIPTION:
 # Look through ${D} for .packlist text files containing the temporary 
installation

Reply via email to