svn commit: r491022 - head/chinese/pyzy
Mark Linimon
linimon at FreeBSD.org
Wed Jan 23 08:12:07 UTC 2019
Author: linimon
Date: Wed Jan 23 08:12:06 2019
New Revision: 491022
URL: https://svnweb.freebsd.org/changeset/ports/491022
Log:
Add -Wno-error=narrowing when the architecture has base GCC (and thus
uses new GCC from ports) to prevent the following:
DoublePinyinTable.h:86:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
While here, pet portlint.
PR: 235105
Submitted by: Piotr Kubaj
Approved by: portmgr (tier-2 blanket)
Modified:
head/chinese/pyzy/Makefile
Modified: head/chinese/pyzy/Makefile
==============================================================================
--- head/chinese/pyzy/Makefile Wed Jan 23 07:47:12 2019 (r491021)
+++ head/chinese/pyzy/Makefile Wed Jan 23 08:12:06 2019 (r491022)
@@ -11,6 +11,10 @@ COMMENT= Chinese PinYin and Bopomofo conversion librar
LICENSE= LGPL21
+BROKEN_aarch64= fails to compile: constant expression evaluates to -1
+BROKEN_armv6= fails to compile: constant expression evaluates to -1
+BROKEN_armv7= fails to compile: constant expression evaluates to -1
+
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
USE_GITHUB= yes
@@ -21,11 +25,6 @@ SHEBANG_FILES= data/db/android/create_db.py
USE_GNOME= glib20
USE_LDCONFIG= yes
-BROKEN_aarch64= fails to compile: constant expression evaluates to -1
-BROKEN_armv6= fails to compile: constant expression evaluates to -1
-BROKEN_armv7= fails to compile: constant expression evaluates to -1
-BROKEN_powerpc64= fails to compile: narrowing conversion of '-1' from 'int' to 'char'
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost
@@ -36,6 +35,10 @@ OPENCC_DESC= Use opencc for simplified and traditional
OPENCC_CONFIGURE_ENABLE= opencc
OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc
+
+.if exists(/usr/lib/libstdc++.so)
+CXXFLAGS+= -Wno-error=narrowing
+.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-1.0.so
More information about the svn-ports-head
mailing list