gentoo: emerge von kde bricht ab

Florian Lohoff flo at rfc822.org
Mon Dec 29 14:32:31 CET 2003


On Mon, Dec 29, 2003 at 01:23:57PM +0100, Florian Lohoff wrote:
> > > > make[2]: *** [xmms.pot] Error 1
> > > > make[2]: Leaving directory
> > > > '/var/tmp/portage/xmms-1.2.7-r20/work/xmms-1.2.7/po'
> > > > make[1]: *** [all-recursive] Error 1
> > > > make[1]: Leaving directory
> > > > '/var/tmp/portage/xmms-1.2.7-r20/work/xmms-1.2.7' make: ***
> > > > [all-recursive-am] Error 2

Ok - Ich bin jetzt auch an dem xmms gescheitert -

touch root # emerge xmms
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/xmms-1.2.7-r20 to /

make[2]: Entering directory `/var/tmp/portage/xmms-1.2.7-r20/work/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
make[2]: *** [xmms.pot] Error 1
make[2]: Leaving directory `/var/tmp/portage/xmms-1.2.7-r20/work/xmms-1.2.7/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmms-1.2.7-r20/work/xmms-1.2.7'
make: *** [all-recursive-am] Error 2

Problem ist das in einigen Strings non-ASCII character drin vorkommen
was bedeuted das gettext nicht weiss was fuer eines ursprungs die sind.
(ISO-8859-1 vs 15 vs UTF-8 etc) - D.h. der bricht die convertierung ab.

touch root # sed -ne "48,52p" /var/tmp/portage/xmms-1.2.7-r20/work/xmms-1.2.7/Input/tonegen/tonegen.c 
	box = xmms_show_message(
		_("About Tone Generator"),
		_("Sinus tone generator by Håvard Kvålen <havardk at xmms.org>\n"
		  "Modified by Daniel J. Peng <danielpeng at bigfoot.com>\n\n"
		  "To use it, add a URL: tone://frequency1;frequency2;frequency3;...\n"

Das interessante ist das fuer den xmms bereits ein patch im workdir liegt der
diesen fehler behebt. Dieser wird bei version 1.2.7-r20 aber nicht applied. 

Hier ein patch fuer /usr/portage das das behebt.


--- portage/media-sound/xmms/xmms-1.2.7-r20.ebuild	2003-12-29 13:24:51.979070184 +0000
+++ portage/media-sound/xmms/xmms-1.2.7-r20.ebuild.flo	2003-12-29 13:25:16.656428644 +0000
@@ -42,6 +42,9 @@
 	# Save playlist, etc on SIGTERM and SIGINT, bug #13604.
 	epatch ${PATCHDIR}/xmms-sigterm.patch
 
+	# Otherwise compile fails
+	epatch ${PATCHDIR}/xmms-gettext-fix.patch
+
 	# The following optimisations are ONLY for x86 platform
 	if [ `use x86` ] ; then
 		# For mmx/3dnow enabled CPUs, this patch adds mmx/3dnow optimisations


cd /usr
patch -p0 -E <$patchfile
emerge xmms

Feddich - beim naechsten emerge sync ists natuerlich wech. Wie man DAS jetzt schoener
macht weiss ich nicht. Mein gentoo wissen ist derzeit noch minimal.

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-171-2280134
                        Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20031229/a1659353/attachment.sig>


More information about the Linux mailing list