aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-04-30 09:31:38 +0200
committerUlrich Müller <ulm@gentoo.org>2023-04-30 20:13:10 +0200
commitf979b313a858358d77b2c67eb1036cb9b7b9a571 (patch)
tree0f3d70b2b99a511781f7e06cd087de0b7927a2d1
parentfowners: Drop unused EPREFIX variable (diff)
downloadportage-f979b313.tar.gz
portage-f979b313.tar.bz2
portage-f979b313.zip
fowners, fperms: Restore QA warning
Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rwxr-xr-xbin/ebuild-helpers/fowners6
-rwxr-xr-xbin/ebuild-helpers/fperms6
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/ebuild-helpers/fowners b/bin/ebuild-helpers/fowners
index a6409e40d..fa4e3c0d7 100755
--- a/bin/ebuild-helpers/fowners
+++ b/bin/ebuild-helpers/fowners
@@ -19,6 +19,12 @@ for arg; do
args+=( "${arg}" )
else
args+=( "${ED%/}/${arg#/}" )
+ # remove the QA warning after 2024-12-31
+ if [[ ${arg:0:1} != / ]]; then
+ eqawarn "${0##*/}: Path '${arg}' does not start with '/'."
+ eqawarn "This is unsupported. Add a slash for a path in \${ED},"
+ eqawarn "or use 'chown' for a path relative to the working dir."
+ fi
fi
done
diff --git a/bin/ebuild-helpers/fperms b/bin/ebuild-helpers/fperms
index 989075eb7..d52f5a767 100755
--- a/bin/ebuild-helpers/fperms
+++ b/bin/ebuild-helpers/fperms
@@ -20,6 +20,12 @@ for arg; do
args+=( "${arg}" )
else
args+=( "${ED%/}/${arg#/}" )
+ # remove the QA warning after 2024-12-31
+ if [[ ${arg:0:1} != / ]]; then
+ eqawarn "${0##*/}: Path '${arg}' does not start with '/'."
+ eqawarn "This is unsupported. Add a slash for a path in \${ED},"
+ eqawarn "or use 'chmod' for a path relative to the working dir."
+ fi
fi
done