We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4556d29 commit 588cefaCopy full SHA for 588cefa
1 file changed
util/build-gnu.sh
@@ -100,6 +100,16 @@ else
100
done
101
fi
102
[ -e "${UU_BUILD_DIR}/ginstall" ] || ln -vf "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests use ginstall
103
+
104
+# Install libstdbuf.so for stdbuf (required when feat_external_libstdbuf is enabled)
105
+LIBSTDBUF_DIR="${LIBSTDBUF_DIR:-/usr/local/libexec/coreutils}"
106
+if [ -w "${LIBSTDBUF_DIR}" ] || [ -w "$(dirname "${LIBSTDBUF_DIR}")" ]; then
107
+ mkdir -p "${LIBSTDBUF_DIR}"
108
+ cp -f "${UU_BUILD_DIR}/deps/libstdbuf.so" "${LIBSTDBUF_DIR}/"
109
+elif command -v sudo >/dev/null 2>&1; then
110
+ sudo mkdir -p "${LIBSTDBUF_DIR}"
111
+ sudo cp -f "${UU_BUILD_DIR}/deps/libstdbuf.so" "${LIBSTDBUF_DIR}/"
112
+fi
113
##
114
115
cd "${path_GNU}" && echo "[ pwd:'${PWD}' ]"
0 commit comments