summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-05-02 08:53:53 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-05-02 08:53:53 +0200
commitea8f054f819ba3461bf2caeb0a840476ee021d6a (patch)
tree39c0c887627706f36554d7167554834ff4acd1d6
parentf611b9c0e05eaaa5c1466f0996fcb402964ee58d (diff)
fix shasum wrapper on Darwin
-rw-r--r--mk/fetch.mk2
-rwxr-xr-xscripts/sha256sum4
2 files changed, 2 insertions, 4 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index 64d94cb24..dfd190a55 100644
--- a/mk/fetch.mk
+++ b/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; \
diff --git a/scripts/sha256sum b/scripts/sha256sum
index 2a7ffb6f7..e70973364 100755
--- a/scripts/sha256sum
+++ b/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