[Bug 260078] security/gnutls fails to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 28 Nov 2021 16:54:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260078

Bjoern A. Zeeb <bz@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |bz@FreeBSD.org

--- Comment #2 from Bjoern A. Zeeb <bz@FreeBSD.org> ---
I can confirm that this change locally makes gnutls build for me.
It's probably not the proper way to fix this in ports.

Thanks a lot @dim for your quick diagnose and reply!

diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile
index 1ed334f7ca95..cebb0d6016c3 100644
--- a/security/gnutls/Makefile
+++ b/security/gnutls/Makefile
@@ -17,7 +19,7 @@ LIB_DEPENDS=  libgmp.so:math/gmp \
                libunistring.so:devel/libunistring
 RUN_DEPENDS=   ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss

-USES=          compiler:c11 cpe gmake iconv libtool localbase makeinfo \
+USES=          compiler:c11 cpe gmake iconv autoreconf libtool localbase
makeinfo \
                pkgconfig tar:xz
 USE_LDCONFIG=  yes

diff --git a/security/gnutls/files/patch-aarch64-clang-fix-PR260078
b/security/gnutls/files/patch-aarch64-clang-fix-PR260078
new file mode 100644
index 000000000000..672c41da6065
--- /dev/null
+++ b/security/gnutls/files/patch-aarch64-clang-fix-PR260078
@@ -0,0 +1,11 @@
+--- lib/accelerated/aarch64/Makefile.am.orig   2021-04-19 07:28:28.000000000
+0000
++++ lib/accelerated/aarch64/Makefile.am        2021-11-28 16:02:10.613775000
+0000
+@@ -34,7 +34,7 @@ AM_CPPFLAGS += -I$(srcdir)/../../minitasn1
+ endif
+ 
+ #ensure that we have all aarch64 instruction sets enabled for the assembler
+-AM_CCASFLAGS = -Wa,-march=all
++#AM_CCASFLAGS = -Wa,-march=all
+ 
+ EXTRA_DIST = README
+

-- 
You are receiving this mail because:
You are on the CC list for the bug.