From 6e940c2c85759ac197c29d335a929dd06822a9df 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 15:11:56 +0100 Subject: - Changed sha256sum (1) file verification logic to use dgst(1SSL) instead. - Removed support for particularly pathnames with whitespace or tab cha- racters. If you have whitespaces in your pathnames anyway, the script will methodically destroy every single file on your disk(s). --- 006.musl.build | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to '006.musl.build') diff --git a/006.musl.build b/006.musl.build index b3b9ec6f..201eb598 100644 --- a/006.musl.build +++ b/006.musl.build @@ -1,46 +1,45 @@ -export lz_arch="${ARCH}" lz_cflags_debug="-O2" lz_target="${TARGET}"; +export lz_arch=${ARCH} lz_cflags_debug=-O2 lz_target=${TARGET}; if is_build_script_done finished; then exit 212; elif [ "x${3}" = "xno-complex" ]; then # Musl: build (no-complex) - _install="install_no_complex"; - 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}"; + _install=install_no_complex; + 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-${PKG_MUSL_VERSION}"; - tar -xf "musl-${PKG_MUSL_VERSION}.tar.gz"; - cp -R mmglue/* "musl-${PKG_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-${PKG_MUSL_VERSION}" "${3}"; + _destdir=${PREFIX_NATIVE}; + _install=install; + set_build_dir musl-${PKG_MUSL_VERSION} ${3}; else # Musl: build (full) - _install="install"; - set_build_dir "musl-${PKG_MUSL_VERSION}" "${TARGET}"; + _install=install; + set_build_dir musl-${PKG_MUSL_VERSION} ${TARGET}; fi; if ! is_build_script_done configured; then - rm_if_exists -m -c "${_build_dir}"; + rm_if_exists -m -c ${_build_dir}; ../lazy/lazy \ - -a "${ARCH}" \ + -a ${ARCH} \ -c gcc \ - -f "${_destdir:-${PREFIX_TARGET}}" \ + -f ${_destdir:-${PREFIX_TARGET}} \ -n musl \ - -p "../musl-${PKG_MUSL_VERSION}" \ - -t "${lz_target}" \ + -p ../musl-${PKG_MUSL_VERSION} \ + -t ${lz_target} \ -x config; set_build_script_done configured -built; else - cd "${_build_dir}"; + cd ${_build_dir}; fi; if ! is_build_script_done built; then - ./lazy \ - -e "${_install}" \ + ./lazy -e ${_install} \ -x build; set_build_script_done built finished; fi; -- cgit v1.2.3