summaryrefslogtreecommitdiffhomepage
path: root/build.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-03-05subr/ex_pkg_dispatch.subr: implement *<group>: inhibit group-group ↵Lucio Andrés Illanes Albornoz1-3/+3
dependency expansion. etc/{build.usage,README.md}, subr/build_init.subr: updated.
2020-03-02build.sh:build(): iteratively print list of unknown packages, if any.Lucio Andrés Illanes Albornoz1-3/+5
subr/build_init.subr:buildp_init_args(): correctly parse -r package[,...]:step[,...]. subr/ex_pkg{,_dispatch}.subr: minor cleanup. subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): don't reset ${EX_PKG_DISPATCH_UNKNOWN} on entry. subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): correctly check ${_pkg_names} for ${_pkg_name} when updating ${EX_PKG_DISPATCH_UNKNOWN}.
2020-03-01General cleanup, pt. III.Lucio Andrés Illanes Albornoz1-1/+1
dist/dist_digest.dist: removes obsolete dist file. etc/{build.usage,README.md}: updated. groups/000.host_tools.group:{autoconf,automake,gettext_tiny,install_strip,libtool,m4}_host: moved from groups/010.host_deps.group. groups/221.native_packages_dev.group:lua: moved from groups/231.native_packages_etc.group. groups/221.native_packages_dev.group:lua:${PKG_FORCE_AUTORECONF}: set. groups/231.native_packages_etc.group:{mlogin,tdnf}:${PKG_FORCE_AUTORECONF}: set. groups/241.native_packages_inet.group:nullmailer:${PKG_FORCE_AUTORECONF}: set. groups/251.native_packages_lib.group:lib{asr,gpg_error}:${PKG_FORCE_AUTORECONF}: set. midipix.env, etc/README.md, subr/pkg_configure_autotools.subr: adds FORCE_NO_AUTORECONF. subr/rtl_fileop.subr: adds ch{mod,own} fileops. vars/{check_updates,jamvm,lib{asr,gpg_error},lua,mlogin,tdnf}.vars: removes obsolete vars file.
2020-03-01build.sh:buildp_ast(): reset package state of in-progress packages at EXIT ↵Lucio Andrés Illanes Albornoz1-1/+7
signal time. subr/ex_pkg_dispatch.subr: convert ${EXP_PKG_DISPATCH_WAIT} to unscoped global ${EX_PKG_DISPATCH_WAIT}.
2020-02-29build.sh:build(): correctly reference ${BUILD_DATE_START}.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-29build.sh:buildp_ast(): break from rtl_kill_tree() loop after 8 attempts.Lucio Andrés Illanes Albornoz1-7/+10
build.sh:buildp_ast(): list killed PIDs on single line.
2020-02-29build.sh:buildp_ast(): iterate on rtl_kill_tree() until all child processes ↵Lucio Andrés Illanes Albornoz1-4/+9
are gone.
2020-02-29Refactors dist packages into groups/999.dist.group and dist/dist_*.dist.Lucio Andrés Illanes Albornoz1-1/+1
build.sh:buildp_dispatch_pkg_state(): fix `missing_pkg' log message. subr/ex_pkg_env.subr:exp_pkg_env_set(): source from "dist/${_pkg_name}.dist" given `dist' group.
2020-02-29build.sh:buildp_ast(): correctly call rtl_kill_tree().Lucio Andrés Illanes Albornoz1-4/+4
subr/rtl_complex.subr:rtl_kill_tree(): iteratively & recursively kill tree of processes excluding ${$}.
2020-02-29build.sh:buildp_dispatch_pkg_state(): updates {disabled,skipped}_pkg log ↵Lucio Andrés Illanes Albornoz1-2/+2
message.
2020-02-29build.sh:buildp_dispatch{,_pkg_state}(): forward `msg_pkg' messages to ↵Lucio Andrés Illanes Albornoz1-1/+2
stdout given -v. subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_group() forward `msg_pkg' to ${_dispatch_fn}. vars/invariants_zipdist.vars: log progress w/ `msg_pkg' messages in addition to rtl_log_msg().
2020-02-29build.sh:build(): correctly set ${BUILD_DATE_START}.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-29build.sh:buildp_dispatch(): silence command(1) output.Lucio Andrés Illanes Albornoz1-3/+4
build.sh:build(): turn ${_build_date_start} into scoped global ${BUILD_DATE_START} due to vars/invariants_zipdist.vars. subr/ex_pkg_exec.subr:ex_pkg_exec(): correctly set ${_rc} from pkg_${_pkg_name}_all()'s return status. subr/ex_pkg_exec.subr:ex_pkg_exec(): only set `finish' package build state given zero ${_rc} and ${_restart_at}.
2020-02-26build.sh:buildp_dispatch_group_state(): fix type signature.Lucio Andrés Illanes Albornoz1-1/+1
subr/build_init.subr:buildp_init_vars(): fix ${_default_build_groups} generation.
2020-02-26General cleanup, pt. II.Lucio Andrés Illanes Albornoz1-81/+94
2020-02-25build.sh: reintroduce {disabled,skipped}_pkg messages at -v[v[v]].Lucio Andrés Illanes Albornoz1-8/+9
build.sh, subr/build_init.subr: minor cleanup. subr/ex_pkg_dispatch.subr:exp_pkg_expand_packages(): call ${_dispatch_fn} w/ {disabled,skipped}_pkg for {disabled,skipped} packages. subr/ex_pkg_dispatch.subr:exp_pkg_expand_packages(): don't mutate ${EX_PKG_NSKIPPED}. subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): don't set ${EX_PKG_NSKIPPED}.
2020-02-25build.sh:buildp_dispatch(): set ${_njobs_max} from ${ARG_PARALLEL} vs. ↵Lucio Andrés Illanes Albornoz1-1/+1
${DEFAULT_BUILD_CPUS}.
2020-02-25build.sh:buildp_dispatch(): default ${_njobs_max} to 1 vs. 0.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-25General cleanup, pt. I.Lucio Andrés Illanes Albornoz1-20/+18
2020-02-14build.sh: minor cleanup.Lucio Andrés Illanes Albornoz1-1/+1
groups/2*.native_packages_*.group: adds dependencies. subr/{build_init,ex_pkg_dispatch}.subr, etc/build.usage: forcibly rebuild all dependencies w/ -r **[ ...] vs. -r *[ ... ]. subr/ex_pkg_dispatch.subr:exp_pkg_get_packages(): log message before and after resolving dependencies.
2020-02-14etc/README: updated.Lucio Andrés Illanes Albornoz1-10/+1
groups/231.native_packages_etc.group:apr_util:${PKG_MAKEFLAGS_BUILD}: build w/ -j1. subr/{build_{args,init},ex_rtl{,_complex}}.subr: minor cleanup. subr/{build_args,ex_rtl}.subr: purge leading whitespaces.
2020-02-13build.sh: change working directory to "$(dirname "${0}")" at startup.Lucio Andrés Illanes Albornoz1-0/+1
etc/build.usage: updated. groups/2*.native_packages_*.group: adds dependencies. vars/env.vars, groups/{010.host_deps,120.native_runtime}.group: removes ${PKG_SRC_TARBALL_DISABLE}. groups/999.invariants.group b, vars/{env,invariants_tarballs}.vars: removes tarball generation. subr/build_args.subr: reimplemented using getopts(1). subr/{build_args,ex_pkg_dispatch}.subr: don't inhibit dependency processing if ${ARG_RESTART_RECURSIVE} is set.
2020-02-12build.sh:buildp_dispatch(): correctly filter ${_build_groups_lc} in the ↵Lucio Andrés Illanes Albornoz1-1/+1
absence of -D rpm. groups/0[23]0.host_{deps_rpm,toolchain}.group: renamed. groups/020.host_deps_rpm.group:libarchive_host:${PKG_CFLAGS_CONFIGURE}: configure w/ -I${PREFIX}/include.
2020-02-12groups/2*.native_packages{,cmdline,dev,etc,inet,lib,x11}.group: ↵Lucio Andrés Illanes Albornoz1-1/+1
merged/split, adds dependencies. groups/: updates layout. etc/build.usage: updated. subr/build_init.subr:build_init(): only include actual groups in ${GROUPS_DEFAULT}.
2020-02-12{build.sh,subr/ex_pkg_dispatch.subr}: prepend {disabled,skipped,start}_pkg ↵Lucio Andrés Illanes Albornoz1-8/+8
messages w/ {current,maximum} count of packages in build group.
2020-02-11Implements package-package dependencies.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-09Rename build targets to build groups to avoid confusion w/ target architectures.Lucio Andrés Illanes Albornoz1-9/+9
2019-05-08build.sh:{disabled,skipped}_pkg: correctly increment ${BUILD_NSKIP}.Lucio Andrés Illanes Albornoz1-2/+4
2019-01-19build.sh, subr/{build_args,ex_pkg_dispatch}.subr: fix -r LAST.Lucio Andrés Illanes Albornoz1-1/+9
2019-01-19build.sh:buildp_dispatch(): correctly call ex_pkg_dispatch().Lucio Andrés Illanes Albornoz1-1/+1
subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): only set ${${_pkgs_found_vname}} if non-zero.
2019-01-19build.sh:buildp_dispatch(): fix ${PKGS_FOUND} variable name.Lucio Andrés Illanes Albornoz1-3/+4
2019-01-19build.sh, subr/build_checks.subr, vars/midipix.vars: removes ↵Lucio Andrés Illanes Albornoz1-1/+1
${DEFAULT_CHECK_PREREQ_{CMDS,FILES{,_DYNAMIC},PERL_MODULES}}. etc/build.usage: update target list. subr/build_checks.subr: merges remaining checks into subr/build_init.subr.
2019-01-19build.sh, etc/build.usage, subr/ex_pkg_dispatch.subr: adds -r LAST.Lucio Andrés Illanes Albornoz1-14/+11
subr/ex_rtl_state.subr: adds ex_rtl_state_clear(). vars/midipix.vars: adds ${DEFAULT_BUILD_LAST_FAILED_PKG_FNAME}.
2019-01-19build.sh, etc/build.usage, subr/build_args.subr: replaces -x w/ -vvv.Lucio Andrés Illanes Albornoz1-1/+1
subr/ex_rtl_{fileop,log}.subr, vars/env.vars: log file operations at -vvvv.
2019-01-19etc/build.usage, subr/build_{args,checks}.subr: merges -c into -C as -C prefix.Lucio Andrés Illanes Albornoz1-12/+0
etc/build.usage, subr/build_{args,init}.subr: merges -[46N] into -F as ipv4|ipv6|offline. subr/ex_rtl_fetch.subr: honour ${{ARG_FETCH_FORCE,DEFAULT_GIT_ARGS}}. subr/pkg_install_strip.subr: correctly strip non-release build binaries. subr/pkg_install_strip.subr:pkg_install_strip(): honour ${ARG_DEBUG_MINIPIX}. vars/env.vars, subr/pkg_fetch_{download,git,wget}.subr: merges fetch_{git,wget} into fetch_download. vars/midipix.vars: adds ${DEFAULT_GIT_ARGS}. vars/{musl,python[23]{,_host}}.vars: updated concerning fetch_download.
2019-01-19build.sh, etc/build.usage, subr/*: merges {-[ptz],--rpm} into -D ↵Lucio Andrés Illanes Albornoz1-11/+7
{minipix,pkg,rpm,t{bz2,gz,xz},zipdist}. subr/{build_args,pkg_clean}.subr: cleanup ${ARG_CLEAN_BUILDS} usage. vars/build.vars:dist: merged into invariants. vars/invariants_minipix.vars: adapted from vars/dist_minipix_dist.vars. vars/{invariants_tarballs,midipix}.vars: don't produce source tarballs.
2018-05-14build.sh:buildp_dispatch(): fix typo re: ${ARG_RPM:-0} (via midipix.)Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2018-05-14Adds --rpm: [b]uild RPM packages for each package built; selects host_tools_rpm.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+8
2018-05-10build.sh:start_build: correctly handle -r ALL.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+2
patches/findutils_minipix-4.5.19.local.patch: link for findutils_minipix.
2018-04-30Correctly (zero-)initialise all locals.Lucio Andrés Illanes Albornoz1-1/+1
2018-04-03build.sh:start_build: always build all `invariants' target packages.Lucio Andrés Illanes Albornoz (arab, vxp)1-8/+3
build.sh:exec_start, vars/invariants_{digest,tarballs}.vars: move ${ARG_TARBALL} checks into invariants_{digest,tarballs}. etc/build.usage: update targets list. vars/build.vars:dist_minipix: renamed to `minipix'. vars/build.vars:dist: split into {dist,invariants}. vars/dist_gitref.vars: renamed to vars/invariants_gitref.vars.
2018-01-23build.sh:start_build: check ${ARG_RESTART} for unknown packages, if specified.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+12
2017-12-22build.sh:fail_pkg: honour absence of -P.Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+4
2017-12-22build.sh:fail_pkg: terminate pending builds given build failure, -P, and ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+4
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-22vars/build.vars:${ALL_TARGETS}: fix target order & remove dev_packages.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2017-12-22build.sh, subr/build_args.subr, etc/build.usage: remove meta-targets & fix ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-11/+8
target.. argument spec(s). vars/build.vars: removes meta-targets, adds ${ALL_TARGETS}.
2017-12-22build.sh:exec_start: always restart dist_tarballs given -t.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+2
2017-12-06build.sh:{fail_pkg,finish_build}: log at failexit.Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+2
2017-12-05build.sh: log step_pkg in blue at -v[v[v]].Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
subr/ex_rtl_log.subr, vars/env.vars: adds `vucc' & ${DEFAULT_LOG_MSG_VUCC_COLOUR}.
2017-12-04build.sh:exec_start: use exit(1) instead of clearing ${PKG_BUILD_STEPS} when ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
skipping dist_{digest,tarballs}.