Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  2 Aug 2013 00:20:36 +0200 (CEST)
From:      Peter Laursen <peter@tdlsoftware.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        peter@tdlsoftware.org
Subject:   ports/180991: /devel/glib20 fails to build if WITH_BSD_ICONV is set in /etc/src.conf 
Message-ID:  <20130801222036.1C8766F4A7A@freebsd-server.mosedal.net>
Resent-Message-ID: <201308012340.r71Ne3JV008784@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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