From patchwork Mon Jan 15 12:59:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 860870 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471266-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="E08KqOLP"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zKtkl66F4z9t6B for ; Tue, 16 Jan 2018 00:00:46 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=DCqP0zdsUv3K86iU2PuniM50QbMKG5C7aW7+EXanQHE/QkgT9W 6WcCdtcUrkDSBvAbHL3sVbNbZC8wfAA5r+x7SqDnuOdYZT8F4kW1hN6TPZRP8Wj2 /cz1ItSK7+7TW3ZVgEhl+SFsmhCMPNGkRJoU4Zp9Ut/izc5PngMdy5UKY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=9p76QsxjFa8c7404gCj/2nP9o6c=; b=E08KqOLPCAtCvsu5NEzZ DUon9fMrp4bk3RLL7L4IgXOIdiwmk1Sxd68KmPSy7WxBWfvmHlY2z28jUIivD9e2 ZshApt7F4aZsFtPwlxml3R83VBbi9YrnJKXA4UGQ/Cp42IjXl3/0HQ9oMOUGGTSE x3yQwSCrIRH5QNUPgeO7aEU= Received: (qmail 79136 invoked by alias); 15 Jan 2018 13:00:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 78883 invoked by uid 89); 15 Jan 2018 13:00:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=coreutils, H*Ad:U*andreast, 11.0, OS X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Jan 2018 13:00:14 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 45B637E420; Mon, 15 Jan 2018 13:00:00 +0000 (UTC) Received: from localhost (unknown [10.33.36.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 67AE160C94; Mon, 15 Jan 2018 12:59:59 +0000 (UTC) Date: Mon, 15 Jan 2018 12:59:58 +0000 From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Cc: Andreas Tobler , John Marino Subject: [PATCH] use shasum instead of sha512sum on FreeBSD and DragonFly Message-ID: <20180115125958.GK24454@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.1 (2017-09-22) 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? 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' ;; *)