summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-12-18 13:52:09 +0100
committerFabian Groffen <grobian@gentoo.org>2020-12-18 13:52:09 +0100
commitfa4fe2456b2523f3fbbf3997c33eee494904ef57 (patch)
treebae520796af6982828283842921bf4fcbe5dc925
parentprofiles/prefix/darwin/macos/11.0/arm64: add workaround for config.sub (diff)
downloadgentoo-fa4fe2456b2.tar.gz
gentoo-fa4fe2456b2.tar.bz2
gentoo-fa4fe2456b2.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>
-rw-r--r--profiles/prefix/darwin/macos/arch/arm64/profile.bashrc4
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
}