summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2024-03-20 14:03:15 -0400
committerGitHub <noreply@github.com>2024-03-20 14:03:15 -0400
commit8128af5210538780af89c87f9d87c246baa0b043 (patch)
tree839225b1b7dda284a0afc89553a5a6383f8cd165 /netdata-installer.sh
parent11cf7564d5e3cdf524c38c6b29141932e5cfcbde (diff)
Move bundling of libyaml to CMake. (#17190)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh67
1 files changed, 0 insertions, 67 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 50bfa30fae..b8a598dc69 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -624,73 +624,6 @@ bundle_jsonc() {
bundle_jsonc
# -----------------------------------------------------------------------------
-build_yaml() {
- env_cmd=''
-
- if [ -z "${DONT_SCRUB_CFLAGS_EVEN_THOUGH_IT_MAY_BREAK_THINGS}" ]; then
- env_cmd="env CFLAGS='-fPIC -pipe -Wno-unused-value' CXXFLAGS='-fPIC -pipe' LDFLAGS="
- fi
-
- cd "${1}" > /dev/null || return 1
- run eval "${env_cmd} ./configure --disable-shared --disable-dependency-tracking --with-pic"
- run eval "${env_cmd} ${make} ${MAKEOPTS}"
- cd - > /dev/null || return 1
-}
-
-copy_yaml() {
- target_dir="${PWD}/externaldeps/libyaml"
-
- run mkdir -p "${target_dir}" || return 1
-
- run cp "${1}/src/.libs/libyaml.a" "${target_dir}/libyaml.a" || return 1
- run cp "${1}/include/yaml.h" "${target_dir}/" || return 1
-}
-
-bundle_yaml() {
- if pkg-config yaml-0.1; then
- BUNDLE_YAML=0
- return 0
- fi
-
- if [ -z "${make}" ]; then
- fatal "Need to bundle libyaml but cannot find a copy of Make to build it with. Either install development files for libyaml, or install a usable copy fo Make." I0016
- fi
-
- [ -n "${GITHUB_ACTIONS}" ] && echo "::group::Bundling YAML."
-
- progress "Prepare YAML"
-
- YAML_PACKAGE_VERSION="$(cat packaging/yaml.version)"
-
- tmp="$(mktemp -d -t netdata-yaml-XXXXXX)"
- YAML_PACKAGE_BASENAME="yaml-${YAML_PACKAGE_VERSION}.tar.gz"
-
- if fetch_and_verify "yaml" \
- "https://github.com/yaml/libyaml/releases/download/${YAML_PACKAGE_VERSION}/${YAML_PACKAGE_BASENAME}" \
- "${YAML_PACKAGE_BASENAME}" \
- "${tmp}" \
- "${NETDATA_LOCAL_TARBALL_OVERRIDE_YAML}"; then
- if run tar --no-same-owner -xf "${tmp}/${YAML_PACKAGE_BASENAME}" -C "${tmp}" &&
- build_yaml "${tmp}/yaml-${YAML_PACKAGE_VERSION}" &&
- copy_yaml "${tmp}/yaml-${YAML_PACKAGE_VERSION}" &&
- rm -rf "${tmp}"; then
- run_ok "YAML built and prepared."
- BUNDLE_YAML=1
- else
- run_failed "Failed to build YAML, critical error."
- BUNDLE_YAML=0
- fi
- else
- run_failed "Unable to fetch sources for YAML, critical error."
- BUNDLE_YAML=0
- fi
-
- [ -n "${GITHUB_ACTIONS}" ] && echo "::endgroup::"
-}
-
-bundle_yaml
-
-# -----------------------------------------------------------------------------
get_kernel_version() {
r="$(uname -r | cut -f 1 -d '-')"