Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2020 18:44:59 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r545127 - head/security/libfido2
Message-ID:  <202008161844.07GIixp5090219@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sun Aug 16 18:44:59 2020
New Revision: 545127
URL: https://svnweb.freebsd.org/changeset/ports/545127

Log:
  security/libfido2: fix build on GCC architectures
  
  Use newer compiler:
  /wrkdirs/usr/ports/security/libfido2/work/libfido2-1.4.0/src/fido.h:115: error: wrong number of arguments specified for '__deprecated__' attribute
  
  MFH:		2020Q3 (fix build blanket)

Modified:
  head/security/libfido2/Makefile

Modified: head/security/libfido2/Makefile
==============================================================================
--- head/security/libfido2/Makefile	Sun Aug 16 17:45:41 2020	(r545126)
+++ head/security/libfido2/Makefile	Sun Aug 16 18:44:59 2020	(r545127)
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libcbor.so:devel/libcbor \
 		libhidapi.so.0:comms/hidapi
 
-USES=		cmake compiler pkgconfig ssl
+USES=		cmake compiler:c11 pkgconfig ssl
 
 CFLAGS+=	-D_WITH_GETLINE
 CMAKE_ON=	USE_HIDAPI
@@ -29,8 +29,5 @@ OPTIONS_DEFINE=	DOCS
 post-patch:
 	@${REINPLACE_CMD} -e '/libcrypto/d' ${WRKSRC}/CMakeLists.txt
 	@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/CMakeLists.txt ${WRKSRC}/openbsd-compat/openbsd-compat.h
-.if ${CHOSEN_COMPILER_TYPE} == gcc
-	@${REINPLACE_CMD} -e '/-Wno-unused-result/d; /-Wno-discarded-qualifiers/d' ${WRKSRC}/CMakeLists.txt
-.endif
 
 .include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008161844.07GIixp5090219>