Subject: pkg/18041: patch: xmms requires libiconv to decode ogg vorbis comments
To: None <>
From: None <richards@CS.Princeton.EDU>
List: netbsd-bugs
Date: 08/22/2002 11:52:52
>Number:         18041
>Category:       pkg
>Synopsis:       patch: xmms requires libiconv to decode ogg vorbis comments
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 22 08:54:00 PDT 2002
>Release:        NetBSD 1.6_RC1
System: NetBSD wubba.CS.Princeton.EDU 1.6_RC1 NetBSD 1.6_RC1 (WUBBA) #2: Tue Aug 20 12:15:41 EDT 2002 richards@wubba.CS.Princeton.EDU:/home/richards/kern i386
Architecture: i386
Machine: i386
	Ogg Vorbis comment metadata is encoded in UTF-8. The present
	xmms package lacks a dependency on libiconv, so vorbis
	comments with diacritics etc. show up as garbage.
	<code/input/activities to reproduce the problem (multiple
	Choose the "view file info" menu option on a vorbis file with
	non-ascii characters in the comment data.
	Patch follows.

diff -u pkgsrc/audio/xmms/Makefile pkgsrc/audio/xmms.iconv/Makefile
--- pkgsrc/audio/xmms/Makefile	Thu Aug  8 12:17:06 2002
+++ pkgsrc/audio/xmms.iconv/Makefile	Thu Aug 22 11:34:57 2002
@@ -27,6 +27,11 @@
 CONFIGURE_ARGS+=	--with-dev-dsp=/dev/sound
+# Broken configure script assumes that iconv_open lives in libc; work around.
+CONFIGURE_ENV+=		ac_cv_func_iconv_open=yes
+LIBS+=			-liconv
 .if (${MACHINE_ARCH} == i386)
 .if (${OBJECT_FMT} == a.out)
@@ -42,6 +47,7 @@
 .include "../../audio/libmikmod/"
 .include "../../audio/libvorbis/"
 .include "../../graphics/Mesa/"
+.include "../../converters/libiconv/"
 .include "../../textproc/libxml/"
 .include "../../x11/gtk/"
 .include "../../mk/"