diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-19 08:32:07 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-19 08:40:42 +0000 |
commit | f42965c7189c8fbbce85f268a96a94a504de9737 (patch) | |
tree | 479ce74d1c2766c3f23838362d539576744750ea /build.subr | |
parent | e2a4f22ec8f0bcf0cbcfeaeacf4be5d6e42ef2c7 (diff) | |
download | midipix_build-f42965c7189c8fbbce85f268a96a94a504de9737.tar.bz2 midipix_build-f42965c7189c8fbbce85f268a96a94a504de9737.tar.xz |
- Additionally install ncursesw and ntctty into ${PREFIX_MINIPIX} and create Minipix tarball
in 999.tarballs.build which solely contains ${PREFIX_MINIPIX}.
- Adds {bash,coreutils}_static which are linked statically and installed to ${PREFIX_MINIPIX}
as opposed to {bash_coreutils} which are not linked statically and installed to ${PREFIX_NATIVE}.
- Adds file v5.28.
- Add support for ${PREFIX_MINIPIX} to midipix.sh (either automatically detected or specified via -m.)
- Adds verbosity flag -v wrt. secure_{cd,rm}() and insecure_mkdir().
- Build slibtool{_host,} w/ `--prefix='.
- Export ${ARG_TARBALL} instead of special-casing build level 9.
- Fix mc configure failure (error: could not determine how to read list of mounted file systems.)
Diffstat (limited to 'build.subr')
-rw-r--r-- | build.subr | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -51,6 +51,15 @@ fetch_git() { cp -pr ${DLCACHEDIR}/${_fg_subdir} .; }; +get_vars_unsafe() { + while [ ${#} -gt 0 ]; do + _gvu_vval="$(eval echo \${${1}})"; + [ -z "${_gvu_vval}" ] || _gvu_vval_="${_gvu_vval}"; + shift; + done; echo "${_gvu_vval_}"; + unset _gvu_vval _gvu_vval_; +}; + insert_build_script_link() { _ibsl_fname=${1}; _ibsl_level=${_ibsl_fname%%.*}; @@ -230,7 +239,8 @@ secure_cd() { (cd "${1}"; [ "${PWD#${PREFIX_ROOT}}" = "${PWD}" ] &&\ return 1 || return 0); if [ ${?} -eq 0 ]; then - log_msg warn "Changing working directory to \`${1}'."; + [ "${ARG_VERBOSE:-0}" -eq 1 ] &&\ + log_msg warn "Changing working directory to \`${1}'."; cd -- "${1}"; else log_msg failexit "secure_cd() called with pathname \`${1}' not below \${PREFIX_ROOT} (${PREFIX_ROOT}). This is a bug."; @@ -242,7 +252,8 @@ insecure_mkdir() { if [ -z "${1}" ]; then return 1; elif [ ! -e "${1}" ]; then - log_msg warn "Making directory \`${1}'."; + [ "${ARG_VERBOSE:-0}" -eq 1 ] &&\ + log_msg warn "Making directory \`${1}'."; mkdir -p -- "${1}"; fi; shift; done; @@ -261,7 +272,8 @@ secure_rm() { return 1 || return 0); if [ ${?} -eq 0 ]; then unset _sr_pname_check; - log_msg warn "Removing directory or file \`${1}'."; + [ "${ARG_VERBOSE:-0}" -eq 1 ] &&\ + log_msg warn "Removing directory or file \`${1}'."; rm -rf -- "${1}"; else log_msg failexit "secure_rm() called with pathname \`${1}' not below \${PREFIX_ROOT} (${PREFIX_ROOT}). This is a bug."; |