Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66595 - media-libs/xmms-spc-0.2.1-r1 broken under amd64
Summary: media-libs/xmms-spc-0.2.1-r1 broken under amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-06 19:30 UTC by Tyler Montbriand
Modified: 2005-05-03 12:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch in portage format for port.h (port.h.patch,408 bytes, patch)
2005-05-01 06:17 UTC, Allan Wang
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Montbriand 2004-10-06 19:30:01 UTC
When playing spc files, it either gives total silence or random staccatto twangy clicks.  Did this work under amd64 for anyone, ever?  How did it get marked stable under amd64?

Reproducible: Always
Steps to Reproduce:
1. emerge xmms-spc
2. Try to play an spc in xmms


Actual Results:  
The music was played improperly, with either total silence or random twangy clicks.

Expected Results:  
It should have played the music properly.

Portage 2.0.51_rc1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040808-r0,
2.6.4-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.4-gentoo-r1 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.91.0.1-r1
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo
ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm arts avi berkdb bitmap-fonts cdr crypt cups dvd
encode esd foomaticdb gdbm ggi gif gnome gpm gtk gtk2 guile imlib jpeg kde
libg++ libwww mikmod motif mozilla mpeg multilib mysql ncurses nls nogcj
oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline
scanner sdl slang spell ssl tcltk tcpd truetype usb xml2 xmms xprint xv zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-07 12:29:19 UTC
It worked for me with my test files.

Can you please provide me with a link to the file you're trying to play?

Thanks
Comment 2 Tyler Montbriand 2004-10-10 12:15:28 UTC
Here you go:  http://burningsmell.dyndns.org/02-sting-chameleon.spc
That's just one of hundreds that won't play for me under amd64.  Could you link me to your test files please?
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-31 02:49:42 UTC
ok, it is marked -amd64 now.
Comment 4 fjmccloud 2005-04-30 20:48:07 UTC
Wait!  Before giving up on xmms-spc for amd64, can someone try the following?
Append spcxmms-0.2.1/libspc/port.h line 150 with " || defined(__x86_64__)"

I have reason to believe this is just an endianness bug.  amd64 is also little endian, but is currently treated as big-endian by the snes9x code.  See the thread I have going on the subject here:
http://www.snes9x.com/phpbb2/viewtopic.php?t=1399

I wanted to test this fix myself but I am too much of a neophyte with portage and seem to run into md5 problems when I edit the ebuild.  So I'm hoping someone more experienced than myself can try it.  :-)
Comment 5 Allan Wang 2005-05-01 06:09:17 UTC
I've just tried what #4 suggested and it works perfect here.
Comment 6 Allan Wang 2005-05-01 06:17:27 UTC
Created attachment 57732 [details, diff]
patch in portage format for port.h

This is my first patch, but I think it's about right.
Comment 7 Tyler Montbriand 2005-05-01 10:41:59 UTC
> Wait!  Before giving up on xmms-spc for amd64, can someone try the following?
> Append spcxmms-0.2.1/libspc/port.h line 150 with " || defined(__x86_64__)"
Tested with the patch from Alan, and confirmed!  Thanks!  :D

> I wanted to test this fix myself but I am too much of a neophyte with portage
> and seem to run into md5 problems when I edit the ebuild.  So I'm hoping
> someone more experienced than myself can try it.  :-)

That's a feature ;)  emerge checks lengths of the ebuilds now to guarantee
they've not been corrupted.  Sadly this means you can't just edit an ebuild
to add a flag you want anymore, you have to:

1) Copy the ebuild and it's files into your portage overlay
2) Modify ebuild to taste
3) ebuild foo.ebuild digest
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-03 12:46:23 UTC
in cvs.  thanks.