summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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