pkgsrc/cross/aarch64-none-elf-gcc/patches/patch-contrib_download__prerequisites
jmcneill bba2568f70 Add cross-aarch64-none-elf-gcc version 7.2.0
GCC for bare metal AArch64 ELF environment with newlib.
2017-09-01 20:56:43 +00:00

15 lines
656 B
Text

$NetBSD: patch-contrib_download__prerequisites,v 1.1 2017/09/01 20:56:43 jmcneill Exp $
* POSIX shell portability
--- 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"
}