summaryrefslogtreecommitdiff
path: root/lang/gcc8/patches/patch-contrib_download__prerequisites
blob: 0955fe7125b84506a9d3f5cbd70c8e0db2072712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-contrib_download__prerequisites,v 1.2 2019/04/18 19:18:02 rillig Exp $

Non-portable test

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90142

--- contrib/download_prerequisites.orig	2017-04-11 16:34:07.000000000 +0000
+++ contrib/download_prerequisites
@@ -122,7 +122,7 @@ md5_check() {
   md5_checksum_output=$(md5 -r "${file_to_check}")
   # Grab the text before the first space
   md5_checksum_detected="${md5_checksum_output%% *}"
-  [ "${md5_checksum_expected}" == "${md5_checksum_detected}" ] \
+  [ "${md5_checksum_expected}" = "${md5_checksum_detected}" ] \
     || die "Cannot verify integrity of possibly corrupted file ${file_to_check}"
   echo "${file_to_check}: OK"
 }