summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--etc/build.usage9
-rw-r--r--subr/ex_pkg_dispatch.subr21
-rw-r--r--vars/build.vars253
-rw-r--r--vars/env.vars36
-rw-r--r--vars/gcc.vars48
5 files changed, 207 insertions, 160 deletions
diff --git a/etc/build.usage b/etc/build.usage
index b8016345..5c0f0540 100644
--- a/etc/build.usage
+++ b/etc/build.usage
@@ -35,11 +35,10 @@ usage: ./build.sh [-a nt32|nt64] [-b debug|release] [-C dir[,..]] [-D kind[,..]]
-v[v[v[v]]] Be verbose; -vv: always print package logs; -vvv: set xtrace during package builds; -vvvv: logs fileops.
--as-needed Don't build unless the midipix_build repository has received new commits.
--debug-minipix Don't strip(1) minipix binaries to facilitate debugging minipix.
- <group>[ ..] One of: host_deps, host_packages_deps, host_toolchain, host_toolchain_deps,
- host_toolchain_mingw32, host_tools, host_tools_rpm, minipix, native_packages,
- native_packages_deps, native_packages_deps_deps, native_packages_deps_x11,
- native_runtime, native_toolchain, native_toolchain_deps, native_toolchain_mingw32,
- and/or native_tools.
+ <group>[ ..] One of: host_deps, host_packages_deps, host_toolchain, host_toolchain_mingw32,
+ host_tools, host_tools_rpm, minipix, native_packages, native_packages_deps,
+ native_packages_deps_deps, native_packages_deps_x11, native_runtime,
+ native_toolchain, native_toolchain_mingw32, and/or native_tools.
${HOME}/midipix_build.vars, ${HOME}/.midipix_build.vars, and/or ../midipix_build.vars will be sourced if present.
diff --git a/subr/ex_pkg_dispatch.subr b/subr/ex_pkg_dispatch.subr
index cf92d8c5..255264fe 100644
--- a/subr/ex_pkg_dispatch.subr
+++ b/subr/ex_pkg_dispatch.subr
@@ -7,8 +7,9 @@
#
exp_pkg_check_depends() {
- local _pkg_depends="${1}" _pkg_name="${2}" _dependfl=0;
- if [ -z "${_restart}" ]; then
+ local _group_name="${1}" _pkg_depends="${2}" _pkg_name="${3}" _dependfl=0;
+ if [ -z "${_restart}" ]\
+ || ! [ "$(ex_rtl_get_var_unsafe "$(ex_rtl_toupper "${_group_name}")_IN_TREE"))" = "1" ]; then
for _pkg_name_depend in ${_pkg_depends}; do
if [ -n "$(ex_rtl_lsearch "${_pkgs_wait}" "${_pkg_name_depend}")" ]\
|| [ -z "$(ex_rtl_lsearch "${_pkgs_complete}" "${_pkg_name_depend}")" ]; then
@@ -23,12 +24,12 @@ exp_pkg_dispatch_group() {
local _njob=0 _pkg_depends="" _pkg_name="";
for _njob in $(seq 1 $((${_njobs_max}-${_njobs}))); do
for _pkg_name in ${_pkg_names}; do
- if [ -z "$(ex_rtl_lsearch "${_pkgs_complete}" "${_pkg_name}")" ] \
- && [ -z "$(ex_rtl_lsearch "${_pkgs_wait}" "${_pkg_name}")" ] \
+ if [ -z "$(ex_rtl_lsearch "${_pkgs_complete}" "${_pkg_name}")" ]\
+ && [ -z "$(ex_rtl_lsearch "${_pkgs_wait}" "${_pkg_name}")" ]\
&& _pkg_depends="$(exp_pkg_expand_packages $(ex_rtl_get_var_unsafe "PKG_$(ex_rtl_toupper "${_pkg_name}")_DEPENDS"))"\
- && exp_pkg_check_depends "${_pkg_depends}" "${_pkg_name}" \
- && exp_pkg_dispatch_package "${_dispatch_fn}" "${_group_name}" \
- "${_pkg_name}" "${_restart_at}" "${_stderrout_path}" \
+ && exp_pkg_check_depends "${_group_name}" "${_pkg_depends}" "${_pkg_name}" \
+ && exp_pkg_dispatch_package "${_dispatch_fn}" "${_group_name}" \
+ "${_pkg_name}" "${_restart_at}" "${_stderrout_path}" \
"${_pipe_path}"; then
_pkgs_found_new="${_pkgs_found_new:+${_pkgs_found_new} }${_pkg_name}";
break;
@@ -85,7 +86,8 @@ exp_pkg_get_packages() {
&& ! ex_rtl_lmatch "ALL LAST" " " "${_restart}"; then
_pkg_names="$(ex_rtl_lsearch "${_pkg_names}" "${_restart}")";
fi;
- if [ -z "${_restart}" ]; then
+ if [ -z "${_restart}" ]\
+ || ! [ "$(ex_rtl_get_var_unsafe "${_group_name_uc}"_IN_TREE)" = "1" ]; then
_pkg_names="$(ex_rtl_uniq $(exp_pkg_expand_packages ${_pkg_names}))";
fi;
};
@@ -98,7 +100,8 @@ ex_pkg_dispatch() {
"${_dispatch_fn}" start_group "${_group_name}" ""; ex_rtl_fileop mkdir "${BUILD_WORKDIR}";
if exp_pkg_get_packages "${_dispatch_fn}" "${_group_name}" "${_restart}"\
&& [ -n "${_pkg_names}" ]; then
- if [ "${ARG_PARALLEL:-0}" -gt 1 ]; then
+ if [ "${ARG_PARALLEL:-0}" -gt 1 ]\
+ && ! [ "$(ex_rtl_get_var_unsafe "$(ex_rtl_toupper "${_group_name}")"_IN_TREE)" = 1 ]; then
_njobs_max="${DEFAULT_BUILD_CPUS}";
fi;
ex_rtl_fileop mkfifo "${_pipe_path}"; exp_pkg_dispatch_group;
diff --git a/vars/build.vars b/vars/build.vars
index bc4c3bc1..a11a7f7a 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -285,6 +285,7 @@ HOST_DEPS_PREFIX="${PREFIX}";
: ${PKG_LIBFFI_HOST_URL:=ftp://sourceware.org/pub/libffi/libffi-${PKG_LIBFFI_HOST_VERSION}.tar.gz};
: ${PKG_LIBFFI_HOST_INSTALL_FILES:="@../lib/libffi-3.2.1/include/ffi.h=include/ffi.h @../lib/libffi-3.2.1/include/ffitarget.h=include/ffitarget.h"};
: ${PKG_LIBFFI_HOST_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/libffi/libffi-${PKG_LIBFFI_HOST_VERSION}.midipix.patch"};
+: ${PKG_LIBREADLINE_HOST_DEPENDS:="ncurses_host"};
: ${PKG_LIBREADLINE_HOST_SHA256SUM:=750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334};
: ${PKG_LIBREADLINE_HOST_VERSION:=7.0};
: ${PKG_LIBREADLINE_HOST_URL:=ftp://ftp.gnu.org/gnu/readline/readline-${PKG_LIBREADLINE_HOST_VERSION}.tar.gz};
@@ -429,8 +430,8 @@ HOST_TOOLCHAIN_CONFIGURE_ARGS="--disable-nls --prefix= --target=${DEFAULT_TARGET
HOST_TOOLCHAIN_MAKEFLAGS_INSTALL_EXTRA="prefix= PREFIX=";
HOST_TOOLCHAIN_PACKAGES="
binutils_host gcc_full_host gcc_libstdcpp_v3_host gcc_runtime_host
-gcc_stage1_host psxstub_host musl_no_complex_host gcc_runtime_host
-musl_full_host ldso_host gcc_libstdcpp_v3_host gcc_full_host nasm_host";
+gcc_stage1_host gmp_host ldso_host mpc_host mpfr_host musl_full_host
+musl_no_complex_host nasm_host psxstub_host psxtypes_host";
HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_BINUTILS_HOST_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa};
: ${PKG_BINUTILS_HOST_VERSION:=2.24.51};
@@ -443,21 +444,26 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_BINUTILS_HOST_MAKEFLAGS_INSTALL_EXTRA:="PREFIX= prefix="};
: ${PKG_BINUTILS_HOST_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/binutils/binutils-${PKG_BINUTILS_HOST_VERSION}.midipix.patch"};
: ${PKG_BINUTILS_HOST_PREFIX:=${PREFIX}};
+: ${PKG_GCC_FULL_HOST_DEPENDS:="gcc_stage1_host gcc_libstdcpp_v3_host ldso_host musl_full_host"};
: ${PKG_GCC_FULL_HOST_VERSION:=4.6.4};
: ${PKG_GCC_FULL_HOST_BASE_DIR:=${BUILD_WORKDIR}/gcc-host-${DEFAULT_TARGET}};
+: ${PKG_GCC_FULL_HOST_BUILD_DIR:="cbb-gcc-4.6.4-cross-x86_64-nt64-midipix"};
: ${PKG_GCC_FULL_HOST_GITROOT:=${DEFAULT_GITROOT}};
: ${PKG_GCC_FULL_HOST_NO_CLEAN_BASE_DIR:=1};
: ${PKG_GCC_FULL_HOST_PREFIX:=${PREFIX}};
+: ${PKG_GCC_LIBSTDCPP_V3_HOST_DEPENDS:="gcc_runtime_host gcc_stage1_host ldso_host musl_full_host"};
: ${PKG_GCC_LIBSTDCPP_V3_HOST_VERSION:=4.6.4};
: ${PKG_GCC_LIBSTDCPP_V3_HOST_BASE_DIR:=${BUILD_WORKDIR}/gcc-host-${DEFAULT_TARGET}};
: ${PKG_GCC_LIBSTDCPP_V3_HOST_GITROOT:=${DEFAULT_GITROOT}};
: ${PKG_GCC_LIBSTDCPP_V3_HOST_NO_CLEAN_BASE_DIR:=1};
: ${PKG_GCC_LIBSTDCPP_V3_HOST_PREFIX:=${PREFIX}};
+: ${PKG_GCC_RUNTIME_HOST_DEPENDS:="gcc_stage1_host musl_no_complex_host psxstub_host psxtypes_host"};
: ${PKG_GCC_RUNTIME_HOST_VERSION:=4.6.4};
: ${PKG_GCC_RUNTIME_HOST_BASE_DIR:=${BUILD_WORKDIR}/gcc-host-${DEFAULT_TARGET}};
: ${PKG_GCC_RUNTIME_HOST_GITROOT:=${DEFAULT_GITROOT}};
: ${PKG_GCC_RUNTIME_HOST_NO_CLEAN_BASE_DIR:=1};
: ${PKG_GCC_RUNTIME_HOST_PREFIX:=${PREFIX}};
+: ${PKG_GCC_STAGE1_HOST_DEPENDS:="binutils_host gmp_host mpc_host mpfr_host"};
: ${PKG_GCC_STAGE1_HOST_VERSION:=4.6.4};
: ${PKG_GCC_STAGE1_HOST_BASE_DIR:=${BUILD_WORKDIR}/gcc-host-${DEFAULT_TARGET}};
: ${PKG_GCC_STAGE1_HOST_CFLAGS_CONFIGURE:="-I${PREFIX}/include"};
@@ -470,6 +476,7 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_GMP_HOST_CONFIGURE_ARGS:="--disable-assembly --disable-nls --prefix="};
: ${PKG_GMP_HOST_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/gmp/gmp-${PKG_GMP_HOST_VERSION}.midipix.patch"};
: ${PKG_GMP_HOST_PREFIX:=${PREFIX}};
+: ${PKG_LDSO_HOST_DEPENDS:="gcc_stage1_host musl_full_host"};
: ${PKG_LDSO_HOST_URLS_GIT:=pemagine=${DEFAULT_GITROOT}/pemagine};
: ${PKG_LDSO_HOST_BUILD_TYPE:=cross};
: ${PKG_LDSO_HOST_CFLAGS_CONFIGURE_EXTRA:="-O0 -DPE_LDSO -I${PREFIX_CROSS}/include"};
@@ -477,16 +484,19 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_LDSO_HOST_INSTALL_FILES:="@../${DEFAULT_TARGET}/lib/libldso.a=${PREFIX}/lib/libldso.a"};
: ${PKG_LDSO_HOST_MAKEFLAGS_BUILD_EXTRA:=STATIC_LIB_NAME=libldso.a};
: ${PKG_LDSO_HOST_MAKEFLAGS_INSTALL_EXTRA:=STATIC_LIB_NAME=libldso.a};
+: ${PKG_MPC_HOST_DEPENDS:="gmp_host mpfr_host"};
: ${PKG_MPC_HOST_SHA256SUM:=ed5a815cfea525dc778df0cb37468b9c1b554aaf30d9328b1431ca705b7400ff};
: ${PKG_MPC_HOST_VERSION:=1.0.1};
: ${PKG_MPC_HOST_URL:=ftp://ftp.gnu.org/gnu/mpc/mpc-${PKG_MPC_HOST_VERSION}.tar.gz};
: ${PKG_MPC_HOST_CONFIGURE_ARGS:="--disable-nls --prefix= --with-gmp=${PREFIX} --with-mpfr=${PREFIX}"};
: ${PKG_MPC_HOST_PREFIX:=${PREFIX}};
+: ${PKG_MPFR_HOST_DEPENDS:="gmp_host"};
: ${PKG_MPFR_HOST_SHA256SUM:=79c73f60af010a30a5c27a955a1d2d01ba095b72537dab0ecaad57f5a7bb1b6b};
: ${PKG_MPFR_HOST_VERSION:=3.1.2};
: ${PKG_MPFR_HOST_URL:=ftp://ftp.gnu.org/gnu/mpfr/mpfr-${PKG_MPFR_HOST_VERSION}.tar.bz2};
: ${PKG_MPFR_HOST_CONFIGURE_ARGS:="--disable-nls --prefix= --with-gmp=${PREFIX}"};
: ${PKG_MPFR_HOST_PREFIX:=${PREFIX}};
+: ${PKG_MUSL_FULL_HOST_DEPENDS:="gcc_stage1_host gcc_runtime_host"};
: ${PKG_MUSL_FULL_HOST_SHA256SUM:=8a0feb41cef26c97dde382c014e68b9bb335c094bbc1356f6edaaf6b79bd14aa};
: ${PKG_MUSL_FULL_HOST_VERSION:=1.1.23};
: ${PKG_MUSL_FULL_HOST_URL:="http://www.musl-libc.org/releases/musl-${PKG_MUSL_FULL_HOST_VERSION}.tar.gz"}
@@ -497,6 +507,7 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_MUSL_FULL_HOST_CONFIGURE:=build/mmglue/configure};
: ${PKG_MUSL_FULL_HOST_CONFIGURE_ARGS:="--source-dir=../../musl-${PKG_MUSL_FULL_HOST_VERSION} --prefix= --target=${DEFAULT_TARGET} --sysroot=${PREFIX_CROSS}"};
: ${PKG_MUSL_FULL_HOST_SUBDIR:=musl-${PKG_MUSL_FULL_HOST_VERSION}};
+: ${PKG_MUSL_NO_COMPLEX_HOST_DEPENDS:="gcc_stage1_host"};
: ${PKG_MUSL_NO_COMPLEX_HOST_SHA256SUM:=8a0feb41cef26c97dde382c014e68b9bb335c094bbc1356f6edaaf6b79bd14aa};
: ${PKG_MUSL_NO_COMPLEX_HOST_VERSION:=1.1.23};
: ${PKG_MUSL_NO_COMPLEX_HOST_URL:="http://www.musl-libc.org/releases/musl-${PKG_MUSL_NO_COMPLEX_HOST_VERSION}.tar.gz"}
@@ -512,10 +523,12 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_NASM_HOST_URL:=https://fossies.org/linux/misc/nasm-${PKG_NASM_HOST_VERSION}.tar.xz};
: ${PKG_NASM_HOST_CFLAGS_CONFIGURE_EXTRA:=-DCOFF_MIDIPIX};
: ${PKG_NASM_HOST_PREFIX:=${PREFIX}};
+: ${PKG_PSXSTUB_HOST_DEPENDS:="gcc_stage1_host"};
: ${PKG_PSXSTUB_HOST_URLS_GIT:="psxstub=${DEFAULT_GITROOT}/psxstub"};
-: ${PKG_PSXSTUB_HOST_IN_TREE:=1};
: ${PKG_PSXSTUB_HOST_BUILD_STEPS_DISABLE:=build};
: ${PKG_PSXSTUB_HOST_ENV_VARS_EXTRA:=TARGET=${DEFAULT_TARGET}};
+: ${PKG_PSXSTUB_HOST_IN_TREE:=1};
+: ${PKG_PSXTYPES_HOST_DEPENDS:="gcc_stage1_host"};
: ${PKG_PSXTYPES_HOST_URLS_GIT:=psxtypes=${DEFAULT_GITROOT}/psxtypes};
: ${PKG_PSXTYPES_HOST_BUILD_STEPS_DISABLE:=build};
: ${PKG_PSXTYPES_HOST_CONFIGURE_ARGS:="--disable-nls --prefix="};
@@ -547,15 +560,20 @@ HOST_TOOLCHAIN_MINGW32_TARGET="x86_64-w64-mingw32";
#
# Build group native_tools
#
-NATIVE_TOOLS_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --prefix=/ --target=${DEFAULT_TARGET}";
+
+NATIVE_TOOLS_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS:+${DEFAULT_CFLAGS} }--sysroot=${PREFIX_NATIVE}";
+NATIVE_TOOLS_CONFIG_CACHE_LOCAL="${CONFIG_CACHE_GNULIB}";
+NATIVE_TOOLS_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --program-prefix= --prefix=/ --target=${DEFAULT_TARGET}";
+NATIVE_TOOLS_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
+NATIVE_TOOLS_MAKEFLAGS_INSTALL="PREFIX= prefix=";
NATIVE_TOOLS_PACKAGES="
-slibtool mdso perk pkgconf";
+mdso perk pkgconf slibtool";
NATIVE_TOOLS_PREFIX="${PREFIX_NATIVE}";
-: ${PKG_SLIBTOOL_URLS_GIT:="slibtool=git://midipix.org/slibtool"};
-: ${PKG_SLIBTOOL_CONFIGURE_ARGS:="--host=${DEFAULT_TARGET} --prefix= --target=${DEFAULT_TARGET}"};
+NATIVE_TOOLS_PYTHON="${PREFIX}/bin/python2";
: ${PKG_MDSO_URLS_GIT:="mdso=${DEFAULT_GITROOT}/mdso"};
: ${PKG_MDSO_CONFIGURE_ARGS:="--prefix= --target=${DEFAULT_TARGET}"};
: ${PKG_MDSO_INSTALL_FILES:="@mdso=bin/${DEFAULT_TARGET}-mdso /=${DEFAULT_TARGET}/bin @../../bin/mdso=${DEFAULT_TARGET}/bin/mdso"};
+: ${PKG_PERK_DEPENDS:="mdso"};
: ${PKG_PERK_URLS_GIT:="perk=${DEFAULT_GITROOT}/perk"};
: ${PKG_PERK_CFLAGS_CONFIGURE:="-I${PREFIX_NATIVE}/include"};
: ${PKG_PERK_CONFIGURE_ARGS:="--prefix= --target=${DEFAULT_TARGET}"};
@@ -565,14 +583,55 @@ NATIVE_TOOLS_PREFIX="${PREFIX_NATIVE}";
: ${PKG_PKGCONF_URL:=https://distfiles.dereferenced.org/pkgconf/pkgconf-${PKG_PKGCONF_HOST_VERSION}.tar.xz};
: ${PKG_PKGCONF_CONFIGURE_ARGS:="--prefix= --host=${DEFAULT_TARGET} --with-sysroot=${PREFIX_NATIVE}"};
: ${PKG_PKGCONF_INSTALL_FILES:=/=lib/pkgconfig};
+: ${PKG_SLIBTOOL_URLS_GIT:="slibtool=git://midipix.org/slibtool"};
+: ${PKG_SLIBTOOL_CONFIGURE_ARGS:="--host=${DEFAULT_TARGET} --prefix= --target=${DEFAULT_TARGET}"};
#
-# Build group native_toolchain_deps
+# Build group native_toolchain
#
-NATIVE_TOOLCHAIN_DEPS_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --prefix=/ --target=${DEFAULT_TARGET}";
-NATIVE_TOOLCHAIN_DEPS_PACKAGES="
-gmp libelf ncurses libreadline libz mpfr mpc";
-NATIVE_TOOLCHAIN_DEPS_PREFIX="${PREFIX_NATIVE}";
+NATIVE_TOOLCHAIN_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS:+${DEFAULT_CFLAGS} }--sysroot=${PREFIX_NATIVE}";
+NATIVE_TOOLCHAIN_CONFIG_CACHE_LOCAL="${CONFIG_CACHE_GNULIB}";
+NATIVE_TOOLCHAIN_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --program-prefix= --prefix=/ --target=${DEFAULT_TARGET}";
+NATIVE_TOOLCHAIN_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
+NATIVE_TOOLCHAIN_MAKEFLAGS_INSTALL="PREFIX= prefix=";
+NATIVE_TOOLCHAIN_PACKAGES="
+binutils bzip2 expat gcc_full gdb gmp libelf libreadline libz mpc mpfr
+musl_full ncurses python2";
+NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}";
+NATIVE_TOOLCHAIN_PYTHON="${PREFIX}/bin/python2";
+: ${PKG_BINUTILS_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa};
+: ${PKG_BINUTILS_VERSION:=2.24.51};
+: ${PKG_BINUTILS_URL:=ftp://sourceware.org/pub/binutils/snapshots/binutils-${PKG_BINUTILS_VERSION}.tar.bz2};
+: ${PKG_BINUTILS_CONFIGURE_ARGS_EXTRA:="--enable-deterministic-archives --with-libelf=${PREFIX_NATIVE} --with-gmp=${PREFIX_NATIVE} --with-mpc=${PREFIX_NATIVE} --with-mpfr=${PREFIX_NATIVE} --with-sysroot=/"};
+: ${PKG_BINUTILS_CFLAGS_CONFIGURE:="-isystem ${PREFIX_NATIVE}/include -Wno-error=cpp"};
+: ${PKG_BINUTILS_LDFLAGS_CONFIGURE:="-L${PREFIX_NATIVE}/lib"};
+: ${PKG_BINUTILS_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/binutils/binutils-${PKG_BINUTILS_VERSION}.midipix.patch"};
+: ${PKG_BINUTILS_LIBTOOL:=slibtool-static};
+: ${PKG_BZIP2_SHA256SUM:=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269};
+: ${PKG_BZIP2_VERSION:=1.0.8};
+: ${PKG_BZIP2_URL:=https://sourceware.org/pub/bzip2/bzip2-${PKG_BZIP2_VERSION}.tar.gz};
+: ${PKG_BZIP2_IN_TREE:=1};
+: ${PKG_BZIP2_INSTALL_FILES:="@bzdiff=bin/bzcmp @bzgrep=bin/bzegrep @bzgrep=bin/bzfgrep @bzmore=bin/bzless ../bzip2-${PKG_BZIP2_VERSION}/libbz2.so.1=lib/ ../bzip2-${PKG_BZIP2_VERSION}/libbz2.so.1.0.8=lib/"};
+: ${PKG_BZIP2_MAKEFLAGS_BUILD_EXTRA:=-f Makefile-libbz2_so};
+: ${PKG_BZIP2_MAKE_INSTALL_VNAME:=PREFIX};
+: ${PKG_EXPAT_SHA256SUM:=17b43c2716d521369f82fc2dc70f359860e90fa440bea65b3b85f0b246ea81f2};
+: ${PKG_EXPAT_VERSION:=2.2.6};
+: ${PKG_EXPAT_URL:=http://download.openpkg.org/components/cache/expat/expat-${PKG_EXPAT_VERSION}.tar.bz2};
+: ${PKG_GCC_FULL_DEPENDS:="gmp mpc mpfr"};
+: ${PKG_GCC_FULL_VERSION:=4.6.4};
+: ${PKG_GCC_FULL_BASE_DIR:=${BUILD_WORKDIR}/gcc-native-${DEFAULT_TARGET}};
+: ${PKG_GCC_FULL_GITROOT:=${DEFAULT_GITROOT}};
+: ${PKG_GDB_DEPENDS:="expat libreadline ncurses python2"};
+: ${PKG_GDB_SHA256SUM:=149abac4add030a5713f15964bd7465bef7a23712bcc91377ca40949f33e93fb};
+: ${PKG_GDB_VERSION:=7.12};
+: ${PKG_GDB_URL:=ftp://sourceware.org/pub/gdb/releases/gdb-${PKG_GDB_VERSION}.tar.gz};
+: ${PKG_GDB_CFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 -L${PREFIX_NATIVE}/lib"};
+: ${PKG_GDB_CXXFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 -L${PREFIX_NATIVE}/lib"};
+: ${PKG_GDB_CONFIGURE_ARGS_EXTRA:="--with-system-libiberty --with-system-readline --with-system-zlib --with-python=${PWD}/etc/python2.7-config"};
+: ${PKG_GDB_ENV_VARS_EXTRA:="CFLAGS_FOR_TARGET=-g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 --sysroot=${PREFIX_NATIVE}:LDFLAGS_FOR_TARGET=--sysroot=${PREFIX_NATIVE}"};
+: ${PKG_GDB_LIBTOOL:=rdlibtool};
+: ${PKG_GDB_MAKEFLAGS_BUILD_EXTRA:="SYSROOT_FLAGS=--sysroot=${PREFIX_NATIVE}"};
+: ${PKG_GDB_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/gdb/gdb-${PKG_GDB_VERSION}.midipix.patch"};
: ${PKG_GMP_SHA256SUM:=5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2};
: ${PKG_GMP_VERSION:=6.1.2};
: ${PKG_GMP_URL:=https://gmplib.org/download/gmp/gmp-${PKG_GMP_VERSION}.tar.bz2};
@@ -583,13 +642,7 @@ NATIVE_TOOLCHAIN_DEPS_PREFIX="${PREFIX_NATIVE}";
: ${PKG_LIBELF_URL:=https://fossies.org/linux/misc/old/libelf-${PKG_LIBELF_VERSION}.tar.gz};
: ${PKG_LIBELF_MAKE_INSTALL_VNAME:=prefix};
: ${PKG_LIBELF_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/libelf/libelf-${PKG_LIBELF_VERSION}.midipix.patch"};
-: ${PKG_NCURSES_SHA256SUM:=aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17};
-: ${PKG_NCURSES_VERSION:=6.1};
-: ${PKG_NCURSES_URL:=https://ftp.gnu.org/gnu/ncurses/ncurses-${PKG_NCURSES_VERSION}.tar.gz};
-: ${PKG_NCURSES_CONFIG_CACHE_LOCAL:="${CONFIG_CACHE_GNULIB}"};
-: ${PKG_NCURSES_CONFIGURE_ARGS:="-C --disable-nls --host=${DEFAULT_TARGET} --prefix= --program-prefix= --target=${DEFAULT_TARGET} --with-curses"};
-: ${PKG_NCURSES_CONFIGURE_ARGS_EXTRA:="--enable-pc-files --with-pkg-config-libdir=${PREFIX_NATIVE}/lib/pkgconfig --without-manpages --without-progs --with-shared --with-termlib --without-ada --without-tests --disable-widec --without-pthread"};
-: ${PKG_NCURSES_MAKEFLAGS_INSTALL:="PREFIX= prefix="};
+: ${PKG_LIBREADLINE_DEPENDS:="ncurses"};
: ${PKG_LIBREADLINE_SHA256SUM:=750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334};
: ${PKG_LIBREADLINE_VERSION:=7.0};
: ${PKG_LIBREADLINE_URL:=ftp://ftp.gnu.org/gnu/readline/readline-${PKG_LIBREADLINE_VERSION}.tar.gz};
@@ -604,31 +657,16 @@ NATIVE_TOOLCHAIN_DEPS_PREFIX="${PREFIX_NATIVE}";
: ${PKG_LIBZ_CONFIG_CACHE_LOCAL:="${CONFIG_CACHE_GNULIB}"};
: ${PKG_LIBZ_CONFIGURE_ARGS:="--host=${DEFAULT_TARGET} --prefix= --target=${DEFAULT_TARGET} --enable-shared"};
: ${PKG_LIBZ_MAKEFLAGS_INSTALL:="PREFIX= prefix="};
-: ${PKG_MPFR_SHA256SUM:=79c73f60af010a30a5c27a955a1d2d01ba095b72537dab0ecaad57f5a7bb1b6b};
-: ${PKG_MPFR_VERSION:=3.1.2};
-: ${PKG_MPFR_URL:=ftp://ftp.gnu.org/gnu/mpfr/mpfr-${PKG_MPFR_VERSION}.tar.bz2};
-: ${PKG_MPFR_CONFIGURE_ARGS_EXTRA:=--with-gmp=${PREFIX_NATIVE}};
+: ${PKG_MPC_DEPENDS:="gmp mpfr"};
: ${PKG_MPC_SHA256SUM:=ed5a815cfea525dc778df0cb37468b9c1b554aaf30d9328b1431ca705b7400ff};
: ${PKG_MPC_VERSION:=1.0.1};
: ${PKG_MPC_URL:=ftp://ftp.gnu.org/gnu/mpc/mpc-${PKG_MPC_VERSION}.tar.gz};
: ${PKG_MPC_CONFIGURE_ARGS_EXTRA:=--with-gmp=${PREFIX_NATIVE} --with-mpfr=${PREFIX_NATIVE}};
-
-#
-# Build group native_toolchain
-#
-NATIVE_TOOLCHAIN_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --prefix=/ --target=${DEFAULT_TARGET}";
-NATIVE_TOOLCHAIN_PACKAGES="
-binutils musl_full gcc_full";
-NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}";
-: ${PKG_BINUTILS_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa};
-: ${PKG_BINUTILS_VERSION:=2.24.51};
-: ${PKG_BINUTILS_URL:=ftp://sourceware.org/pub/binutils/snapshots/binutils-${PKG_BINUTILS_VERSION}.tar.bz2};
-: ${PKG_BINUTILS_CONFIGURE_ARGS_EXTRA:="--enable-deterministic-archives --with-libelf=${PREFIX_NATIVE} --with-gmp=${PREFIX_NATIVE} --with-mpc=${PREFIX_NATIVE} --with-mpfr=${PREFIX_NATIVE} --with-sysroot=/"};
-: ${PKG_BINUTILS_CFLAGS_CONFIGURE:="-isystem ${PREFIX_NATIVE}/include -Wno-error=cpp"};
-: ${PKG_BINUTILS_LDFLAGS_CONFIGURE:="-L${PREFIX_NATIVE}/lib"};
-: ${PKG_BINUTILS_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/binutils/binutils-${PKG_BINUTILS_VERSION}.midipix.patch"};
-: ${PKG_BINUTILS_LIBTOOL:=slibtool-static};
-
+: ${PKG_MPFR_DEPENDS:="gmp"};
+: ${PKG_MPFR_SHA256SUM:=79c73f60af010a30a5c27a955a1d2d01ba095b72537dab0ecaad57f5a7bb1b6b};
+: ${PKG_MPFR_VERSION:=3.1.2};
+: ${PKG_MPFR_URL:=ftp://ftp.gnu.org/gnu/mpfr/mpfr-${PKG_MPFR_VERSION}.tar.bz2};
+: ${PKG_MPFR_CONFIGURE_ARGS_EXTRA:=--with-gmp=${PREFIX_NATIVE}};
: ${PKG_MUSL_FULL_SHA256SUM:=8a0feb41cef26c97dde382c014e68b9bb335c094bbc1356f6edaaf6b79bd14aa};
: ${PKG_MUSL_FULL_VERSION:=1.1.23};
: ${PKG_MUSL_FULL_URL:="http://www.musl-libc.org/releases/musl-${PKG_MUSL_FULL_VERSION}.tar.gz"}
@@ -638,11 +676,24 @@ NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}";
: ${PKG_MUSL_FULL_CONFIGURE:=build/mmglue/configure};
: ${PKG_MUSL_FULL_CONFIGURE_ARGS:="--source-dir=../../musl-${PKG_MUSL_FULL_VERSION} --prefix= --target=${DEFAULT_TARGET} --sysroot=${PREFIX_CROSS}"};
: ${PKG_MUSL_FULL_SUBDIR:=musl-${PKG_MUSL_FULL_VERSION}};
+: ${PKG_NCURSES_SHA256SUM:=aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17};
+: ${PKG_NCURSES_VERSION:=6.1};
+: ${PKG_NCURSES_URL:=https://ftp.gnu.org/gnu/ncurses/ncurses-${PKG_NCURSES_VERSION}.tar.gz};
+: ${PKG_NCURSES_CONFIG_CACHE_LOCAL:="${CONFIG_CACHE_GNULIB}"};
+: ${PKG_NCURSES_CONFIGURE_ARGS:="-C --disable-nls --host=${DEFAULT_TARGET} --prefix= --program-prefix= --target=${DEFAULT_TARGET} --with-curses"};
+: ${PKG_NCURSES_CONFIGURE_ARGS_EXTRA:="--enable-pc-files --with-pkg-config-libdir=${PREFIX_NATIVE}/lib/pkgconfig --without-manpages --without-progs --with-shared --with-termlib --without-ada --without-tests --disable-widec --without-pthread"};
+: ${PKG_NCURSES_MAKEFLAGS_INSTALL:="PREFIX= prefix="};
+: ${PKG_PYTHON2_DEPENDS:="bzip2 libreadline ncurses"};
+: ${PKG_PYTHON2_SHA256SUM:=18617d1f15a380a919d517630a9cd85ce17ea602f9bbdc58ddc672df4b0239db};
+: ${PKG_PYTHON2_VERSION:=2.7.15};
+: ${PKG_PYTHON2_URL:="https://www.python.org/ftp/python/${PKG_PYTHON2_VERSION}/Python-${PKG_PYTHON2_VERSION}.tgz"};
+: ${PKG_PYTHON2_URLS_GIT:="sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main"};
+: ${PKG_PYTHON2_BASE_DIR:=${BUILD_WORKDIR}/python2-native-${DEFAULT_TARGET}};
+: ${PKG_PYTHON2_BUILD_DIR:=build/python2};
+: ${PKG_PYTHON2_CONFIGURE:=build/sbpython2/configure};
+: ${PKG_PYTHON2_CONFIGURE_ARGS:="--source-dir=../../Python-${PKG_PYTHON2_VERSION} --sysroot=${PREFIX_NATIVE} --prefix= --target=${DEFAULT_TARGET}"};
+: ${PKG_PYTHON2_ENV_VARS_EXTRA:="NATIVE_CFLAGS=-std=c99 -D_XOPEN_SOURCE=700 -I${PREFIX}/include:NATIVE_LDFLAGS=-L${PREFIX}/lib -ltinfo -Wl,-rpath,${PREFIX}/lib"};
-: ${PKG_GCC_FULL_VERSION:=4.6.4};
-: ${PKG_GCC_FULL_BASE_DIR:=${BUILD_WORKDIR}/gcc-native-${DEFAULT_TARGET}};
-: ${PKG_GCC_FULL_CFLAGS_CONFIGURE:="-I${PREFIX}/include"};
-: ${PKG_GCC_FULL_GITROOT:=${DEFAULT_GITROOT}};
#
# Build group native_toolchain_mingw32
@@ -657,6 +708,7 @@ NATIVE_TOOLCHAIN_MINGW32_PREFIX="${PREFIX_NATIVE}";
: ${PKG_BINUTILS_MINGW32_CONFIGURE_ARGS_EXTRA:="--enable-deterministic-archives --with-libelf=${PREFIX_NATIVE} --with-gmp=${PREFIX_NATIVE} --with-mpc=${PREFIX_NATIVE} --with-mpfr=${PREFIX_NATIVE} --with-sysroot=/"};
: ${PKG_BINUTILS_MINGW32_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/binutils/binutils-${PKG_BINUTILS_MINGW32_VERSION}.midipix.patch"};
: ${PKG_BINUTILS_MINGW32_LIBTOOL:=slibtool-static};
+: ${PKG_GCC_STAGE1_NATIVE_MINGW32_DEPENDS:="binutils_mingw32"};
: ${PKG_GCC_STAGE1_NATIVE_MINGW32_VERSION:=4.6.4};
: ${PKG_GCC_STAGE1_NATIVE_MINGW32_BASE_DIR:=${BUILD_WORKDIR}/gcc-native-x86_64-w64-mingw32};
: ${PKG_GCC_STAGE1_NATIVE_MINGW32_CFLAGS_CONFIGURE:="-I${PREFIX}/include"};
@@ -670,14 +722,10 @@ NATIVE_RUNTIME_BUILD_TYPE="native";
NATIVE_RUNTIME_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS_RUNTIME}";
NATIVE_RUNTIME_CONFIGURE_ARGS="--prefix= --strict --host=${DEFAULT_TARGET}";
NATIVE_RUNTIME_ENV_VARS_EXTRA="CFLAGS_PATH=-I${PREFIX_NATIVE}/include:LDFLAGS_PATH=-L${PREFIX_NATIVE}/lib";
-NATIVE_RUNTIME_PACKAGES="psxtypes pemagine dalist ldso ntcon ntapi psxscl psxscl_strace ntctty ntux ptycon u16ports sltdl";
+NATIVE_RUNTIME_PACKAGES="
+dalist ldso ntapi ntcon ntctty ntux pemagine psxscl psxscl_strace psxtypes ptycon sltdl u16ports";
NATIVE_RUNTIME_PREFIX="${PREFIX_NATIVE}";
-: ${PKG_PSXTYPES_URLS_GIT:=psxtypes=${DEFAULT_GITROOT}/psxtypes};
-: ${PKG_PSXTYPES_MAKEFLAGS_BUILD:="DESTDIR=${PREFIX_NATIVE}"};
-: ${PKG_PSXTYPES_IN_TREE:=1};
-: ${PKG_PEMAGINE_URLS_GIT:=pemagine=${DEFAULT_GITROOT}/pemagine};
-: ${PKG_PEMAGINE_CFLAGS_CONFIGURE_EXTRA:=-O0};
-: ${PKG_PEMAGINE_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_DALIST_DEPENDS:="ldso psxtypes"};
: ${PKG_DALIST_URLS_GIT:=dalist=${DEFAULT_GITROOT}/dalist};
: ${PKG_DALIST_INSTALL_TARGET_EXTRA:=install-lib};
: ${PKG_LDSO_URLS_GIT:=pemagine=${DEFAULT_GITROOT}/pemagine};
@@ -686,35 +734,51 @@ NATIVE_RUNTIME_PREFIX="${PREFIX_NATIVE}";
: ${PKG_LDSO_INSTALL_FILES:="/=${DEFAULT_TARGET}/lib @../../lib/libldso.a=${DEFAULT_TARGET}/lib/libldso.a"};
: ${PKG_LDSO_MAKEFLAGS_BUILD_EXTRA:=STATIC_LIB_NAME=libldso.a};
: ${PKG_LDSO_MAKEFLAGS_INSTALL_EXTRA:=STATIC_LIB_NAME=libldso.a};
-: ${PKG_NTCON_URLS_GIT:=ntcon=${DEFAULT_GITROOT}/ntcon};
-: ${PKG_NTCON_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_NTAPI_DEPENDS:="dalist ldso pemagine psxtypes"};
: ${PKG_NTAPI_URLS_GIT:=ntapi=${DEFAULT_GITROOT}/ntapi};
: ${PKG_NTAPI_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_NTCON_DEPENDS:="ldso pemagine"};
+: ${PKG_NTCON_URLS_GIT:=ntcon=${DEFAULT_GITROOT}/ntcon};
+: ${PKG_NTCON_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_NTCTTY_DEPENDS:="dalist ldso ntapi pemagine"};
+: ${PKG_NTCTTY_URLS_GIT:=ntctty=${DEFAULT_GITROOT_HEAD}/ntctty};
+: ${PKG_NTCTTY_CFLAGS_CONFIGURE_EXTRA:=-O0};
+: ${PKG_NTCTTY_SRC_TARBALL_DISABLE:=1};
+: ${PKG_NTUX_DEPENDS:="dalist ldso ntapi pemagine"};
+: ${PKG_NTUX_URLS_GIT:=ntux=${DEFAULT_GITROOT}/ntux};
+: ${PKG_NTUX_CFLAGS_CONFIGURE_EXTRA:=-O0};
+: ${PKG_NTUX_HOST_INSTALL_FILES:="ntux/bin/ntux=bin/ntux"};
+: ${PKG_PEMAGINE_DEPENDS:="ldso psxtypes"};
+: ${PKG_PEMAGINE_URLS_GIT:=pemagine=${DEFAULT_GITROOT}/pemagine};
+: ${PKG_PEMAGINE_CFLAGS_CONFIGURE_EXTRA:=-O0};
+: ${PKG_PEMAGINE_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_PSXSCL_DEPENDS:="dalist ldso ntapi pemagine psxtypes"};
: ${PKG_PSXSCL_URLS_GIT:=psxscl=${DEFAULT_GITROOT_HEAD}/psxscl};
: ${PKG_PSXSCL_CFLAGS_CONFIGURE_EXTRA:=-O0};
: ${PKG_PSXSCL_INSTALL_TARGET_EXTRA:=install-lib};
: ${PKG_PSXSCL_SRC_TARBALL_DISABLE:=1};
+: ${PKG_PSXSCL_STRACE_DEPENDS:="dalist ldso ntapi pemagine psxtypes"};
: ${PKG_PSXSCL_STRACE_URLS_GIT:=psxscl=${DEFAULT_GITROOT_HEAD}/psxscl};
: ${PKG_PSXSCL_STRACE_BUILD_STEPS_DISABLE:=install_make};
: ${PKG_PSXSCL_STRACE_CFLAGS_CONFIGURE_EXTRA:="-DPSX_EXTENDED_STRACE -O0"};
: ${PKG_PSXSCL_STRACE_INSTALL_FILES:="/=lib/debug ../obj/lib/libpsxscl.so=lib/debug/"};
: ${PKG_PSXSCL_STRACE_SRC_TARBALL_DISABLE:=1};
-: ${PKG_NTCTTY_URLS_GIT:=ntctty=${DEFAULT_GITROOT_HEAD}/ntctty};
-: ${PKG_NTCTTY_CFLAGS_CONFIGURE_EXTRA:=-O0};
-: ${PKG_NTCTTY_SRC_TARBALL_DISABLE:=1};
-: ${PKG_NTUX_URLS_GIT:=ntux=${DEFAULT_GITROOT}/ntux};
-: ${PKG_NTUX_CFLAGS_CONFIGURE_EXTRA:=-O0};
-: ${PKG_NTUX_HOST_INSTALL_FILES:="ntux/bin/ntux=bin/ntux"};
+: ${PKG_PSXTYPES_URLS_GIT:=psxtypes=${DEFAULT_GITROOT}/psxtypes};
+: ${PKG_PSXTYPES_MAKEFLAGS_BUILD:="DESTDIR=${PREFIX_NATIVE}"};
+: ${PKG_PSXTYPES_IN_TREE:=1};
+: ${PKG_PTYCON_DEPENDS:="dalist ldso ntapi ntcon"};
: ${PKG_PTYCON_URLS_GIT:=ptycon=${DEFAULT_GITROOT}/ptycon};
: ${PKG_PTYCON_CFLAGS_CONFIGURE_EXTRA:=-O0};
: ${PKG_PTYCON_INSTALL_TARGET_EXTRA:="install-app install-lib"};
: ${PKG_PTYCON_SRC_TARBALL_DISABLE:=1};
-: ${PKG_U16PORTS_CFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -Wno-missing-field-initializers"};
-: ${PKG_U16PORTS_URLS_GIT:=u16ports=${DEFAULT_GITROOT}/u16ports};
-: ${PKG_U16PORTS_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_SLTDL_DEPENDS:="ldso"};
: ${PKG_SLTDL_URLS_GIT:=sltdl=${DEFAULT_GITROOT}/sltdl};
: ${PKG_SLTDL_CONFIGURE_ARGS_EXTRA:=--as-ltdl-drop-in-replacement};
: ${PKG_SLTDL_INSTALL_TARGET_EXTRA:=install-lib};
+: ${PKG_U16PORTS_DEPENDS:="ldso"};
+: ${PKG_U16PORTS_URLS_GIT:=u16ports=${DEFAULT_GITROOT}/u16ports};
+: ${PKG_U16PORTS_CFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -Wno-missing-field-initializers"};
+: ${PKG_U16PORTS_INSTALL_TARGET_EXTRA:=install-lib};
#
# Build group native_packages_deps_deps
@@ -722,6 +786,7 @@ NATIVE_RUNTIME_PREFIX="${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_DEPS_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS:+${DEFAULT_CFLAGS} }--sysroot=${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_DEPS_CONFIG_CACHE_LOCAL="${CONFIG_CACHE_GNULIB}";
NATIVE_PACKAGES_DEPS_DEPS_CONFIGURE_ARGS="-C --disable-nls --host=${DEFAULT_TARGET} --prefix= --program-prefix= --target=${DEFAULT_TARGET}";
+NATIVE_PACKAGES_DEPS_DEPS_IN_ORDER=1;
NATIVE_PACKAGES_DEPS_DEPS_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_DEPS_MAKEFLAGS_INSTALL="PREFIX= prefix=";
NATIVE_PACKAGES_DEPS_DEPS_PACKAGES="
@@ -755,18 +820,19 @@ NATIVE_PACKAGES_DEPS_DEPS_PYTHON="${PREFIX}/bin/python2";
NATIVE_PACKAGES_DEPS_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS:+${DEFAULT_CFLAGS} }--sysroot=${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_CONFIG_CACHE_LOCAL="${CONFIG_CACHE_GNULIB}";
NATIVE_PACKAGES_DEPS_CONFIGURE_ARGS="-C --disable-nls --host=${DEFAULT_TARGET} --prefix= --program-prefix= --target=${DEFAULT_TARGET}";
+NATIVE_PACKAGES_DEPS_IN_ORDER=1;
NATIVE_PACKAGES_DEPS_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_MAKEFLAGS_INSTALL="PREFIX= prefix=";
NATIVE_PACKAGES_DEPS_PACKAGES="
-bmake libasr libatomic_ops bdwgc clzip expat xz libxml2 alsa_lib
-apr apr_util bzip2 libdmtx libressl libnettle libunistring gnutls
-lmdb libpcap libpng libjpeg_turbo tiff giflib lcms2 openjpeg libedit
-libffi gdbm geoip pcre gettext_tiny glib gzip musl_compat musl_fts
-libzip libpipeline libtelnet libevent libfetch libogg libvorbis libflac
-libtheora libsasl2 libshine libsndfile libgpg_error libassuan libfirm
-libgcrypt libksba libudns lua libxslt libtirpc npth popt file zstd dbus
-rpm libsolv tdnf shared_mime_info sqlite3 w32api w32lib cmake qrencode
-tcl util_linux slang utf8proc";
+bmake libasr libatomic_ops bdwgc clzip xz libxml2 alsa_lib apr apr_util
+libdmtx libressl libnettle libunistring gnutls lmdb libpcap libpng
+libjpeg_turbo tiff giflib lcms2 openjpeg libedit libffi gdbm geoip
+pcre gettext_tiny glib gzip musl_compat musl_fts libzip libpipeline
+libtelnet libevent libfetch libogg libvorbis libflac libtheora libsasl2
+libshine libsndfile libgpg_error libassuan libfirm libgcrypt libksba
+libudns lua libxslt libtirpc npth popt file zstd dbus rpm libsolv tdnf
+shared_mime_info sqlite3 w32api w32lib cmake qrencode tcl util_linux
+slang utf8proc";
NATIVE_PACKAGES_DEPS_PREFIX="${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2";
: ${PKG_BMAKE_URLS_GIT:="bmake=https://github.com/arichardson/bmake@master"};
@@ -786,9 +852,6 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2";
: ${PKG_CLZIP_URL:=http://download.savannah.gnu.org/releases/lzip/clzip/clzip-${PKG_CLZIP_VERSION}.tar.gz};
: ${PKG_CLZIP_CONFIGURE_ARGS:="CC=${DEFAULT_TARGET}-gcc --prefix="};
: ${PKG_CLZIP_IN_TREE:=1};
-: ${PKG_EXPAT_SHA256SUM:=17b43c2716d521369f82fc2dc70f359860e90fa440bea65b3b85f0b246ea81f2};
-: ${PKG_EXPAT_VERSION:=2.2.6};
-: ${PKG_EXPAT_URL:=http://download.openpkg.org/components/cache/expat/expat-${PKG_EXPAT_VERSION}.tar.bz2};
: ${PKG_XZ_SHA256SUM:=73df4d5d34f0468bd57d09f2d8af363e95ed6cc3a4a86129d2f2c366259902a2};
: ${PKG_XZ_VERSION:=5.2.2};
: ${PKG_XZ_URL:=https://github.com/xz-mirror/xz/releases/download/v${PKG_XZ_VERSION}/xz-${PKG_XZ_VERSION}.tar.gz};
@@ -809,13 +872,6 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2";
: ${PKG_APR_UTIL_URL:=https://archive.apache.org/dist/apr/apr-util-${PKG_APR_UTIL_VERSION}.tar.bz2};
: ${PKG_APR_UTIL_CONFIGURE_ARGS_EXTRA:="--with-apr=${BUILD_WORKDIR}/apr-native-${DEFAULT_TARGET}/obj"};
: ${PKG_APR_UTIL_INSTALL_FILES:=bin/apu-1-config=${PREFIX}/bin/${DEFAULT_TARGET}-apu-1-config};
-: ${PKG_BZIP2_SHA256SUM:=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269};
-: ${PKG_BZIP2_VERSION:=1.0.8};
-: ${PKG_BZIP2_URL:=https://sourceware.org/pub/bzip2/bzip2-${PKG_BZIP2_VERSION}.tar.gz};
-: ${PKG_BZIP2_IN_TREE:=1};
-: ${PKG_BZIP2_INSTALL_FILES:="@bzdiff=bin/bzcmp @bzgrep=bin/bzegrep @bzgrep=bin/bzfgrep @bzmore=bin/bzless ../bzip2-${PKG_BZIP2_VERSION}/libbz2.so.1=lib/ ../bzip2-${PKG_BZIP2_VERSION}/libbz2.so.1.0.8=lib/"};
-: ${PKG_BZIP2_MAKEFLAGS_BUILD_EXTRA:=-f Makefile-libbz2_so};
-: ${PKG_BZIP2_MAKE_INSTALL_VNAME:=PREFIX};
: ${PKG_LIBDMTX_SHA256SUM:=686bcfb44e50b96345aa53f41e285f2118a2cf87a333b69b74165a2e7ddca492};
: ${PKG_LIBDMTX_VERSION:=0.7.4};
: ${PKG_LIBDMTX_URL:=https://midipix.org/mirror/libdmtx/libdmtx-${PKG_LIBDMTX_VERSION}.tar.gz};
@@ -1080,6 +1136,7 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2";
NATIVE_PACKAGES_DEPS_X11_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS:+${DEFAULT_CFLAGS} }--sysroot=${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_X11_CONFIG_CACHE_LOCAL="${CONFIG_CACHE_GNULIB}";
NATIVE_PACKAGES_DEPS_X11_CONFIGURE_ARGS="-C --disable-nls --host=${DEFAULT_TARGET} --prefix= --program-prefix= --target=${DEFAULT_TARGET}";
+NATIVE_PACKAGES_DEPS_X11_IN_ORDER=1;
NATIVE_PACKAGES_DEPS_X11_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_X11_MAKEFLAGS_INSTALL="PREFIX= prefix=";
NATIVE_PACKAGES_DEPS_X11_PACKAGES="
@@ -1490,7 +1547,7 @@ the_silver_searcher toilet tree terminally_tetris ubase which w3m zsh";
#
# Packages list native_packages_dev
NATIVE_PACKAGES_DEV_PACKAGES="
-bison chicken cparser diffutils flex lunix m4 make mandoc nasm patch patchutils perl python2 python3 ruby smallbasic tk";
+bison chicken cparser diffutils flex lunix m4 make mandoc nasm patch patchutils perl python3 ruby smallbasic tk";
: ${PKG_BISON_SHA256SUM:=55e4a023b1b4ad19095a5f8279f0dc048fa29f970759cea83224a6d5e7a3a641};
: ${PKG_BISON_VERSION:=3.5};
: ${PKG_BISON_URL:=https://ftp.gnu.org/gnu/bison/bison-${PKG_BISON_VERSION}.tar.xz};
@@ -1550,15 +1607,6 @@ bison chicken cparser diffutils flex lunix m4 make mandoc nasm patch patchutils
: ${PKG_PERL_ENV_VARS_EXTRA:="TARGET=${DEFAULT_TARGET}"};
: ${PKG_PERL_MAKEFLAGS_BUILD:=-j1};
: ${PKG_PERL_SUBDIR:=perl-${PKG_PERL_VERSION}};
-: ${PKG_PYTHON2_SHA256SUM:=18617d1f15a380a919d517630a9cd85ce17ea602f9bbdc58ddc672df4b0239db};
-: ${PKG_PYTHON2_VERSION:=2.7.15};
-: ${PKG_PYTHON2_URL:="https://www.python.org/ftp/python/${PKG_PYTHON2_VERSION}/Python-${PKG_PYTHON2_VERSION}.tgz"};
-: ${PKG_PYTHON2_URLS_GIT:="sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main"};
-: ${PKG_PYTHON2_BASE_DIR:=${BUILD_WORKDIR}/python2-native-${DEFAULT_TARGET}};
-: ${PKG_PYTHON2_BUILD_DIR:=build/python2};
-: ${PKG_PYTHON2_CONFIGURE:=build/sbpython2/configure};
-: ${PKG_PYTHON2_CONFIGURE_ARGS:="--source-dir=../../Python-${PKG_PYTHON2_VERSION} --sysroot=${PREFIX_NATIVE} --prefix= --target=${DEFAULT_TARGET}"};
-: ${PKG_PYTHON2_ENV_VARS_EXTRA:="NATIVE_CFLAGS=-std=c99 -D_XOPEN_SOURCE=700 -I${PREFIX}/include:NATIVE_LDFLAGS=-L${PREFIX}/lib -ltinfo -Wl,-rpath,${PREFIX}/lib"};
: ${PKG_PYTHON3_SHA256SUM:=ab6193af1921b30f587b302fe385268510e80187ca83ca82d2bfe7ab544c6f91};
: ${PKG_PYTHON3_VERSION:=3.6.3};
: ${PKG_PYTHON3_URL:="https://www.python.org/ftp/python/${PKG_PYTHON3_VERSION}/Python-${PKG_PYTHON3_VERSION}.tgz"};
@@ -1590,9 +1638,12 @@ bison chicken cparser diffutils flex lunix m4 make mandoc nasm patch patchutils
#
# Packages list native_packages_etc
NATIVE_PACKAGES_ETC_PACKAGES="
-bochs ca_certificates cron dante debianutils emacs fetchmail ffmpeg gdb gnuchess ghostscript hastyhex hexcurse htop icecast isync infounzip
-infozip imagemagick john less libredwg lolcode mlogin mc mintty nano ncdu nullmailer openbsd_baseutils opensmtpd p7zip procps_ng qemu qpdf rdesktop rw rxvt_unicode st
-texinfo tmux tzdb vim yabasic xcowsay xeyes xorriso xterm xwd";
+bochs ca_certificates cron dante debianutils emacs fetchmail ffmpeg
+gnuchess ghostscript hastyhex hexcurse htop icecast isync infounzip
+infozip imagemagick john less libredwg lolcode mlogin mc mintty nano
+ncdu nullmailer openbsd_baseutils opensmtpd p7zip procps_ng qemu qpdf
+rdesktop rw rxvt_unicode st texinfo tmux tzdb vim yabasic xcowsay xeyes
+xorriso xterm xwd";
: ${PKG_BOCHS_SHA256SUM:=ee5b677fd9b1b9f484b5aeb4614f43df21993088c0c0571187f93acb0866e98c};
: ${PKG_BOCHS_VERSION:=2.6.9};
: ${PKG_BOCHS_URL:=https://sourceforge.mirrorservice.org/b/bo/bochs/bochs/${PKG_BOCHS_VERSION}/bochs-${PKG_BOCHS_VERSION}.tar.gz};
@@ -1635,16 +1686,6 @@ texinfo tmux tzdb vim yabasic xcowsay xeyes xorriso xterm xwd";
: ${PKG_FFMPEG_URL:=https://ffmpeg.org/releases/ffmpeg-${PKG_FFMPEG_VERSION}.tar.bz2};
: ${PKG_FFMPEG_CONFIGURE_ARGS:="--cc=${DEFAULT_TARGET}-gcc --cxx=${DEFAULT_TARGET}-g++ --disable-stripping --enable-cross-compile --enable-libshine --enable-libtheora --enable-libvorbis --enable-libxml2 --enable-openssl --pkg-config=${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config --prefix=/ --target-os=midipix --x86asmexe=${DEFAULT_TARGET}-nasm"};
: ${PKG_FFMPEG_CFLAGS_BUILD_EXTRA:="-I${PREFIX_NATIVE}/include/SDL2 -I${PREFIX_NATIVE}/include/libxml2 -std=gnu99"};
-: ${PKG_GDB_SHA256SUM:=149abac4add030a5713f15964bd7465bef7a23712bcc91377ca40949f33e93fb};
-: ${PKG_GDB_VERSION:=7.12};
-: ${PKG_GDB_URL:=ftp://sourceware.org/pub/gdb/releases/gdb-${PKG_GDB_VERSION}.tar.gz};
-: ${PKG_GDB_CFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 -L${PREFIX_NATIVE}/lib"};
-: ${PKG_GDB_CXXFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 -L${PREFIX_NATIVE}/lib"};
-: ${PKG_GDB_CONFIGURE_ARGS_EXTRA:="--with-system-libiberty --with-system-readline --with-system-zlib --with-python=${PWD}/etc/python2.7-config"};
-: ${PKG_GDB_ENV_VARS_EXTRA:="CFLAGS_FOR_TARGET=-g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 --sysroot=${PREFIX_NATIVE}:LDFLAGS_FOR_TARGET=--sysroot=${PREFIX_NATIVE}"};
-: ${PKG_GDB_LIBTOOL:=rdlibtool};
-: ${PKG_GDB_MAKEFLAGS_BUILD_EXTRA:="SYSROOT_FLAGS=--sysroot=${PREFIX_NATIVE}"};
-: ${PKG_GDB_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/gdb/gdb-${PKG_GDB_VERSION}.midipix.patch"};
: ${PKG_GNUCHESS_SHA256SUM:=9a99e963355706cab32099d140b698eda9de164ebce40a5420b1b9772dd04802};
: ${PKG_GNUCHESS_VERSION:=6.2.5};
: ${PKG_GNUCHESS_URL:=http://ftp.gnu.org/gnu/chess/gnuchess-${PKG_GNUCHESS_VERSION}.tar.gz};
@@ -2067,13 +2108,15 @@ MINIPIX_RPM_DISABLE=1;
#
INVARIANTS_NO_LOG_VARS=1;
INVARIANTS_PACKAGES="invariants_digest invariants_gitref invariants_minipix invariants_tarballs invariants_zipdist";
+: ${PKG_INVARIANTS_TARBALLS:="invariants_digest invariants_minipix"};
+: ${PKG_INVARIANTS_ZIPDIST:="invariants_minipix"};
#
# Build groups
#
GROUPS_DEFAULT="
host_tools host_deps host_deps_rpm host_toolchain host_toolchain_mingw32
-native_tools native_toolchain_deps native_toolchain native_toolchain_mingw32 native_runtime
+native_tools native_toolchain native_toolchain_mingw32 native_runtime
host_packages_deps native_packages_deps_deps native_packages_deps native_packages_deps_x11
native_packages
minipix";
diff --git a/vars/env.vars b/vars/env.vars
index 7e981fd0..0e993adf 100644
--- a/vars/env.vars
+++ b/vars/env.vars
@@ -1,23 +1,25 @@
DEFAULT_BUILD_STEPS="
- fetch_download fetch_extract \
- configure_patch_pre configure_autotools configure_patch configure \
- build \
- install_subdirs install_make install_files install_libs \
+ fetch_download fetch_extract \
+ configure_patch_pre configure_autotools configure_patch configure \
+ build \
+ install_subdirs install_make install_files install_libs \
install_pkgconfig install_purge_la install_strip install install_rpm clean";
DEFAULT_BUILD_VARS="
- AR BASE_DIR BUILD_DIR BUILD_STEPS_DISABLE BUILD_TYPE CC CFLAGS_BUILD_EXTRA \
- CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA CFLAGS_INSTALL_EXTRA CONFIG_CACHE \
- CONFIG_CACHE_EXTRA CONFIG_CACHE_LOCAL CONFIGURE CONFIGURE_ARGS \
- CONFIGURE_ARGS_EXTRA CXX CXXFLAGS_CONFIGURE_EXTRA DEPENDS DESTDIR \
- DISABLED ENV_VARS_EXTRA FNAME GITROOT INHERIT_FROM INSTALL_FILES \
- INSTALL_FILES INSTALL_FILES_DESTDIR INSTALL_FILES_DESTDIR_EXTRA \
- INSTALL_TARGET INSTALL_TARGET_EXTRA IN_TREE LDFLAGS_BUILD_EXTRA \
- LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA LDFLAGS_INSTALL_EXTRA \
- LIBTOOL MAKE MAKE_INSTALL_VNAME MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA \
- MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA NO_CLEAN_BASE_DIR NO_LOG_VARS \
- PYTHON PATCHES_EXTRA PKG_CONFIG PKG_CONFIG_PATH PKGLIST_DISABLE PREFIX \
- RANLIB RPM_DISABLE SHA256SUM SRC_TARBALL_DISABLE SUBDIR TARGET URL \
- URL_TYPE URLS_GIT VERSION";
+ AR BASE_DIR BUILD_DIR BUILD_STEPS_DISABLE BUILD_TYPE CC \
+ CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA \
+ CFLAGS_INSTALL_EXTRA CONFIG_CACHE CONFIG_CACHE_EXTRA \
+ CONFIG_CACHE_LOCAL CONFIGURE CONFIGURE_ARGS CONFIGURE_ARGS_EXTRA \
+ CXX CXXFLAGS_CONFIGURE_EXTRA DEPENDS DESTDIR DISABLED \
+ ENV_VARS_EXTRA FNAME GITROOT INHERIT_FROM INSTALL_FILES \
+ INSTALL_FILES INSTALL_FILES_DESTDIR INSTALL_FILES_DESTDIR_EXTRA \
+ INSTALL_TARGET INSTALL_TARGET_EXTRA IN_ORDER IN_TREE \
+ LDFLAGS_BUILD_EXTRA LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA \
+ LDFLAGS_INSTALL_EXTRA LIBTOOL MAKE MAKE_INSTALL_VNAME \
+ MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA MAKEFLAGS_INSTALL \
+ MAKEFLAGS_INSTALL_EXTRA NO_CLEAN_BASE_DIR NO_LOG_VARS PYTHON \
+ PATCHES_EXTRA PKG_CONFIG PKG_CONFIG_PATH PKGLIST_DISABLE PREFIX \
+ RANLIB RPM_DISABLE SHA256SUM SRC_TARBALL_DISABLE SUBDIR TARGET \
+ URL URL_TYPE URLS_GIT VERSION";
DEFAULT_LOG_MSG_FAIL_COLOUR=91;
DEFAULT_LOG_MSG_INFO_COLOUR=93;
DEFAULT_LOG_MSG_INF2_COLOUR=33;
diff --git a/vars/gcc.vars b/vars/gcc.vars
index 38249830..8939c957 100644
--- a/vars/gcc.vars
+++ b/vars/gcc.vars
@@ -126,14 +126,14 @@ pkg_gcc_stage1_all() {
# GCC, stage1.
if ! ex_pkg_state_test "${PKG_NAME}" fetch "${_restart_at}"; then
ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" "cbb-gcc-${PKG_VERSION}=${PKG_GITROOT}/cbb/cbb-gcc-${PKG_VERSION}";
- echo "step ${PKG_NAME} unknown fetch" >&3;
+ echo "step unknown ${PKG_NAME} fetch" >&3;
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;
- echo "step ${PKG_NAME} unknown patch" >&3;
+ echo "step unknown ${PKG_NAME} patch" >&3;
ex_pkg_state_set "${PKG_NAME}" patch -configure;
fi;
pkgp_gcc_setup_env "${PKG_VERSION}";
@@ -174,12 +174,12 @@ pkg_gcc_stage1_all() {
fi;
if ! ex_pkg_state_test "${PKG_NAME}" build "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} all-gcc;
- echo "step ${PKG_NAME} unknown build" >&3;
+ echo "step unknown ${PKG_NAME} build" >&3;
ex_pkg_state_set "${PKG_NAME}" build -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_subdirs "${_restart_at}"; then
pkg_install_subdirs;
- echo "step ${PKG_NAME} unknown install_subdirs" >&3;
+ echo "step unknown ${PKG_NAME} install_subdirs" >&3;
ex_pkg_state_set "${PKG_NAME}" install_subdirs -install_make;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_make "${_restart_at}"; then
@@ -196,12 +196,12 @@ pkg_gcc_stage1_all() {
ex_rtl_fileop ln_symbolic "${PKG_DESTDIR}/libexec/gcc/${PKG_TARGET}/${PKG_VERSION}/liblto_plugin.dll.a" \
ex_rtl_fileop ln_symbolic "${PKG_DESTDIR}/libexec/gcc/${PKG_TARGET}/${PKG_VERSION}/liblto_plugin.so";
fi;
- echo "step ${PKG_NAME} unknown install_make" >&3;
+ echo "step unknown ${PKG_NAME} install_make" >&3;
ex_pkg_state_set "${PKG_NAME}" install_make -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install "${_restart_at}"; then
pkg_install;
- echo "step ${PKG_NAME} unknown install" >&3;
+ echo "step unknown ${PKG_NAME} install" >&3;
ex_pkg_state_set "${PKG_NAME}" install finish;
fi;
};
@@ -215,22 +215,22 @@ pkg_gcc_runtime_host_all() {
# GCC, compiler runtime.
if ! ex_pkg_state_test "${PKG_NAME}" build "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} all-target-libgcc ${_vis_hide};
- echo "step ${PKG_NAME} unknown build" >&3;
+ echo "step unknown ${PKG_NAME} build" >&3;
ex_pkg_state_set "${PKG_NAME}" build -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_subdirs "${_restart_at}"; then
pkg_install_subdirs;
- echo "step ${PKG_NAME} unknown install_subdirs" >&3;
+ echo "step unknown ${PKG_NAME} install_subdirs" >&3;
ex_pkg_state_set "${PKG_NAME}" install_subdirs -install_make;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_make "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} "prefix=${PKG_DESTDIR}" install-target-libgcc;
- echo "step ${PKG_NAME} unknown install_make" >&3;
+ echo "step unknown ${PKG_NAME} install_make" >&3;
ex_pkg_state_set "${PKG_NAME}" install_make -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install "${_restart_at}"; then
pkg_install;
- echo "step ${PKG_NAME} unknown install" >&3;
+ echo "step unknown ${PKG_NAME} install" >&3;
ex_pkg_state_set "${PKG_NAME}" install finish;
fi;
};
@@ -243,22 +243,22 @@ pkg_gcc_libstdcpp_v3_host_all() {
# GCC, libstdc++-v3.
if ! ex_pkg_state_test "${PKG_NAME}" build "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} all-target-libstdc++-v3;
- echo "step ${PKG_NAME} unknown build" >&3;
+ echo "step unknown ${PKG_NAME} build" >&3;
ex_pkg_state_set "${PKG_NAME}" build -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_subdirs "${_restart_at}"; then
pkg_install_subdirs;
- echo "step ${PKG_NAME} unknown install_subdirs" >&3;
+ echo "step unknown ${PKG_NAME} install_subdirs" >&3;
ex_pkg_state_set "${PKG_NAME}" install_subdirs -install_make;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_make "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} "prefix=${PKG_DESTDIR}" install-target-libstdc++-v3;
- echo "step ${PKG_NAME} unknown install_make" >&3;
+ echo "step unknown ${PKG_NAME} install_make" >&3;
ex_pkg_state_set "${PKG_NAME}" install_make -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install "${_restart_at}"; then
pkg_install;
- echo "step ${PKG_NAME} unknown install" >&3;
+ echo "step unknown ${PKG_NAME} install" >&3;
ex_pkg_state_set "${PKG_NAME}" install finish;
fi;
};
@@ -271,22 +271,22 @@ pkg_gcc_full_host_all() {
# GCC, everything else.
if ! ex_pkg_state_test "${PKG_NAME}" build "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD};
- echo "step ${PKG_NAME} unknown build" >&3;
+ echo "step unknown ${PKG_NAME} build" >&3;
ex_pkg_state_set "${PKG_NAME}" build -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_subdirs "${_restart_at}"; then
pkg_install_subdirs;
- echo "step ${PKG_NAME} unknown install_subdirs" >&3;
+ echo "step unknown ${PKG_NAME} install_subdirs" >&3;
ex_pkg_state_set "${PKG_NAME}" install_subdirs -install_make;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_make "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} "prefix=${PKG_DESTDIR}" install;
- echo "step ${PKG_NAME} unknown install_make" >&3;
+ echo "step unknown ${PKG_NAME} install_make" >&3;
ex_pkg_state_set "${PKG_NAME}" install_make -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install "${_restart_at}"; then
pkg_install;
- echo "step ${PKG_NAME} unknown install" >&3;
+ echo "step unknown ${PKG_NAME} install" >&3;
ex_pkg_state_set "${PKG_NAME}" install finish;
fi;
};
@@ -299,14 +299,14 @@ pkg_gcc_full_all() {
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}=${PKG_GITROOT}/cbb/cbb-gcc-${PKG_VERSION}";
- echo "step ${PKG_NAME} unknown fetch" >&3;
+ echo "step unknown ${PKG_NAME} fetch" >&3;
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;
- echo "step ${PKG_NAME} unknown patch" >&3;
+ echo "step unknown ${PKG_NAME} patch" >&3;
ex_pkg_state_set "${PKG_NAME}" patch -configure;
fi;
pkgp_gcc_setup_env "${PKG_VERSION}";
@@ -338,22 +338,22 @@ pkg_gcc_full_all() {
make ${PKG_MAKEFLAGS_BUILD} all-target-libstdc++-v3;
make ${PKG_MAKEFLAGS_BUILD} all-target-libgfortran;
make ${PKG_MAKEFLAGS_BUILD} all;
- echo "step ${PKG_NAME} unknown build" >&3;
+ echo "step unknown ${PKG_NAME} build" >&3;
ex_pkg_state_set "${PKG_NAME}" build -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_subdirs "${_restart_at}"; then
pkg_install_subdirs;
- echo "step ${PKG_NAME} unknown install_subdirs" >&3;
+ echo "step unknown ${PKG_NAME} install_subdirs" >&3;
ex_pkg_state_set "${PKG_NAME}" install_subdirs -install_make;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_make "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} "prefix=${PKG_DESTDIR}" install;
- echo "step ${PKG_NAME} unknown install_make" >&3;
+ echo "step unknown ${PKG_NAME} install_make" >&3;
ex_pkg_state_set "${PKG_NAME}" install_make -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install "${_restart_at}"; then
pkg_install;
- echo "step ${PKG_NAME} unknown install" >&3;
+ echo "step unknown ${PKG_NAME} install" >&3;
ex_pkg_state_set "${PKG_NAME}" install finish;
fi;
};