From 300736a9808ce47f47c9277e6a661233d13d9291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 6 Feb 2017 19:52:23 +0100 Subject: build.sh: always build all steps for packages in the `INVARIANTS' target. subr/post_sha256sums.subr: use relative pathnames in SHA256SUMS. --- subr/post_sha256sums.subr | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'subr') diff --git a/subr/post_sha256sums.subr b/subr/post_sha256sums.subr index ed9f3ce7..41b131d9 100644 --- a/subr/post_sha256sums.subr +++ b/subr/post_sha256sums.subr @@ -10,11 +10,12 @@ post_sha256sums() { if [ -e "${PREFIX}/SHA256SUMS" ]; then build_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last"; fi; - for __ in $(find "${PREFIX_NATIVE}" -type f -perm /a=x \ - \( -path "${PREFIX_NATIVE}/bin/*" -or \ - -path "${PREFIX_NATIVE}/lib/*" \)); do + (cd "${PREFIX}"; + for __ in $(find "${PREFIX_NATIVE#${PREFIX}/}" -type f -perm /a=x \ + \( -path "${PREFIX_NATIVE#${PREFIX}/}/bin/*" -or \ + -path "${PREFIX_NATIVE#${PREFIX}/}/lib/*" \)); do sha256sum "${__}"; - done > "${PREFIX}/SHA256SUMS"; + done > "${PREFIX}/SHA256SUMS"); fi; }; -- cgit v1.2.3