50-bash-5.1.16.install.sh 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env bash
  2. # SPDX-License-Identifier: GPL-3.0-or-later
  3. # shellcheck source=packaging/makeself/functions.sh
  4. . "$(dirname "${0}")/../functions.sh" "${@}" || exit 1
  5. # shellcheck disable=SC2015
  6. [ "${GITHUB_ACTIONS}" = "true" ] && echo "::group::building bash" || true
  7. fetch "bash-5.1.16" "http://ftp.gnu.org/gnu/bash/bash-5.1.16.tar.gz" \
  8. 5bac17218d3911834520dad13cd1f85ab944e1c09ae1aba55906be1f8192f558
  9. export PKG_CONFIG_PATH="/openssl-static/lib/pkgconfig"
  10. run ./configure \
  11. --prefix="${NETDATA_INSTALL_PATH}" \
  12. --without-bash-malloc \
  13. --enable-static-link \
  14. --enable-net-redirections \
  15. --enable-array-variables \
  16. --disable-progcomp \
  17. --disable-profiling \
  18. --disable-nls
  19. run make clean
  20. run make -j "$(nproc)"
  21. cat > examples/loadables/Makefile << EOF
  22. all:
  23. clean:
  24. install:
  25. EOF
  26. run make install
  27. if [ "${NETDATA_BUILD_WITH_DEBUG}" -eq 0 ]; then
  28. run strip "${NETDATA_INSTALL_PATH}"/bin/bash
  29. fi
  30. # shellcheck disable=SC2015
  31. [ "${GITHUB_ACTIONS}" = "true" ] && echo "::endgroup::" || true