Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2019 14:58:42 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r516062 - in head/security/opensc: . files
Message-ID:  <201910301458.x9UEwggg073350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Wed Oct 30 14:58:41 2019
New Revision: 516062
URL: https://svnweb.freebsd.org/changeset/ports/516062

Log:
  Fix build on powerpc and arm
  
  PR:		241588
  Submitted by:	pkubaj

Added:
  head/security/opensc/files/patch-src_tests_p11test_p11test.c   (contents, props changed)
Modified:
  head/security/opensc/Makefile

Modified: head/security/opensc/Makefile
==============================================================================
--- head/security/opensc/Makefile	Wed Oct 30 14:36:29 2019	(r516061)
+++ head/security/opensc/Makefile	Wed Oct 30 14:58:41 2019	(r516062)
@@ -11,7 +11,7 @@ COMMENT=	Libraries and utilities to access smart cards
 
 LICENSE=	LGPL21
 
-USES=		autoreconf compiler gmake libtool pkgconfig ssl
+USES=		autoreconf compiler:c11 gmake libtool pkgconfig ssl
 
 OPTIONS_SINGLE=	BACKEND
 OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
@@ -70,12 +70,4 @@ CONFIGURE_ENV+=	XSLTPROC="${FALSE}"
 CONFIGURE_ARGS+=--without-xsl-stylesheetsdir
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == gcc
-post-patch:
-	${REINPLACE_CMD} -e '/-Wno-unused-but-set-variable/d' \
-		${WRKSRC}/src/tools/Makefile.am
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: head/security/opensc/files/patch-src_tests_p11test_p11test.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/opensc/files/patch-src_tests_p11test_p11test.c	Wed Oct 30 14:58:41 2019	(r516062)
@@ -0,0 +1,11 @@
+--- src/tests/p11test/p11test.c.orig	2019-10-30 14:56:38 UTC
++++ src/tests/p11test/p11test.c
+@@ -49,7 +49,7 @@ void display_usage() {
+ }
+ 
+ int main(int argc, char** argv) {
+-	char command;
++	signed char command;
+ 	const struct CMUnitTest readonly_tests_without_initialization[] = {
+ 		/* Test card events on slot */
+ 		cmocka_unit_test_setup_teardown(wait_test,



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