From owner-svn-ports-head@freebsd.org Wed Jan 23 08:12:07 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49DB014BEE0F; Wed, 23 Jan 2019 08:12:07 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E128A8F830; Wed, 23 Jan 2019 08:12:06 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D7618E15E; Wed, 23 Jan 2019 08:12:06 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0N8C6jW011602; Wed, 23 Jan 2019 08:12:06 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0N8C6BH011601; Wed, 23 Jan 2019 08:12:06 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201901230812.x0N8C6BH011601@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Wed, 23 Jan 2019 08:12:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491022 - head/chinese/pyzy X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: head/chinese/pyzy X-SVN-Commit-Revision: 491022 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E128A8F830 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2019 08:12:07 -0000 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