summaryrefslogtreecommitdiffhomepage
path: root/subr
AgeCommit message (Collapse)AuthorFilesLines
2020-05-15subr/rtl_list.subr:rtl_l{assign,first}(): initial implementation.Lucio Andrés Illanes Albornoz2-2/+26
subr/pkg_install.subr:pkg_install(): use rtl_lassign().
2020-05-15subr/rtl.subr:rtl_set_IFS_nl(): initial implementation.Lucio Andrés Illanes Albornoz3-5/+8
subr/pkg_install.subr:pkgp_install_perms(): use rtl_set_IFS_nl(). subr/rtl_complex.subr:rtl_filter_vars(): use rtl_set_IFS_nl().
2020-05-15Optionally install ${PKG_DESTDIR_HOST} into ${PREFIX}.Lucio Andrés Illanes Albornoz4-21/+35
vars/libxslt.vars:pkg_libxslt_install_make_post(): install ${PREFIX}/bin/xslt-config into ${PKG_DESTDIR_HOST}/bin.
2020-05-11subr/build_init.subr:buildp_init_getopts(): allow mixing non-option ↵Lucio Andrés Illanes Albornoz2-46/+34
arguments w/ options. subr/pkgtool_init.subr:pkgtoolp_init_getopts(): allow mixing non-option arguments w/ options.
2020-05-11subr/pkgtool_init.subr:pkgtoolp_init_getopts(): clarify invalid command line ↵Lucio Andrés Illanes Albornoz1-1/+1
error message.
2020-05-11subr/build_init.subr:buildp_init_{args,getopts}(): call rtl_fileop_set_log() ↵Lucio Andrés Illanes Albornoz3-15/+24
as soon as possible. subr/ex_pkg.subr:ex_pkg_load_vars(): log variable file names at `notice' level. subr/rtl_fileop.subr:rtl_fileop(): implements `source'.
2020-05-11subr/ex_pkg.subr:ex_pkg_check_depends(): check for and exit on first unknown ↵Lucio Andrés Illanes Albornoz2-9/+8
dependent package. subr/ex_pkg_dispatch.subr():exp_pkg_dispatch_packages(): don't pass ${EX_PKG_DISPATCH_WAIT} to ex_pkg_check_depends().
2020-05-11subr/ex_pkg.subr:ex_pkg_check_depends(): check for and exit on first unknown ↵Lucio Andrés Illanes Albornoz2-6/+9
dependent package. subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_packages(): pass ${EX_PKG_NAMES} to ex_pkg_check_depends().
2020-05-11subr/pkgtool_init.subr:pkgtoolp_init_getopts(): correctly initialise ↵Lucio Andrés Illanes Albornoz1-1/+1
${BUILD_KIND}.
2020-05-07Revert "build.sh:buildp_dispatch_pkg_state(): include percentage and package ↵Lucio Andrés Illanes Albornoz1-1/+1
counts in `finish_pkg' informational." This reverts commit 08f57a8d88e4ec4f2705bfd2c69abda752f03907.
2020-05-07build.sh:buildp_dispatch_pkg_state(): include percentage and package counts ↵Lucio Andrés Illanes Albornoz1-1/+1
in `finish_pkg' informational. subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_group(): include package counts in `finish_pkg' message.
2020-04-29subr/build_init.subr: ensure awk(1) in $PATH is GNU Awk.Lucio Andrés Illanes Albornoz1-0/+2
2020-04-29Designate {debug,release} build as build kind.Lucio Andrés Illanes Albornoz1-1/+1
2020-04-29Designate {debug,release} build as build kind.Lucio Andrés Illanes Albornoz4-7/+7
etc/{{build,pkgtool}.usage,README.md}: updated.
2020-04-29subr/ex_pkg_env.subr:exp_pkg_env_set(): additionally set from package name ↵Lucio Andrés Illanes Albornoz1-2/+2
prefix plus {debug,release} build.
2020-04-25pkgtool.sh:pkgtoolp_rdepends(): print direct reverse dependencies in bright ↵Lucio Andrés Illanes Albornoz1-2/+31
yellow and their dependencies in dark yellow, if any. subr/ex_pkg.subr:ex_pkg_unfold_depends_direct(): initial implementation.
2020-04-17subr/pkg_install_libs.subr:pkgp_install_libs_shared(): correctly reference ↵Lucio Andrés Illanes Albornoz1-1/+1
${_so_src_path}.
2020-04-13subr/pkg_build.subr: pass either ${PKG_MAKEFLAGS_VERBOSITY} or nothing if ↵Lucio Andrés Illanes Albornoz1-2/+5
set to `none'. groups/010.host_deps.group:ruby_host:${PKG_MAKEFLAGS_VERBOSITY}: build w/ none. groups/221.native_packages_dev.group:ruby:${PKG_MAKEFLAGS_VERBOSITY}: build w/ none. etc/README.md, midipix.env: adds ${PKG_MAKEFLAGS_VERBOSITY}, defaulting to `V=99'.
2020-04-13subr/pkg_build.subr: invariably call make(1) w/ V=99.Lucio Andrés Illanes Albornoz1-1/+2
groups/*.group: remove redundant ${PKG_MAKEFLAGS_BUILD_EXTRA:="V=99"} variables.
2020-04-12subr/build_init.subr:buildp_init_args(): skip unknown packages check given ↵Lucio Andrés Illanes Albornoz1-1/+1
-r ALL|LAST (via duvallj.)
2020-04-10Pass pkg-config(1) search path via ${PKG_CONFIG_LIBDIR}.Lucio Andrés Illanes Albornoz3-5/+5
2020-04-10subr/ex_pkg.subr:ex_pkg_get_packages(): correctly call rtl_log_msg() w/ ↵Lucio Andrés Illanes Albornoz1-2/+2
`warning'. subr/ex_pkg.subr:ex_pkg_get_packages(): fix info message.
2020-04-10subr/pkgtool_init.subr:pkgtoolp_init_getopts_help(): correctly cat ↵Lucio Andrés Illanes Albornoz1-1/+1
etc/pkgtool.usage given -h option.
2020-04-10subr/build_init.subr:buildp_init_args(): don't filter `host_deps_rpm' build ↵Lucio Andrés Illanes Albornoz1-2/+4
group given either of --dump-{in,on-abort}.
2020-04-09subr/build_init.subr:buildp_init_files(): trap SIG{HUP,INT,TERM,USR[12]} ↵Lucio Andrés Illanes Albornoz1-1/+1
during prefix cleaning, if requested.
2020-04-09subr/build_init.subr:buildp_init_files(): trap SIG{HUP,INT,TERM,USR[12]} ↵Lucio Andrés Illanes Albornoz1-0/+2
during prefix cleaning, if requested.
2020-04-09subr/build_init.subr:buildp_init_getopts(): exit w/ error on attempt to ↵Lucio Andrés Illanes Albornoz1-1/+5
specify maximum parallelisation job count w/ -P vs. -p jobs.
2020-04-09subr/rtl.subr:rtl_date(): default ${DEFAULT_TIMESTAMP_FMT} to "%Y/%m/%d ↵Lucio Andrés Illanes Albornoz1-1/+1
%H:%M:%S".
2020-04-08subr/build_init.subr:buildp_init_args(): move ${BUILD_HNAME} check & default ↵Lucio Andrés Illanes Albornoz1-3/+4
from buildp_init_env(). midipix.env:${DEFAULT_CLEAR_ENV_VARS_EXCEPT}: adds BUILD_HNAME. etc/README.md: updated.
2020-04-04subr/rtl_complex.subr:rtl_is_newer(): reimplemented w/ stat(1).Lucio Andrés Illanes Albornoz2-5/+10
subr/build_init.subr:buildp_init_prereqs(): adds stat(1).
2020-03-26subr/ex_pkg_env.subr:exp_pkg_env_set(): correctly join NL-separated package ↵Lucio Andrés Illanes Albornoz1-7/+7
variable names before passing to rtl_set_vars().
2020-03-24subr/{ex_pkg_env,pkg_install,rtl_list}.subr: reference ${IFS} w/ explicit ↵Lucio Andrés Illanes Albornoz3-6/+6
default value (via midipix.)
2020-03-19subr/{build,pkgtool}_init.subr: minor cleanup.Lucio Andrés Illanes Albornoz3-31/+72
subr/rtl_complex.subr:rtl_{check_prereqs,prompt,rc}(): initial implementation.
2020-03-19subr/{pkg_install,rtl_fetch}.subr, ↵Lucio Andrés Illanes Albornoz3-29/+17
subr/rtl_complex.subr:rtl_flock_acquire(): split.
2020-03-15Set -o nounset in addition to +o errexit -o nounset.Lucio Andrés Illanes Albornoz29-186/+220
groups/000.host_tools.group:libtool_host:${PKG_LIBTOOL}: build w/ `none'. subr/build_init.subr:buildp_init_getopts(): set ${DEFAULT_BUILD_CPUS} prior to ex_pkg_load_vars() call. subr/pkg_{build,install_make}.subr: only pass `LIBTOOL=${PKG_LIBTOOL}' if set and not `none'. vars/libtool_host.vars: removes obsolete vars file.
2020-03-15General cleanup.Lucio Andrés Illanes Albornoz17-509/+478
2020-03-13subr/pkgtool_init.subr:pkgtoolp_init_prereqs(): trim list of prerequisite ↵Lucio Andrés Illanes Albornoz1-5/+3
command dependencies.
2020-03-13Implements ./pkgtool.sh -[irt] options.Lucio Andrés Illanes Albornoz5-135/+310
etc/{README.md,pkgtool.usage}: updated. subr/ex_pkg.subr:ex_pkg_{find_package,get_packages}(): initial implementation. subr/ex_pkg.subr:ex_pkg_unfold_{,r}depends(): split from ex_pkg_expand_packages(). subr/ex_pkg{,_dispatch}.subr: removes ${EX_PKG_COMPLETE} scoped global. subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_expand_packages(): split from subr/ex_pkg.subr. subr/rtl_list.subr:rtl_lsort(): initial implementation.
2020-03-12midipix.env: remove redundant ${DEFAULT_LOG_MSG_*_COLOUR} variables.Lucio Andrés Illanes Albornoz1-0/+1
subr/rtl_log.subr:${DEFAULT_LOG_MSG_WARN_COLOUR}: added.
2020-03-12Reduce awk(1), grep(1), seq(1), and stat(1) usage.Lucio Andrés Illanes Albornoz6-36/+73
subr/build_init.subr:buildp_init_files(): replace timestamp w/ running total log filename suffix. subr/build_init.subr:buildp_init_prereqs(): ensure sed(1) supports -i option. subr/rtl_complex.subr:rtl_{get_cpu_count,is_newer}(): initial implementation. subr/rtl_string.subr:rtl_match(): initial implementation.
2020-03-11subr/build_init.subr:buildp_init_getopts(): --dump-on-abort excludes -R.Lucio Andrés Illanes Albornoz1-11/+15
etc/{build.usage,README.md}: updated.
2020-03-11pkgtool.sh, subr/{build_init,ex_pkg_exec}.subr: rebuild package, dump & exit ↵Lucio Andrés Illanes Albornoz2-5/+17
if package dump is unavailable. build.sh:buildp_dispatch_fail_pkg(): log --dump-{in,on-abort} messages at `info' level.
2020-03-11Initial implementation of pkgtool.sh.Lucio Andrés Illanes Albornoz5-8/+209
build.sh:build(): move cd(1) to $(dirname "${0}"). etc/{build.usage,README.md}: updated. midipix.env:${DEFAULT_CLEAR_ENV_VARS_EXCEPT}: allow inheriting ARCH, BUILD, BUILD_DLCACHEDIR, BUILD_WORKDIR, and PREFIX* from the environment. pkgtool.sh: initial implementation. subr/build_init.subr:buildp_init_defaults(): allow inheriting ARCH, BUILD, BUILD_DLCACHEDIR, BUILD_WORKDIR, and PREFIX* from the environment. subr/build_init.subr:buildp_init_env(): move cd(1) to $(dirname "${0}"). subr/build_init.subr:buildp_init_files(): correctly pass ${_status} from rtl_check_path_vars(). subr/ex_pkg_exec.subr:ex_pkg_exec(): dump subset of variables and exported variables on build failure and --dump-on-abort. subr/pkgtool_init.subr: adapted from subr/build_init.subr. subr/rtl_complex.subr:rtl_filter_vars(): initial implementation. subr/rtl_string.subr:rtl_subst(): initial implementation.
2020-03-05subr/ex_pkg.subr: implement -r ***name[,..][:step,..]: forcibly rebuild all ↵Lucio Andrés Illanes Albornoz1-30/+57
packages that depend on the specified package(s).
2020-03-05subr/ex_pkg_dispatch.subr: implement *<group>: inhibit group-group ↵Lucio Andrés Illanes Albornoz2-50/+63
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 Albornoz3-24/+42
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/pkg_install.subr: serialise simultaneous installation to ${PKG_PREFIX} ↵Lucio Andrés Illanes Albornoz1-1/+1
w/ flock(1).
2020-03-02subr/build_init.subr:buildp_init_args(): reduce sed(1) usage.Lucio Andrés Illanes Albornoz2-2/+8
subr/rtl_list.subr:rtl_llift(): added.