From 0580af8a0231775177226c1013378de1a878ec29 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Dec 03 2017 17:18:12 +0000 Subject: vars/build.vars:{gcc,musl}_full: process within ${BUILD_WORKDIR}/{gcc,musl}-build-native. vars/gcc.vars:pkg_gcc_full_all(): add {fetch,patch} build steps. --- diff --git a/vars/build.vars b/vars/build.vars index 328e3f7..af85fba 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -195,10 +195,10 @@ NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}"; : ${PKG_MUSL_FULL_SHA256SUM:=720b83c7e276b4b679c0bffe9509340d5f81fd601508e607e708177df0d31c0e}; : ${PKG_MUSL_FULL_VERSION:=1.1.12}; : ${PKG_MUSL_FULL_URL:=http://www.musl-libc.org/releases/musl-${PKG_MUSL_NATIVE_VERSION}.tar.gz}; -: ${PKG_MUSL_FULL_BASE_DIR:=${BUILD_WORKDIR}/musl-build}; +: ${PKG_MUSL_FULL_BASE_DIR:=${BUILD_WORKDIR}/musl-build-native}; : ${PKG_MUSL_FULL_NO_CLEAN_BASE_DIR:=1}; : ${PKG_GCC_FULL_VERSION:=4.6.4}; -: ${PKG_GCC_FULL_BASE_DIR:=${BUILD_WORKDIR}/gcc-build}; +: ${PKG_GCC_FULL_BASE_DIR:=${BUILD_WORKDIR}/gcc-build-native}; : ${PKG_GCC_FULL_NO_CLEAN_BASE_DIR:=1}; : ${PKG_MDSO_URLS_GIT:="mdso=${DEFAULT_GITROOT}/mdso"}; : ${PKG_MDSO_CONFIGURE_ARGS:="--prefix=/usr --target=${DEFAULT_TARGET}"}; diff --git a/vars/gcc.vars b/vars/gcc.vars index c5e1f22..76a1437 100644 --- a/vars/gcc.vars +++ b/vars/gcc.vars @@ -261,6 +261,16 @@ pkg_gcc_full_all() { export MAKE="make LIBTOOL=slibtool"; # GCC, native. pkgp_gcc_build_dir "cbb-gcc-${PKG_VERSION}" native; + if ! ex_pkg_state_test "${PKG_NAME}" fetch "${_restart_at}"; then + ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" "cbb-gcc-${PKG_VERSION}=${DEFAULT_GITROOT}/cbb/cbb-gcc-${PKG_VERSION}"; + ex_pkg_state_set "${PKG_NAME}" fetch -patch; + fi; + if ! ex_pkg_state_test "${PKG_NAME}" patch "${_restart_at}"; then + if [ -e "${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.local.patch" ]; then + patch -b -d "${PKG_BASE_DIR}" -p0 < "${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.local.patch"; + fi; + ex_pkg_state_set "${PKG_NAME}" patch -configure; + fi; pkgp_gcc_setup_env "${PKG_VERSION}"; if ! ex_pkg_state_test "${PKG_NAME}" configure "${_restart_at}"; then ex_rtl_fileop mkdir "${PKG_PREFIX}/${PKG_TARGET}";