From owner-svn-ports-head@freebsd.org Wed Feb 1 05:28:01 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CEA60CCD8CF; Wed, 1 Feb 2017 05:28:01 +0000 (UTC) (envelope-from jbeich@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 mx1.freebsd.org (Postfix) with ESMTPS id 60818126C; Wed, 1 Feb 2017 05:28:01 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v115S04w088339; Wed, 1 Feb 2017 05:28:00 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v115S0HU088336; Wed, 1 Feb 2017 05:28:00 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702010528.v115S0HU088336@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 1 Feb 2017 05:28:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432981 - in head/graphics/swfmill: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 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, 01 Feb 2017 05:28:01 -0000 Author: jbeich Date: Wed Feb 1 05:28:00 2017 New Revision: 432981 URL: https://svnweb.freebsd.org/changeset/ports/432981 Log: graphics/swfmill: unbreak with clang 4.0 gSWFParseXML.cpp:19:10: error: ordered comparison between pointer and zero ('iconv_t' (aka '__tag_iconv_t *') and 'int') if (cd < 0) { ~~ ^ ~ gSWFWriteXML.cpp:15:10: error: ordered comparison between pointer and zero ('iconv_t' (aka '__tag_iconv_t *') and 'int') if (cd < 0) { ~~ ^ ~ Reported by: antoine (via exp-run) Added: head/graphics/swfmill/files/patch-src_codegen_parsexml.xsl (contents, props changed) head/graphics/swfmill/files/patch-src_codegen_writexml.xsl (contents, props changed) Modified: head/graphics/swfmill/Makefile (contents, props changed) Modified: head/graphics/swfmill/Makefile ============================================================================== --- head/graphics/swfmill/Makefile Wed Feb 1 05:27:46 2017 (r432980) +++ head/graphics/swfmill/Makefile Wed Feb 1 05:28:00 2017 (r432981) @@ -3,7 +3,7 @@ PORTNAME= swfmill PORTVERSION= 0.3.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= http://swfmill.org/releases/ Added: head/graphics/swfmill/files/patch-src_codegen_parsexml.xsl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/swfmill/files/patch-src_codegen_parsexml.xsl Wed Feb 1 05:28:00 2017 (r432981) @@ -0,0 +1,11 @@ +--- src/codegen/parsexml.xsl.orig 2013-10-30 17:33:35 UTC ++++ src/codegen/parsexml.xsl +@@ -19,7 +19,7 @@ char *fromXmlChar(const Context *ctx, co + if (ctx->convertEncoding) { + size_t len = strlen((const char *)from_str); + iconv_t cd = iconv_open(ctx->swf_encoding, "UTF-8"); +- if (cd < 0) { ++ if (cd == NULL) { + fprintf(stderr, "iconv_open failed.\n"); + char *buf = new char[1]; + buf[0] = '\0'; Added: head/graphics/swfmill/files/patch-src_codegen_writexml.xsl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/swfmill/files/patch-src_codegen_writexml.xsl Wed Feb 1 05:28:00 2017 (r432981) @@ -0,0 +1,11 @@ +--- src/codegen/writexml.xsl.orig 2013-10-30 17:33:35 UTC ++++ src/codegen/writexml.xsl +@@ -15,7 +15,7 @@ xmlChar *toXmlChar(const Context *ctx, c + if (ctx->convertEncoding) { + size_t len = strlen(from_str); + iconv_t cd = iconv_open("UTF-8", ctx->swf_encoding); +- if (cd < 0) { ++ if (cd == NULL) { + fprintf(stderr, "iconv_open failed.\n"); + return xmlCharStrdup(""); + }