Skip to content

Commit bf49ce9

Browse files
committed
build-gnu: always refresh hardlinks after cargo build, silence libstdbuf same-inode warning
1 parent 786ac84 commit bf49ce9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

util/build-gnu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ else
9595
# Use MULTICALL=y for faster build
9696
make MULTICALL=y SKIP_UTILS=more
9797
for binary in $("${UU_BUILD_DIR}"/coreutils --list)
98-
do [ -e "${UU_BUILD_DIR}/${binary}" ] || ln -vf "${UU_BUILD_DIR}/coreutils" "${UU_BUILD_DIR}/${binary}"
98+
do [ "${UU_BUILD_DIR}/coreutils" -ef "${UU_BUILD_DIR}/${binary}" ] || ln -vf "${UU_BUILD_DIR}/coreutils" "${UU_BUILD_DIR}/${binary}"
9999
done
100-
ln -vf "${UU_BUILD_DIR}"/deps/libstdbuf.* -t "${UU_BUILD_DIR}"
100+
ln -vf "${UU_BUILD_DIR}"/deps/libstdbuf.* -t "${UU_BUILD_DIR}" 2>/dev/null || true
101101
fi
102-
[ -e "${UU_BUILD_DIR}/ginstall" ] || ln -vf "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests use ginstall
102+
[ "${UU_BUILD_DIR}/install" -ef "${UU_BUILD_DIR}/ginstall" ] || ln -vf "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests use ginstall
103103
##
104104

105105
cd "${path_GNU}" && echo "[ pwd:'${PWD}' ]"

0 commit comments

Comments
 (0)