diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-12-18 13:52:09 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-12-18 13:52:09 +0100 |
commit | fa4fe2456b2523f3fbbf3997c33eee494904ef57 (patch) | |
tree | bae520796af6982828283842921bf4fcbe5dc925 /profiles/prefix | |
parent | profiles/prefix/darwin/macos/11.0/arm64: add workaround for config.sub (diff) | |
download | gentoo-fa4fe2456b2523f3fbbf3997c33eee494904ef57.tar.gz gentoo-fa4fe2456b2523f3fbbf3997c33eee494904ef57.tar.bz2 gentoo-fa4fe2456b2523f3fbbf3997c33eee494904ef57.zip |
profiles/prefix/darwin/macos/arch/arm64: fix pre_src_configure hook
apparently this is executed without any guards or anything, so make sure
we restore the original working directory
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'profiles/prefix')
-rw-r--r-- | profiles/prefix/darwin/macos/arch/arm64/profile.bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/profiles/prefix/darwin/macos/arch/arm64/profile.bashrc b/profiles/prefix/darwin/macos/arch/arm64/profile.bashrc index 821237e65875..6bfe36915c9d 100644 --- a/profiles/prefix/darwin/macos/arch/arm64/profile.bashrc +++ b/profiles/prefix/darwin/macos/arch/arm64/profile.bashrc @@ -3,7 +3,7 @@ pre_src_configure() { # catch when multiple pkgs are in one ebuild - cd "${WORKDIR}" + pushd "${WORKDIR}" > /dev/null # macOS Big Sur (11.x, darwin20) supports Apple Silicon (arm64), # which config.sub currently doesn't understand about. It is, @@ -18,4 +18,6 @@ pre_src_configure() { find . -name "config.sub" | \ xargs sed -i -e 's/ aarch64 / aarch64 | arm64 /' fi + + popd > /dev/null } |