commit:     10e787dc1e98652ef5c77f3da33335f003e68115
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jun  4 04:20:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 16:28:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=10e787dc

scripts/bootstrap-prefix.sh: use BSD stat syntax for OpenBSD

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index c7de6d7ec7..f14872f6d5 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -2901,8 +2901,8 @@ EOF
                # GNU and BSD variants of stat take different arguments (and
                # format specifiers are not equivalent)
                case "${CHOST}" in
-                       *-darwin* | *-freebsd*) STAT='stat -f %u/%g' ;;
-                       *)                      STAT='stat -c %U/%G' ;;
+                       *-darwin* | *-freebsd* | *-openbsd*) STAT='stat -f 
%u/%g' ;;
+                       *)                                   STAT='stat -c 
%U/%G' ;;
                esac
 
                if [[ $(${STAT} "${EPREFIX}"/.canihaswrite) != \

Reply via email to