Subject: audio/xmms needs fix for xgettext
To: maintainer for pkgsrc's xmms <rh@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/20/2004 10:00:03
xmms build failed when using new xgettext:
make[2]: Entering directory
`/scratch/pkgsrc/audio/xmms/work.puget/xmms-1.2.7/po'
PATH=../src:$PATH /usr/bin/xgettext --default-domain=xmms --directory=.. \
--add-comments --keyword=_ --keyword=N_ \
--files-from=./POTFILES.in \
&& test ! -f xmms.po \
|| ( rm -f ./xmms.pot \
&& mv xmms.po ./xmms.pot )
/usr/bin/xgettext: Non-ASCII string at Input/tonegen/tonegen.c:50.
Please specify the source encoding through --from-code.
mv: cannot stat `xmms.po': No such file or directory
I saw some other references such as:
http://lists.xmms.org/pipermail/xmms-devel/2004-January/002658.html
http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-sound/xmms/files/Attic/xmms-gettext-fix.patch
Here is what I used for Linux (but it is wrong):
$NetBSD$
--- po/Makefile.in.in.orig 2002-03-04 13:56:47.000000000 -0800
+++ po/Makefile.in.in
@@ -18,9 +18,9 @@ VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
-datadir = $(prefix)/@DATADIRNAME@
-localedir = $(datadir)/locale
-gnulocaledir = $(prefix)/share/locale
+datadir = @datadir@
+localedir = /usr/share/locale
+gnulocaledir = /usr/share/locale
gettextsrcdir = $(prefix)/share/gettext/po
subdir = po
@@ -34,7 +34,7 @@ CC = @CC@
GENCAT = @GENCAT@
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
MSGFMT = @MSGFMT@
-XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
+XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ --language=C --from-code=iso-8859-1
MSGMERGE = PATH=../src:$$PATH msgmerge
DEFS = @DEFS@
The above is wrong, because under NetBSD 1.6.2's /usr/bin/xgettext doesn't
support it:
/usr/bin/xgettext: unrecognized option `--from-code=iso-8859-1'
Try `/usr/bin/xgettext --help' for more information.
mv: rename xmms.po to ./xmms.pot: No such file or directory
Also, I didn't try if xgettext from gettext package works either.
Jeremy C. Reed
http://www.reedmedia.net/