| 1 | # Wedge definition for bash
|
| 2 | #
|
| 3 | # Loaded by deps/wedge.sh.
|
| 4 |
|
| 5 | set -o nounset
|
| 6 | set -o pipefail
|
| 7 | set -o errexit
|
| 8 |
|
| 9 | # sourced
|
| 10 | WEDGE_NAME='bash'
|
| 11 | WEDGE_VERSION='4.4'
|
| 12 |
|
| 13 | wedge-make() {
|
| 14 | local src_dir=$1
|
| 15 | local build_dir=$2
|
| 16 | local install_dir=$3
|
| 17 |
|
| 18 | # --without-bash-malloc for Alpine only -- musl libc incompatibility?
|
| 19 | # https://patchwork.ozlabs.org/project/buildroot/patch/20170523171931.18744-1-dsabogalcc@gmail.com/
|
| 20 | time $src_dir/configure --without-bash-malloc --prefix=$install_dir
|
| 21 |
|
| 22 | time make
|
| 23 | }
|
| 24 |
|
| 25 | wedge-install() {
|
| 26 | local build_dir=$1
|
| 27 |
|
| 28 | pushd $build_dir
|
| 29 |
|
| 30 | time make install
|
| 31 |
|
| 32 | popd
|
| 33 | }
|
| 34 |
|
| 35 | wedge-smoke-test() {
|
| 36 | local install_dir=$1
|
| 37 |
|
| 38 | $install_dir/bin/bash -c 'echo "hi from bash"'
|
| 39 | }
|