From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 29 14:20:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DA22106566C for ; Sun, 29 Aug 2010 14:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8E3EF8FC0C for ; Sun, 29 Aug 2010 14:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7TEK2Aw095438 for ; Sun, 29 Aug 2010 14:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7TEK2wS095437; Sun, 29 Aug 2010 14:20:02 GMT (envelope-from gnats) Date: Sun, 29 Aug 2010 14:20:02 GMT Message-Id: <201008291420.o7TEK2wS095437@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Anonymous Cc: Subject: Re: ports/150074: [patch] games/hex-a-hop: update to 1.1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 14:20:02 -0000 The following reply was made to PR ports/150074; it has been noted by GNATS. From: Anonymous To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/150074: [patch] games/hex-a-hop: update to 1.1.0 Date: Sun, 29 Aug 2010 18:09:32 +0400 Looks like I've stepped on a landmine: const qualifier in iconv.h. Below is a patch from the maintainer that fixes compilation with GNU iconv. --- c.diff begins here --- Index: games/hex-a-hop/files/patch-src-text.cpp =================================================================== RCS file: games/hex-a-hop/files/patch-src-text.cpp diff -N games/hex-a-hop/files/patch-src-text.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ games/hex-a-hop/files/patch-src-text.cpp 29 Aug 2010 14:00:10 -0000 @@ -0,0 +1,11 @@ +--- src/text.cpp~ ++++ src/text.cpp +@@ -439,7 +439,7 @@ void ConvertToUTF8(const std::string &te + errno = 0; + static const char *locale_enc = gettext_init.GetEncoding(); + iconv_t cd = iconv_open("UTF-8", locale_enc); +- char *in_buf = const_cast(&text_locally_encoded[0]); ++ const char *in_buf = const_cast(&text_locally_encoded[0]); + char *out_buf = &text_utf8[0]; + iconv(cd, &in_buf, &text_length, &out_buf, &text_utf8_length); + iconv_close(cd); --- c.diff ends here ---