You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2023/03/22 14:19:25 UTC
[hbase] branch branch-2.4 updated: HBASE-27741 Fall back to protoc osx-x86_64 on Apple Silicon
This is an automated email from the ASF dual-hosted git repository.
ndimiduk pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new 39c4d01c871 HBASE-27741 Fall back to protoc osx-x86_64 on Apple Silicon
39c4d01c871 is described below
commit 39c4d01c871c3f2a9e7055ecfeb37958a49fcd19
Author: Nick Dimiduk <nd...@apache.org>
AuthorDate: Wed Mar 22 14:24:07 2023 +0100
HBASE-27741 Fall back to protoc osx-x86_64 on Apple Silicon
Old protobuf-2.5 doesn't know about Apple Silicon. Fall back to the x86 binary and hope that
rosetta continues to work.
https://cwiki.apache.org/confluence/display/HADOOP/Develop+on+Apple+Silicon+%28M1%29+macOS
Signed-off-by: Peter Somogyi <ps...@apache.org>
---
hbase-build-configuration/pom.xml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/hbase-build-configuration/pom.xml b/hbase-build-configuration/pom.xml
index b0efcdb0925..19892f4ad3e 100644
--- a/hbase-build-configuration/pom.xml
+++ b/hbase-build-configuration/pom.xml
@@ -114,5 +114,22 @@
</plugins>
</build>
</profile>
+ <profile>
+ <!--
+ Old protobuf-2.5 doesn't know about Apple Silicon. Fall back to the x86 binary and hope
+ that rosetta continues to work.
+ https://cwiki.apache.org/confluence/display/HADOOP/Develop+on+Apple+Silicon+%28M1%29+macOS
+ -->
+ <id>apple-silicon-workaround</id>
+ <activation>
+ <os>
+ <family>mac</family>
+ <arch>aarch64</arch>
+ </os>
+ </activation>
+ <properties>
+ <os.detected.classifier>osx-x86_64</os.detected.classifier>
+ </properties>
+ </profile>
</profiles>
</project>