Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2019 08:12:06 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491022 - head/chinese/pyzy
Message-ID:  <201901230812.x0N8C6BH011601@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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