Bug 180991

Summary: /devel/glib20 fails to build if WITH_BSD_ICONV is set in /etc/src.conf
Product: Ports & Packages Reporter: Peter Laursen <peter>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me CC: peter
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Peter Laursen 2013-08-02 00:40:00 UTC
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".

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"
How-To-Repeat: cd /usr/ports/devel/glib20
make
Port fails when msgfmt is called in the po folder during build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-08-02 00:40:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 sean_bruno 2013-08-04 18:54:56 UTC
confirmed broken

confirmed fixed with submitters change.

Please commit ASAP.

Sean
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2013-08-05 20:12:32 UTC
State Changed
From-To: open->closed

Ugh, the actual problem is a devel/gettext update that happend at svn 
r 323088 in ports. 

Reverting back to previous release of devel/gettext allows .po files 
to be processed again.  I have added pr ports/181076 to get this fixed. 

After that, we should revisit WITH_ICONV processing