summaryrefslogtreecommitdiffhomepage
path: root/subr
AgeCommit message (Collapse)AuthorFilesLines
2021-01-24Reimplements Git repository mirroring because Git is a special snowflake.Lucio Andrés Illanes Albornoz1-2/+6
etc/{README.md,pkgtool.usage}: updated. groups/221.native_packages_dev.group:cparser:${PKG_DISABLED}: disabled due to repository unavailability. groups/251.native_packages_lib.group:libfirm:${PKG_DISABLED}: disabled due to repository unavailability. midipix.env:${DEFAULT_BUILD_VARS}: adds MIRRORS_GIT. midipix.env:${DEFAULT_MIRRORS{,_GIT}}: split; mirror Git repositories via https://midipix.lucioillanes.de/repos_git/. pkgtool.sh:pkgtoolp_mirror_fetch(): call rtl_fetch_mirror_urls_git() vs. rtl_fetch_urls_git(). pkgtool.sh:pkgtoolp_mirror_fetch(): symlink instead of downloading given package w/ parent package. pkgtool.sh:pkgtoolp_mirror{,_fetch}(): split archives vs. Git repositories directory name. subr.rtl/rtl_fetch.subr: factor out ${DEFAULT_GIT_ARGS}. subr.rtl/rtl_fetch.subr:rtl_fetch_mirror_urls_git(): initial implementation. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): always return on failure. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): correctly attempt to git-clone(1) from ${PKG_URL} and then via ${PKG_MIRRORS}. subr.rtl/rtl_fetch.subr:{rtlp_fetch_url_git,rtl_fetch_urls_git}(): cleanup. {subr/pkg_fetch_download.subr,vars/{gcc,python[23]{,_host}}.vars}: call rtl_fetch_urls_git() w/ ${PKG_NAME} and ${PKG_MIRRORS_GIT:-}.
2021-01-23subr.rtl/rtl_fetch.subr:{rtlp_fetch_url_git,rtl_fetch_urls_git}(): ↵Lucio Andrés Illanes Albornoz1-1/+1
{receive,pass} ${_pkg_name}. subr.rtl/rtl_fetch.subr:rtl_fetch_urls_git(): return 1 on failure from rtlp_fetch_url_git(). subr/pkg_fetch_download.subr: pass ${PKG_NAME} to rtl_fetch_urls_git(). etc/README.md: updated.
2021-01-23Implements setting up & fetching from mirrors.Lucio Andrés Illanes Albornoz2-13/+17
etc/pkgtool.usage: updated. etc/README.md: updated. pkgtool.sh:pkgtoolp_mirror{,_fetch}(): initial implementation. subr/pkg_fetch_download.subr: default to empty ${PKG_MIRRORS}. subr/pkg_fetch_download.subr: factor out ${ARG_FETCH_FORCE} check and ${BUILD_DLCACHEDIR}. subr/pkgtool_init.subr: updated. subr.rtl/rtl_fetch.subr:rtl_fetch_urls_{git,wget}(): factor out ${ARG_FETCH_FORCE} check and ${BUILD_DLCACHEDIR}; minor cleanup. subr.rtl/rtl_fetch.subr:rtl_fetch_url_wget(): return vs. exit on fatal failure. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): copy only if ${_cache_dname} != ${_tgtdir}. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): return if unable to git-clone(1). subr.rtl/rtl_fetch.subr:{rtlp_fetch_url_git,rtl_fetch_urls_git}(): implement Git repository mirroring. vars/{gcc,python[23]{,_host}}.vars: updated.
2021-01-22Implements ${{DEFAULT,PKG,...}_MIRRORS}.Lucio Andrés Illanes Albornoz1-1/+1
build.sh:build(): define and zero-initialise ${DEFAULT_MIRRORS}. etc/README.md: updated. midipix.env: adds ${DEFAULT_MIRRORS} (https://midipix.org/mirror/ https://midipix.lucioillanes.de/archives/). subr.rtl/rtl_fetch.subr:rtl_fetch_url_wget(): receive and operate on target name and optional list of mirrors. subr/pkg_fetch_download.subr: additionally pass ${PKG_NAME} and ${PKG_MIRRORS} to rtl_fetch_url_wget().
2021-01-06etc/README.md: updated.Lucio Andrés Illanes Albornoz1-1/+1
2020-12-30subr/rtl*.subr, subr.rtl/: moved.Lucio Andrés Illanes Albornoz11-959/+2
subr/build_init.subr:buildp_init_env(): updated. subr/pkgtool_init.subr:pkgtoolp_init_env(): updated.
2020-12-24subr/build_init.subr:buildp_init_getopts(): fix -F.Lucio Andrés Illanes Albornoz1-3/+3
2020-11-26subr/build_init.subr:buildp_init_files(): export TMP{,DIR}=${BUILD_WORKDIR}.Lucio Andrés Illanes Albornoz2-2/+3
subr/pkgtool_init.subr:pkgtoolp_init_args(): export TMP{,DIR}=${BUILD_WORKDIR}.
2020-11-21subr/pkg_install_rpm.subr: ignore all but first ${PKG_URL} if list.Lucio Andrés Illanes Albornoz1-1/+1
2020-09-25subr/rtl_fetch.subr:rtl_fetch_url_wget(): updated.Lucio Andrés Illanes Albornoz1-5/+5
2020-09-10subr/pkgtool_init.subr:pkgtoolp_init_getopts(): allow overriding ↵Lucio Andrés Illanes Albornoz1-5/+1
${PKGTOOL_PKG_NAME} w/ -s[ -s[..]].
2020-09-08subr/rtl_fetch.subr:rtl_fetch_url_wget(): implement passing list of ↵Lucio Andrés Illanes Albornoz1-18/+48
alternative URLs and fine(r)-grained logging.
2020-06-26subr/rtl_fetch.subr:rtl_fetch_url_wget(): retain digest post-download & ↵Lucio Andrés Illanes Albornoz2-19/+46
forcibly re-download on mismatch (via midipix.) subr/rtl_complex.subr:rtl_check_digest{,_file}(): initial implementation.
2020-06-02subr/rtl_install.subr: correctly return failure given rtl_fileop() failure.Lucio Andrés Illanes Albornoz1-3/+9
2020-06-02midipix.env:${DEFAULT_BUILD_VARS}: adds ${PKG_CFLAGS_BUILD} and ↵Lucio Andrés Illanes Albornoz2-29/+47
${PKG_MAKE_SUBDIRS}. subr/pkg_{build,install}.subr: honour ${PKG_MAKE_SUBDIRS}. etc/README.md: updated.
2020-05-30subr/pkgtool_init.subr:pkgtoolp_init_getopts(): correctly set ${BUILD_KIND}.Lucio Andrés Illanes Albornoz1-1/+1
2020-05-27subr/pkg_install_files.subr:pkgp_install_files_strip(): strip minipix ↵Lucio Andrés Illanes Albornoz1-14/+18
packages unless --debug-minipix was specified (via midipix.)
2020-05-26etc/README.md: updated.Lucio Andrés Illanes Albornoz1-0/+15
2020-05-26subr/pkg_install{,_files}.subr: call pkgp_install{,_files}_perms() as early ↵Lucio Andrés Illanes Albornoz2-21/+25
as possible.
2020-05-26subr/pkg_install_files.subr:pkgp_install_files_strip(): check for either of ↵Lucio Andrés Illanes Albornoz1-1/+1
.debug_{frame,info} headers when checking whether to strip(1).
2020-05-15Include percentage and group counts in group status informationals.Lucio Andrés Illanes Albornoz1-10/+19
2020-05-15subr/rtl_complex.subr:rtl_percentage(): initial implementation.Lucio Andrés Illanes Albornoz2-10/+11
subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_{expand_packages,group}(): use rtl_percentage().
2020-05-15Include percentage and package counts in build status informationals.Lucio Andrés Illanes Albornoz1-8/+8
2020-05-15Include percentage and package counts in build status informationals.Lucio Andrés Illanes Albornoz1-11/+19
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.