commit: fa4fe2456b2523f3fbbf3997c33eee494904ef57
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 18 12:52:09 2020 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Dec 18 12:52:09 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa4fe245
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 <AT> gentoo.org>
profiles/prefix/darwin/macos/arch/arm64/profile.bashrc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/profiles/prefix/darwin/macos/arch/arm64/profile.bashrc
b/profiles/prefix/darwin/macos/arch/arm64/profile.bashrc
index 821237e6587..6bfe36915c9 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
}