From bd43d02c5f32a6d4d3f11ebcac4588ff77069173 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: Sat, 6 Feb 2016 13:10:41 +0100 Subject: - Added sha256sum (1) file verification logic to parse_with_pkg_name(), fetch(), and the respective build scripts (cheers sortie.) - Renamed ${..._VERSION} variables to ${PKG_..._VERSION} to prevent namespace collision (cheers drewrichardson.) - Use log_msg() in check_prereqs() in build.subr. --- 006.musl.build | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to '006.musl.build') diff --git a/006.musl.build b/006.musl.build index 8868c63a..b3b9ec6f 100644 --- a/006.musl.build +++ b/006.musl.build @@ -5,23 +5,24 @@ if is_build_script_done finished; then elif [ "x${3}" = "xno-complex" ]; then # Musl: build (no-complex) _install="install_no_complex"; - set_build_dir "musl-${MUSL_VERSION}" "${TARGET}-${3}"; - fetch "http://www.musl-libc.org/releases/musl-${MUSL_VERSION}.tar.gz"; + set_build_dir "musl-${PKG_MUSL_VERSION}" "${TARGET}-${3}"; + fetch "http://www.musl-libc.org/releases/musl-${PKG_MUSL_VERSION}.tar.gz" \ + "${PKG_MUSL_SHA256SUM}"; if ! is_build_script_done extracted; then - rm_if_exists "musl-${MUSL_VERSION}"; - tar -xf "musl-${MUSL_VERSION}.tar.gz"; - cp -R mmglue/* "musl-${MUSL_VERSION}/"; + rm_if_exists "musl-${PKG_MUSL_VERSION}"; + tar -xf "musl-${PKG_MUSL_VERSION}.tar.gz"; + cp -R mmglue/* "musl-${PKG_MUSL_VERSION}/"; set_build_script_done extracted -configured; fi; elif [ "x${3}" = "xnative" ]; then # Musl: build (full) _destdir="${PREFIX_NATIVE}"; _install="install"; - set_build_dir "musl-${MUSL_VERSION}" "${3}"; + set_build_dir "musl-${PKG_MUSL_VERSION}" "${3}"; else # Musl: build (full) _install="install"; - set_build_dir "musl-${MUSL_VERSION}" "${TARGET}"; + set_build_dir "musl-${PKG_MUSL_VERSION}" "${TARGET}"; fi; if ! is_build_script_done configured; then rm_if_exists -m -c "${_build_dir}"; @@ -30,7 +31,7 @@ if ! is_build_script_done configured; then -c gcc \ -f "${_destdir:-${PREFIX_TARGET}}" \ -n musl \ - -p "../musl-${MUSL_VERSION}" \ + -p "../musl-${PKG_MUSL_VERSION}" \ -t "${lz_target}" \ -x config; set_build_script_done configured -built; -- cgit v1.2.3