diff mbox series

use shasum instead of sha512sum on FreeBSD and DragonFly

Message ID 20180115125958.GK24454@redhat.com
State New
Headers show
Series use shasum instead of sha512sum on FreeBSD and DragonFly | expand

Commit Message

Jonathan Wakely Jan. 15, 2018, 12:59 p.m. UTC
boru on Freenode's #gcc channel pointed out that
contrib/download_prerequisites should use shasum for FreeBSD, not
sha512sum (which comes from GNU coreutils on GNU/Linux).  I checked
FreeBSD 11.0 and 10.2 and neither has sha512sum, not does DragonFly
4.2, another FreeBSD derivative.

OK for trunk?

Comments

Andreas Tobler Jan. 15, 2018, 9:16 p.m. UTC | #1
On 15.01.18 13:59, Jonathan Wakely wrote:
> boru on Freenode's #gcc channel pointed out that
> contrib/download_prerequisites should use shasum for FreeBSD, not
> sha512sum (which comes from GNU coreutils on GNU/Linux).  I checked
> FreeBSD 11.0 and 10.2 and neither has sha512sum, not does DragonFly
> 4.2, another FreeBSD derivative.
> 
> OK for trunk?

Works here on FreeBSD, thanks.
Andreas
Jonathan Wakely Jan. 29, 2018, 1:30 p.m. UTC | #2
On 15/01/18 12:59 +0000, Jonathan Wakely wrote:
>boru on Freenode's #gcc channel pointed out that
>contrib/download_prerequisites should use shasum for FreeBSD, not
>sha512sum (which comes from GNU coreutils on GNU/Linux).  I checked
>FreeBSD 11.0 and 10.2 and neither has sha512sum, not does DragonFly
>4.2, another FreeBSD derivative.
>
>OK for trunk?

Committed to trunk as obvious, since it's needed on those targets.

>diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites
>index ae0b5ffeb32..b50f47cda79 100755
>--- a/contrib/download_prerequisites
>+++ b/contrib/download_prerequisites
>@@ -47,7 +47,7 @@ force=0
> OS=$(uname)
> 
> case $OS in
>-  "Darwin")
>+  "Darwin"|"FreeBSD"|"DragonFly")
>     chksum='shasum -a 512 --check'
>   ;;
>   *)
diff mbox series

Patch

diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites
index ae0b5ffeb32..b50f47cda79 100755
--- a/contrib/download_prerequisites
+++ b/contrib/download_prerequisites
@@ -47,7 +47,7 @@  force=0
 OS=$(uname)
 
 case $OS in
-  "Darwin")
+  "Darwin"|"FreeBSD"|"DragonFly")
     chksum='shasum -a 512 --check'
   ;;
   *)