summaryrefslogtreecommitdiffhomepage
path: root/subr/build_init.subr
AgeCommit message (Collapse)AuthorFilesLines
2020-03-05subr/ex_pkg_dispatch.subr: implement *<group>: inhibit group-group ↵Lucio Andrés Illanes Albornoz1-47/+56
dependency expansion. etc/{build.usage,README.md}, subr/build_init.subr: updated.
2020-03-05subr/ex_pkg{,_dispatch}.subr: implement -r ***name[,..][:step,..]: forcibly ↵Lucio Andrés Illanes Albornoz1-1/+3
rebuild all packages that depend on the specified package(s). etc/{build.usage,README.md}, subr/build_init.subr: updated.
2020-03-04subr/build_init.subr:build_init(): call buildp_init_prereqs() after ↵Lucio Andrés Illanes Albornoz1-20/+25
buildp_init_getopts(). subr/build_init.subr:buildp_init_prereqs(): split from buildp_init_env(). etc/README.md: updated.
2020-03-04subr/build_init.subr:buildp_init_env(): source subr/*.subr as early as ↵Lucio Andrés Illanes Albornoz1-7/+8
possible (via duvallj.) subr/build_init.subr:buildp_init_env(): correctly emit errors & exit given early initialisation failure. etc/README.md: updated.
2020-03-02subr/build_init.subr:buildp_init_args(): reduce sed(1) usage.Lucio Andrés Illanes Albornoz1-2/+2
subr/rtl_list.subr:rtl_llift(): added.
2020-03-02build.sh:build(): iteratively print list of unknown packages, if any.Lucio Andrés Illanes Albornoz1-1/+1
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-02-29subr/build_init.subr:buildp_init_env(): don't use unavailable rtl_lconcat() ↵Lucio Andrés Illanes Albornoz1-1/+1
(via Redfoxmoon.)
2020-02-29midipix.env: renamed from vars/env.vars.Lucio Andrés Illanes Albornoz1-1/+1
subr/build_init.subr:buildp_init_vars(): source ./midipix.env.
2020-02-29Refactors dist packages into groups/999.dist.group and dist/dist_*.dist.Lucio Andrés Illanes Albornoz1-1/+3
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-29subr/build_init.subr:buildp_init_vars(): reject unknown groups.Lucio Andrés Illanes Albornoz1-9/+17
2020-02-29groups/dev_packages.group:${GROUP_AUTO}: set to 0.Lucio Andrés Illanes Albornoz1-1/+8
subr/build_init.subr:buildp_init_vars(): don't include groups in ${_default_build_groups} if ${GROUP_AUTO} is set to 0.
2020-02-26build.sh:buildp_dispatch_group_state(): fix type signature.Lucio Andrés Illanes Albornoz1-4/+4
subr/build_init.subr:buildp_init_vars(): fix ${_default_build_groups} generation.
2020-02-26General cleanup, pt. II.Lucio Andrés Illanes Albornoz1-151/+139
2020-02-25build.sh: reintroduce {disabled,skipped}_pkg messages at -v[v[v]].Lucio Andrés Illanes Albornoz1-5/+3
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-25General cleanup, pt. I.Lucio Andrés Illanes Albornoz1-8/+8
2020-02-21etc/README: updates build-time dependencies.Lucio Andrés Illanes Albornoz1-1/+1
subr/build_init.subr:buildp_init_prereqs(): redirect which(1) stderr to /dev/null.
2020-02-20subr/build_init.subr:buildp_init_prereqs(): adds perl (required by ↵Lucio Andrés Illanes Albornoz1-3/+3
intltool_host.) etc/README: updated.
2020-02-20subr/build_init.subr:buildp_init_prereqs(): updates prerequisite commands list.Lucio Andrés Illanes Albornoz1-5/+5
2020-02-20subr/build_init.subr:buildp_init_prereqs(): print missing prerequisite ↵Lucio Andrés Illanes Albornoz1-4/+9
package(s).
2020-02-15subr/build_init.subr:buildp_init_prereqs(): add flock to list of ↵Lucio Andrés Illanes Albornoz1-5/+5
prerequisite commands. etc/README: updated.
2020-02-15subr/build_init.subr:buildp_init_prereqs(): remove openssl from & add ↵Lucio Andrés Illanes Albornoz1-3/+3
sha256sum to list of prerequisite commands. subr/ex_rtl_fetch.subr:ex_rtl_fetch_url_wget(): use sha256sum(1) instead of openssl(1) w/ dgst -sha256. etc/README: updated.
2020-02-15subr/build_init.subr:buildp_init_getopts(): split -p jobs from -P due to ↵Lucio Andrés Illanes Albornoz1-3/+3
getopts(1) constraints.
2020-02-15subr/build_init.subr:buildp_init_getopts(): split -p jobs from -P due to ↵Lucio Andrés Illanes Albornoz1-20/+23
getopts(1) constraints. etc/build.usage: updated.
2020-02-14subr/build_init.subr:buildp_init_vars(): set ${DEFAULT_BUILD_CPUS} before ↵Lucio Andrés Illanes Albornoz1-7/+7
sourcing vars.
2020-02-14subr/build_init.subr:buildp_init_env(): default to -P jobs count to ↵Lucio Andrés Illanes Albornoz1-10/+19
${DEFAULT_BUILD_CPUS}/2 or 1. subr/build_init.subr:buildp_init_env(): reject invalid -P job counts. etc/build.usage: updated.
2020-02-14build.sh: minor cleanup.Lucio Andrés Illanes Albornoz1-4/+7
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-14groups/2*.native_packages_*.group: adds dependencies.Lucio Andrés Illanes Albornoz1-14/+18
subr/build_init.subr:buildp_init_getopts(): reject invalid build group names. subr/build_init.subr:buildp_init_prereqs(): insist on GNU sed. subr/build_init.subr:build_fini(): fixed. subr/ex_rtl_complex.subr:ex_rtl_kill_tree(): restored. subr/ex_rtl_log.subr: include fallback ${DEFAULT_LOG_MSG_*_COLOUR}s.
2020-02-14etc/README: updated.Lucio Andrés Illanes Albornoz1-85/+197
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-12groups/2*.native_packages{,cmdline,dev,etc,inet,lib,x11}.group: ↵Lucio Andrés Illanes Albornoz1-1/+3
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-12groups/*.group: split from vars/build.vars.Lucio Andrés Illanes Albornoz1-2/+8
subr/build_init.subr: source groups/*.group & set ${GROUPS_DEFAULT}. vars/midipix.vars: merged into vars/env.vars.
2020-02-11subr/build_init.subr:build_ast(): only print ${_pids_killed} if non-empty.Lucio Andrés Illanes Albornoz1-1/+4
2020-02-11subr/build_init.subr:build_{ast,init}(): call ex_rtl_kill_tree() on $$ on ↵Lucio Andrés Illanes Albornoz1-5/+13
signal. subr/build_init.subr:build_init(): check for pgrep(1) in $PATH. subr/ex_rtl.subr:ex_rtl_kill_tree(): implement w/ pgrep(1).
2020-02-11Implements package-package dependencies.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-08subr/build_init.subr: ensure awk(1) in $PATH is GNU Awk.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-06subr/build_init.subr: ensure awk(1) in $PATH is GNU Awk.Lucio Andrés Illanes Albornoz1-0/+3
2019-11-03subr/build_init.subr: don't echo back ${_env_vars}.Lucio Andrés Illanes Albornoz1-1/+0
2019-11-01subr/build_init.subr: correctly filter ${_env_vars}.Lucio Andrés Illanes Albornoz1-1/+2
2019-11-01ubr/build_init.subr: merge grep(1) ${_env_vars} filter into sed(1) command line.Lucio Andrés Illanes Albornoz1-1/+1
2019-11-01Cope with long environment variables that are wrapped over multiple linesMartin Storsjö1-1/+1
The TERMCAP variable, if present, can be very long (27 lines and over 1500 chars in my case). In these cases, the earlier lines end with a backslash, and the following ones start with a one tab indent. Filter for lines starting with "export" to properly find the variable names only, as that's the only thing we're interested in here.
2019-10-12subr/build_init.subr: don't set ${LD_LIBRARY_PATH}.Lucio Andrés Illanes Albornoz1-1/+0
subr/ex_pkg_env.subr: don't unset ${LD_LIBRARY_PATH} given build target host_packages_deps. vars/libsolv.vars: don't unset ${LD_LIBRARY_PATH}.
2019-01-19build.sh, subr/build_checks.subr, vars/midipix.vars: removes ↵Lucio Andrés Illanes Albornoz1-1/+15
${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-19etc/build.usage, subr/build_{args,checks}.subr: merges -c into -C as -C prefix.Lucio Andrés Illanes Albornoz1-2/+4
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-1/+1
{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-12-23subr/build_init.subr:build_init(): rename build logs from previous builds w/ ↵Lucio Andrés Illanes Albornoz1-2/+6
appended modification time postfix. subr/build_init.subr:build_init(): turn ${DEFAULT_BUILD_LOG_LAST_FNAME} into symbolic link to last previous build log.
2018-05-31subr/build_init.subr, etc/build.usage: additionally source ↵Lucio Andrés Illanes Albornoz1-1/+1
${HOME}/.midipix_build.vars.
2018-05-14subr/build_init.subr, vars/build.vars: move LD_LIBRARY_PATH+=${PREFIX}/bin ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+1
export.
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/+3
2018-05-09subr/build_init.subr:build_init(): set permissive umask (022.)Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2018-04-30Correctly (zero-)initialise all locals.Lucio Andrés Illanes Albornoz1-1/+1
2018-04-05subr/build_{checks,init}.subr: move --as-needed exit check in order to ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+6
prevent clobbering build.log.