summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2021-05-17 23:26:29 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-05-17 23:27:08 +0200
commitc03b86e8afdff46e7a21a5317afecbb5866b655a (patch)
tree2385906095f945f1b547be8f82235724621d6fcb /eclass
parentdev-qt/qtwebengine: Drop 5.15.2_p20210406 (diff)
downloadgentoo-c03b86e8afdff46e7a21a5317afecbb5866b655a.tar.gz
gentoo-c03b86e8afdff46e7a21a5317afecbb5866b655a.tar.bz2
gentoo-c03b86e8afdff46e7a21a5317afecbb5866b655a.zip
perl-functions.eclass: Add perl-fix_permissions
Bug: https://bugs.gentoo.org/554346 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/perl-functions.eclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
index e6168a075345..8633f384f1bf 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