summaryrefslogtreecommitdiffhomepage
path: root/subr/ex_pkg_dispatch.subr
AgeCommit message (Collapse)AuthorFilesLines
2019-01-19build.sh, etc/build.usage, subr/ex_pkg_dispatch.subr: adds -r LAST.Lucio Andrés Illanes Albornoz1-7/+16
subr/ex_rtl_state.subr: adds ex_rtl_state_clear(). vars/midipix.vars: adds ${DEFAULT_BUILD_LAST_FAILED_PKG_FNAME}.
2018-04-30Correctly (zero-)initialise all locals.Lucio Andrés Illanes Albornoz1-4/+4
2017-12-22build.sh:fail_pkg: terminate pending builds given build failure, -P, and ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-5/+0
absence of -R. etc/build.usage: clarify the consequences of parallelising builds to guide the perplexed and to confuse the people of the tribe of certainty into enlightenment (or not?) subr/ex_pkg_dispatch.subr:exp_pkg_dispatch(): moved traps. subr/ex_pkg_exec.subr:ex_pkg_exec(): forcibly pkill(1) child processes on failure.
2017-12-06subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): don't launch new jobs if at ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-10/+12
least one package failed.
2017-12-05subr/build_init.subr: touch ${DEFAULT_BUILD_LOG_FNAME} and set ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
${BUILD_IS_PARENT=1}. subr/ex_pkg_dispatch.subr:exp_pkg_dispatch(): set ${BUILD_IS_PARENT=0} within child process context. subr/ex_rtl_log.subr:exp_rtl_log_printf(): append message sans attributes to ${DEFAULT_BUILD_LOG_FNAME} given ${BUILD_IS_PARENT}.
2017-12-05etc/build.usage: adds -P [jobs].Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+2
subr/build_args.subr: adds `optarg' arg type & ARG_PARALLEL:optarg:-P:auto. subr/build_init.subr: default ${ARG_PARALLEL} ([jobs]) to ${DEFAULT_BUILD_CPUS}. subr/ex_pkg_dispatch.subr: honour ${ARG_PARALLEL}, defaulting to no parallelisation.
2017-12-05subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): dispatch ${_njobs_max} jobs ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+10
prior to entering FIFO loop.
2017-12-05subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): open FIFO in read/write mode to ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
prevent EOF-related race conditions. subr/ex_pkg_exec.subr:ex_pkg_exec(): always dispatch finish for successfully built packages.
2017-12-05subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): correctly handle failed package ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-3/+0
builds.
2017-12-05subr/ex_pkg_dispatch.subr: maintain the count of jobs at its maximum at all ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-40/+56
times, whenever applicable.
2017-12-05vars/build.vars:{native_packages_*,dist_minipix}: enables parallelisation.Lucio Andrés Illanes Albornoz (arab, vxp)1-39/+52
vars/env.vars:${DEFAULT_BUILD_VARS}: adds ${PKG_PARALLELISE}. subr/ex_pkg_dispatch.subr: implements parallelisation.
2017-12-03subr/*.subr: fix header legends.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+5
subr/ex_pkg_dispatch.subr: add warning to header concerning set -o errexit.
2017-12-03etc/build.usage: update.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+2
subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): reimplement -r ALL.
2017-12-03Separate front end (build.sh, subr/build_*) from dispatcher.Lucio Andrés Illanes Albornoz (arab, vxp)1-40/+54
2017-11-29build.sh: always print std{out,err} logs given ${ARG_XTRACE} (-x.)Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+3
etc/build.usage: updated. subr/ex_pkg_dispatch.subr: set -o xtrace within child process given ${ARG_XTRACE} (-x.) subr/ex_setup_args.subr: set ${ARG_VERBOSE2} (-vv) given ${ARG_XTRACE} (-x.)
2017-11-23subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): fix potential race condition.Lucio Andrés Illanes Albornoz1-13/+14
subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): eliminate redundant 2nd FIFO.
2017-11-22subr/ex_pkg_{dispatch,env}.subr: move ${PKG_DISABLED} check.Lucio Andrés Illanes Albornoz (arab, vxp)1-11/+16
2017-11-22subr/ex_pkg_{dispatch,steps}.subr: split.Lucio Andrés Illanes Albornoz (arab, vxp)1-84/+20
subr/ex_pkg_{env,vars}.subr: moved checks.
2017-11-22build.sh, subr/ex_pkg_dispatch.subr: splits build logging and job control logic.Lucio Andrés Illanes Albornoz (arab, vxp)1-5/+36
subr/ex_pkg_dispatch.subr: dispatch background jobs w/ redirected std{err,out} & FIFO. subr/ex_pkg_state.subr:ex_pkg_state_init(): trap(1) signals to abort build. vars/{gcc,musl}.vars: don't exit(1) from within package subroutine.
2017-11-22subr/ex_pkg_dispatch.subr: correctly check for finished package status.Lucio Andrés Illanes Albornoz (arab, vxp)1-51/+53
2017-11-22subr/*: reorganised as {ex{,_{pkg,rtl,setup}},pkg}_*.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+71