Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 668306 Details for
Bug 751037
bootstrap-prefix.sh: stat: illegal option -- c
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A trivial fix for stat invocation in bootstrap-prefix.sh
stat.patch (text/plain), 741 bytes, created by
Alexander Bezrukov
on 2020-10-24 14:17:45 UTC
(
hide
)
Description:
A trivial fix for stat invocation in bootstrap-prefix.sh
Filename:
MIME Type:
Creator:
Alexander Bezrukov
Created:
2020-10-24 14:17:45 UTC
Size:
741 bytes
patch
obsolete
>diff -ur a/bootstrap-prefix.sh b/bootstrap-prefix.sh >--- a/bootstrap-prefix.sh 2020-10-24 15:50:24.266777899 +0300 >+++ b/bootstrap-prefix.sh 2020-10-24 16:57:07.864168126 +0300 >@@ -2687,8 +2687,14 @@ > EPREFIX= > continue > fi >- if [[ $(stat -c '%U/%G' "${EPREFIX}"/.canihaswrite) != \ >- $(stat -c '%U/%G' "${EPREFIX}") ]] ; >+ # 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' ;; >+ esac >+ >+ if [[ $($STAT "${EPREFIX}"/.canihaswrite) != \ >+ $($STAT "${EPREFIX}") ]] ; > then > echo > echo "The $EPREFIX directory has different ownership than expected."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 751037
: 668306