commit:     f979b313a858358d77b2c67eb1036cb9b7b9a571
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 30 07:31:38 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 30 18:13:10 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f979b313

fowners, fperms: Restore QA warning

Suggested-by: Michał Górny <mgorny <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 bin/ebuild-helpers/fowners | 6 ++++++
 bin/ebuild-helpers/fperms  | 6 ++++++
 2 files changed, 12 insertions(+)

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
 

Reply via email to