[gtk-osx] Build libnettle on Apple Silicon without assembler.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] Build libnettle on Apple Silicon without assembler.
- Date: Mon, 8 Nov 2021 23:13:09 +0000 (UTC)
commit 2b14a4c4d8fca1f148b1c45a737b285a9292e4ca
Author: John Ralls <jralls ceridwen us>
Date: Mon Nov 8 15:10:23 2021 -0800
Build libnettle on Apple Silicon without assembler.
The provided arm assembler code isn't the right flavor for Apple Silicon.
modulesets-stable/gtk-osx-network.modules | 40 ++++++++++++++++++++++---------
modulesets/gtk-osx-network.modules | 2 +-
2 files changed, 30 insertions(+), 12 deletions(-)
---
diff --git a/modulesets-stable/gtk-osx-network.modules b/modulesets-stable/gtk-osx-network.modules
index bfa250d9..65e1574c 100644
--- a/modulesets-stable/gtk-osx-network.modules
+++ b/modulesets-stable/gtk-osx-network.modules
@@ -35,17 +35,33 @@
</autotools>
<!-- Rudely demands TeX to build documentation -->
- <autotools id="libnettle" autogen-sh="configure"
- autogenargs="--disable-documentation">
- <branch repo="ftp.gnu.org" version="3.7.2"
- module="nettle/nettle-3.7.2.tar.gz"
- hash="sha256:8d2a604ef1cde4cd5fb77e422531ea25ad064679ff0adf956e78b3352e0ef162">
- </branch>
- <dependencies>
- <dep package="gmp"/>
- <dep package="openssl"/>
- </dependencies>
- </autotools>
+ <!-- libnettle 3.7 doesn't have arm64 assembler support and the support that's added in master is for
arm-64-neutron that's incompatible with Apple Silicon. -->
+ <if condition-set="arm64">
+ <autotools id="libnettle" autogen-sh="configure"
+ autogenargs="--disable-documentation --disable-assembler">
+ <branch repo="ftp.gnu.org" version="3.7.2"
+ module="nettle/nettle-3.7.2.tar.gz"
+ hash="sha256:8d2a604ef1cde4cd5fb77e422531ea25ad064679ff0adf956e78b3352e0ef162">
+ </branch>
+ <dependencies>
+ <dep package="gmp"/>
+ <dep package="openssl"/>
+ </dependencies>
+ </autotools>
+ </if>
+ <if condition-unset="arm64">
+ <autotools id="libnettle" autogen-sh="configure"
+ autogenargs="--disable-documentation">
+ <branch repo="ftp.gnu.org" version="3.7.2"
+ module="nettle/nettle-3.7.2.tar.gz"
+ hash="sha256:8d2a604ef1cde4cd5fb77e422531ea25ad064679ff0adf956e78b3352e0ef162">
+ </branch>
+ <dependencies>
+ <dep package="gmp"/>
+ <dep package="openssl"/>
+ </dependencies>
+ </autotools>
+ </if>
<autotools id="libtasn1" autogen-sh="configure">
<branch repo="ftp.gnu.org" version="4.17.0"
@@ -69,6 +85,7 @@
hash="sha256:8a8f40153dd5a3f8e7c03e641f8db400133fb2a6a9ab2aee1b6d0cb0495ec6b6">
</branch>
<dependencies>
+ <dep package="libffi"/>
<dep package="libtasn1"/>
</dependencies>
</autotools>
@@ -85,6 +102,7 @@
<dep package="libtasn1"/>
<dep package="zlib"/>
<dep package="p11-kit"/>
+ <dep package="libgcrypt"/>
</dependencies>
</autotools>
</if>
diff --git a/modulesets/gtk-osx-network.modules b/modulesets/gtk-osx-network.modules
index a1a2cd5d..7799ca5a 100644
--- a/modulesets/gtk-osx-network.modules
+++ b/modulesets/gtk-osx-network.modules
@@ -64,7 +64,7 @@
<autotools id="zlib" autogen-sh="configure" skip-autogen="never"
supports-non-srcdir-builds="no">
<branch repo="sourceforge" version="1.2.11"
- module="libpng/zlib-1.2.11.tar.gz"
+ module="libpng/zlib-1.2.11.tar.xz"
hash="sha256:4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066"/>
</autotools>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]