Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/
Date: Wed, 29 Jun 2022 16:28:16
Message-Id: 1656520084.10e787dc1e98652ef5c77f3da33335f003e68115.sam@gentoo
1 commit: 10e787dc1e98652ef5c77f3da33335f003e68115
2 Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Jun 4 04:20:57 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 16:28:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=10e787dc
7
8 scripts/bootstrap-prefix.sh: use BSD stat syntax for OpenBSD
9
10 Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 scripts/bootstrap-prefix.sh | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
17 index c7de6d7ec7..f14872f6d5 100755
18 --- a/scripts/bootstrap-prefix.sh
19 +++ b/scripts/bootstrap-prefix.sh
20 @@ -2901,8 +2901,8 @@ EOF
21 # GNU and BSD variants of stat take different arguments (and
22 # format specifiers are not equivalent)
23 case "${CHOST}" in
24 - *-darwin* | *-freebsd*) STAT='stat -f %u/%g' ;;
25 - *) STAT='stat -c %U/%G' ;;
26 + *-darwin* | *-freebsd* | *-openbsd*) STAT='stat -f %u/%g' ;;
27 + *) STAT='stat -c %U/%G' ;;
28 esac
29
30 if [[ $(${STAT} "${EPREFIX}"/.canihaswrite) != \