From 75a203ce9044974fd5027654348c7a4414877e35 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: Sun, 7 Feb 2016 16:54:05 +0100 Subject: - Followup to last commit. - Inserted dalist, ntapi, pemagine, psxtypes, psxscl, and ntctty in between build levels 1 (binutils...) and 2 (coreutils...) which is now build level 3. - Added SHA256 manifest for the upstream patches of bash, as verifying the signatures provided would tie in GnuPG as a dependency. --- 300.coreutils.build | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 300.coreutils.build (limited to '300.coreutils.build') diff --git a/300.coreutils.build b/300.coreutils.build new file mode 100644 index 00000000..36bb0587 --- /dev/null +++ b/300.coreutils.build @@ -0,0 +1,69 @@ +parse_with_pkg_name ${2} \ + coreutils diffutils findutils patch \ + gawk bash make grep sed binutils; +if is_build_script_done finished; then + exit 212; +else + fetch ${PKG_URL} ${PKG_SHA256SUM}; + if [ "x${PKG_NAME}" = "xbinutils" ]\ + && [ "x${3}" = "xhost" ]; then + _no_config_cache=${_no_destdir:=1}; + _configure_args="--disable-werror --prefix=${PREFIX} --with-sysroot=${PREFIX_TARGET}"; + set_build_dir ${PKG_SUBDIR} cross; + else + _no_config_cache=${_no_destdir:=1}; + _configure_args="-C --host=${HOST_NATIVE} --prefix="; + set_build_dir ${PKG_SUBDIR} native; + fi; + _configure_args="${_configure_args}${PKG_CONFIGURE_EXTRA_ARGS:+ ${PKG_CONFIGURE_EXTRA_ARGS}}"; +fi; +if ! is_build_script_done extracted; then + rm_if_exists ${PKG_SUBDIR}; + tar -axf ${PKG_FNAME}; + set_build_script_done extracted -patched; +fi; +if ! is_build_script_done patched; then + if [ -n "${PKG_PATCHES_EXTRA}" ]; then + (rm_if_exists -m -c ${PKG_SUBDIR}-patches-extra; + wget -c -nd -np -r -R \*.htm\* -R \*.sig ${PKG_PATCHES_EXTRA} + for _patch_fname in \ + $(find . -type f -not -iname \*.sig | sort); do + patch -d ../${PKG_SUBDIR} -p0 \ + < ${_patch_fname}; + done; + for _patch_fname in ${PKG_PATCHES_EXTRA_MANIFEST}; do + _patch_sha256sum=${2}; shift; + if ! compare_hash ${_patch_fname} ${_patch_sha256sum}; then + log_msg fail "Error: hash mismatch for patch file \`${_patch_fname}'."; + exit 1; + fi; + done); wait; + fi; + patch -d ${PKG_SUBDIR} -p1 \ + < portage/${PKG_SUBDIR}.midipix.patch; + set_build_script_done patched -configured; +fi; +if ! is_build_script_done configured; then + rm_if_exists -m -c ${BUILD_DIR}; + [ ${_no_config_cache:-0} -eq 0 ] &&\ + cp ../portage/config.cache .; + ../${PKG_SUBDIR}/configure \ + ${_configure_args} --target=${TARGET}; + set_build_script_done configured -built; +else + cd ${BUILD_DIR}; +fi; +if ! is_build_script_done built; then + make ${MAKEFLAGS}; + set_build_script_done built -installed; +fi; +if ! is_build_script_done installed; then + if [ ${_no_destdir:-0} -eq 0 ]; then + make ${MAKEFLAGS} DESTDIR=${PREFIX_NATIVE} install; + else + make ${MAKEFLAGS} install; + fi; + set_build_script_done installed finished; +fi; + +# vim:filetype=sh -- cgit v1.2.3