From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 1 23:40:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D4433238 for ; Thu, 1 Aug 2013 23:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 981362173 for ; Thu, 1 Aug 2013 23:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r71Ne3Wn008785 for ; Thu, 1 Aug 2013 23:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r71Ne3JV008784; Thu, 1 Aug 2013 23:40:03 GMT (envelope-from gnats) Resent-Date: Thu, 1 Aug 2013 23:40:03 GMT Resent-Message-Id: <201308012340.r71Ne3JV008784@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Laursen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 34C19F80 for ; Thu, 1 Aug 2013 23:38:28 +0000 (UTC) (envelope-from peter@mosedal.net) Received: from cicero4.cybercity.dk (cicero-fbr1.cybercity.dk [212.242.40.5]) by mx1.freebsd.org (Postfix) with ESMTP id EBB7A2163 for ; Thu, 1 Aug 2013 23:38:27 +0000 (UTC) Received: from smtp1.cybercity.dk (smtp1.cybercity.dk [212.242.43.251]) by cicero4.cybercity.dk (Postfix) with ESMTP id 334F9134C00 for ; Fri, 2 Aug 2013 00:20:43 +0200 (CEST) Received: from freebsd-server.mosedal.net (0x55534cdd.adsl.cybercity.dk [85.83.76.221]) by smtp1.cybercity.dk (Postfix) with ESMTP id 4451710881F; Fri, 2 Aug 2013 00:20:36 +0200 (CEST) Received: by freebsd-server.mosedal.net (Postfix, from userid 1001) id 1C8766F4A7A; Fri, 2 Aug 2013 00:20:36 +0200 (CEST) Message-Id: <20130801222036.1C8766F4A7A@freebsd-server.mosedal.net> Date: Fri, 2 Aug 2013 00:20:36 +0200 (CEST) From: Peter Laursen To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/180991: /devel/glib20 fails to build if WITH_BSD_ICONV is set in /etc/src.conf Cc: peter@tdlsoftware.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Peter Laursen List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 23:40:03 -0000 >Number: 180991 >Category: ports >Synopsis: /devel/glib20 fails to build if WITH_BSD_ICONV is set in /etc/src.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 01 23:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Peter Laursen >Release: FreeBSD 10.0-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253761: Sat Jul 27 23:58:13 UTC 2013 root@:/usr/obj/usr/src/sys/PETER i386 >Description: devel/glib20 fails to build properly if WITH_ICONV="YES" is set in /etc/src.conf The problem lies in the character set specified in the .PO files accompanying glib20. The character set is specified as "UTF-8\n" which the BSD iconv chokes upon. To make the port build, the character set should be specified as "UTF-8". >How-To-Repeat: cd /usr/ports/devel/glib20 make Port fails when msgfmt is called in the po folder during build >Fix: I added this to the post-patch target of the Makefile in /usr/ports/devel/glib20: @${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po This makes the port build properly. It replaces all occurrences of "UTF-8\n" with "UTF-8" >Release-Note: >Audit-Trail: >Unformatted: