svn commit: r492283 - head/security/sha1collisiondetection
Mark Linimon
linimon at FreeBSD.org
Wed Feb 6 00:39:33 UTC 2019
Author: linimon
Date: Wed Feb 6 00:39:32 2019
New Revision: 492283
URL: https://svnweb.freebsd.org/changeset/ports/492283
Log:
-std=c90 is not supported by base GCC. Replace it with -std=c89, which
is equivalent, to fix build on GCC-based architectures.
PR: 235536
Submitted by: Piotr Kubaj
Approved by: portmgr (tier-2 blanket)
Modified:
head/security/sha1collisiondetection/Makefile
Modified: head/security/sha1collisiondetection/Makefile
==============================================================================
--- head/security/sha1collisiondetection/Makefile Wed Feb 6 00:27:17 2019 (r492282)
+++ head/security/sha1collisiondetection/Makefile Wed Feb 6 00:39:32 2019 (r492283)
@@ -14,9 +14,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BROKEN_aarch64= fails to compile: generic selections are a C11-specific feature [-Werror,-Wc11-extensions]
BROKEN_armv6= fails to compile: generic selections are a C11-specific feature [-Werror,-Wc11-extensions]
BROKEN_armv7= fails to compile: generic selections are a C11-specific feature [-Werror,-Wc11-extensions]
-BROKEN_mips= fails to compile: cc1: unrecognized command line option -std=c90
-BROKEN_mips64= fails to compile: cc1: unrecognized command line option -std=c90
-BROKEN_powerpc64= fails to compile: cc1: unrecognized command line option -std=c90
USE_GITHUB= yes
GH_ACCOUNT= cr-marcstevens
@@ -30,6 +27,10 @@ PLIST_FILES= bin/sha1dcsum \
lib/libsha1detectcoll.so \
lib/libsha1detectcoll.so.0 \
lib/libsha1detectcoll.so.0.0.0
+
+post-patch:
+ @${REINPLACE_CMD} -e 's/ -std=c90 / -std=c89 /' ${WRKSRC}/Makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/.libs/sha1dcsum* ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/include/sha1dc
More information about the svn-ports-all
mailing list