From cd416f3e7559cc7f6484cad505267f3b9e041b4b Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Apr 29 2020 18:37:15 +0000 Subject: Designate {debug,release} build as build kind. --- diff --git a/pkgtool.sh b/pkgtool.sh index 41a0fde..958e9e9 100755 --- a/pkgtool.sh +++ b/pkgtool.sh @@ -89,7 +89,7 @@ pkgtoolp_shell() { rtl_log_msg info "Run \$R to rebuild \`%s'." "${_pkg_name}"; rtl_log_msg info "Run \$RS to restart the specified build step of \`%s'" "${_pkg_name}"; rtl_log_msg info "Run \$D to automatically regenerate the patch for \`%s'." "${_pkg_name}"; - export ARCH BUILD \ + export ARCH BUILD_KIND \ BUILD_DLCACHEDIR BUILD_WORKDIR \ MAKE="make LIBTOOL=${PKG_LIBTOOL:-slibtool}" \ MIDIPIX_BUILD_PWD \ @@ -172,7 +172,7 @@ pkgtoolp_update_diff() { }; pkgtool() { - local _rc=0 _status="" BUILD_GROUPS="" ARCH BUILD BUILD_WORKDIR PKGTOOL_PKGNAME PREFIX; + local _rc=0 _status="" BUILD_GROUPS="" ARCH BUILD_KIND BUILD_WORKDIR PKGTOOL_PKGNAME PREFIX; if ! . "${0%/*}/subr/pkgtool_init.subr"; then _rc=1; printf "Error: failed to source \`${0%/*}/subr/pkgtool_init.subr'." >&2; elif ! pkgtool_init "${@}"; then diff --git a/subr/ex_pkg.subr b/subr/ex_pkg.subr index 8e7451d..8df0e17 100644 --- a/subr/ex_pkg.subr +++ b/subr/ex_pkg.subr @@ -78,7 +78,7 @@ ex_pkg_load_dump() { if [ ! -e "${_workdir}/${_pkg_name}.dump" ]; then rtl_log_msg warning "Warning: failed to locate environment dump for package \`%s' in \`%s'." "${_pkg_name}" "${_workdir}"; rtl_log_msg info "Rebuilding package \`%s' w/ --dump-in _build..." "${_pkg_name}"; - (export ARCH BUILD BUILD_DLCACHEDIR BUILD_WORKDIR \ + (export ARCH BUILD_KIND BUILD_DLCACHEDIR BUILD_WORKDIR \ PREFIX PREFIX_CROSS PREFIX_MINGW32 PREFIX_MINIPIX \ PREFIX_NATIVE PREFIX_ROOT PREFIX_RPM; ./build.sh --dump-in _build -P -r "${_pkg_name}" -v);