Browse Source

fix shasum wrapper on Darwin

Waldemar Brodkorb 9 years ago
parent
commit
ea8f054f81
2 changed files with 2 additions and 4 deletions
  1. 1 1
      mk/fetch.mk
  2. 1 3
      scripts/sha256sum

+ 1 - 1
mk/fetch.mk

@@ -31,7 +31,7 @@ ifneq ($(ADK_DISABLE_CHECKSUM),y)
 	@if [ ! -e $(firstword ${FULLDISTFILES}).nohash ]; then \
 	OK=n; \
 	allsums="$(strip ${PKG_HASH})"; \
-	(sha256sum ${FULLDISTFILES}; echo exit) | while read sum name; do \
+	(PATH='$(HOST_PATH)' sha256sum ${FULLDISTFILES}; echo exit) | while read sum name; do \
 		if [[ $$sum = exit ]]; then \
 			[[ $$OK = n ]] && echo >&2 "==> No distfile found!" || :; \
 			[[ $$OK = 1 ]] || exit 1; \

+ 1 - 3
scripts/sha256sum

@@ -10,7 +10,5 @@ elif [ -x /bin/cksum ] && [ $(echo | cksum -a sha256) = 01ba4719c80b6fe911b091a7
 	[[ $x = *FAILED* ]] && exit 1
 	exit 0
 else
-	tmp=$(mktemp -t yyy)
-	cat - > $tmp
-	shasum -a 256 "$@" $tmp
+	shasum -a 256 "$@"
 fi