FS#27953 - [xmms]
Attached to Project:
Arch Linux
Opened by cyberic (cyberic) - Sunday, 15 January 2012, 23:34 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 17 January 2012, 03:40 GMT
Opened by cyberic (cyberic) - Sunday, 15 January 2012, 23:34 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 17 January 2012, 03:40 GMT
|
Details
Description:
The PKGBUILD is too specific to x86. I tried to build xmms on ARM, and the mp3 playing routines were built with x86 MMX optimization... Here is the diff for a better PKGBUILD, I think: --- orig/xmms/PKGBUILD 2012-01-15 06:04:46.000000000 +0100 +++ xmms/PKGBUILD 2012-01-16 00:07:52.931889001 +0100 @@ -50,10 +50,10 @@ patch -p1 < ../xmms-1.2.10-fonts.patch patch -p1 < ../xmms-1.2.11-CVE-2007-0653.0654.patch - if [ "$CARCH" == "x86_64" ]; then - SIMDOPT="--disable-simd" - else + if [ "$CARCH" == "i686_64" ]; then SIMDOPT="--enable-simd" + else + SIMDOPT="--disable-simd" fi ./configure --prefix=/usr --mandir=/usr/share/man $SIMDOPT make |
This task depends upon
+ if [ "$CARCH" == "i686_64" ]; then
should be:
+ if [ "$CARCH" == "i686" ]; then
But the test in the PKGBUILD is wrong: the optimization should only apply to i686 arch.
If one day another architecture is added, this will break as well.
With this fix applied, the PKGBUILD can be used as is on any other architecture, which is great, even if not supported.