From 962db0ea9e248e01d46f6ae58d4dfc621b7d5a96 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 27 Jul 2020 23:23:41 +0200 Subject: Remove --strip-components from tar during fetch --strip-components is only available in GNU tar, making it unreliable in OpenBSD environments. --- lib/actions/fetch.bash | 2 +- lib/actions/install.bash | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/actions/fetch.bash b/lib/actions/fetch.bash index 4c95b0a..361d46e 100644 --- a/lib/actions/fetch.bash +++ b/lib/actions/fetch.bash @@ -50,7 +50,7 @@ download_core() { mkdir -p -- "$destination" tarball="$(fetch_http "$source")" \ - && tar xzf "$tarball" -C "$destination" --strip-components=1 \ + && tar xzf "$tarball" -C "$destination" \ && return crit "Failed to download $destination" diff --git a/lib/actions/install.bash b/lib/actions/install.bash index 1889657..2febdd5 100644 --- a/lib/actions/install.bash +++ b/lib/actions/install.bash @@ -139,7 +139,7 @@ action_install_modules() { build_moarvm() { info "Starting build on MoarVM" - build_prepare "$BASEDIR/src/moarvm-$VERSION" || return + build_prepare "$BASEDIR/src/moarvm-$VERSION/MoarVM-$VERSION" || return perl Configure.pl \ "$@" \ && make \ @@ -150,7 +150,7 @@ build_moarvm() { build_nqp() { info "Starting build on NQP" - build_prepare "$BASEDIR/src/nqp-$VERSION" || return + build_prepare "$BASEDIR/src/nqp-$VERSION/nqp-$VERSION" || return perl Configure.pl \ --backend="$RSTAR_BACKEND" \ "$@" \ @@ -162,7 +162,7 @@ build_nqp() { build_rakudo() { info "Starting build on Rakudo" - build_prepare "$BASEDIR/src/rakudo-$VERSION" || return + build_prepare "$BASEDIR/src/rakudo-$VERSION/rakudo-$VERSION" || return perl Configure.pl \ --backend="$RSTAR_BACKEND" \ "$@" \ -- cgit v1.1