From 56ba5f3c5e06af89fd0bf710839635d3e5f1ac60 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 13 Mar 2009 23:21:17 -0500
Subject: Moving several more packages to core, because they are dependencies
 of other packages in core.

xosd
esound
ftgl
gdk-pixbuf
glib
gtklibmpg2
libvisual
libxml-perl
perl-xml-regexp
projectm

libdv
libmng
---
 abs/core-testing/esound/PKGBUILD                   |  34 +++
 abs/core-testing/esound/esd                        |  37 +++
 .../esound/esd-0.2.38-alsa-drain.patch             |  11 +
 abs/core-testing/ftgl/PKGBUILD                     |  25 ++
 abs/core-testing/ftgl/ftgl-gcc411.patch            |  12 +
 abs/core-testing/gdk-pixbuf/PKGBUILD               |  33 +++
 .../gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch     |  48 ++++
 .../gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch  |  19 ++
 .../gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch     | 134 +++++++++++
 .../gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch          |   9 +
 abs/core-testing/glib/PKGBUILD                     |  32 +++
 abs/core-testing/glib/aclocal-fixes.patch          |  11 +
 abs/core-testing/glib/gcc340.patch                 |  15 ++
 abs/core-testing/gtk/PKGBUILD                      |  32 +++
 abs/core-testing/gtk/aclocal-fixes.patch           |  11 +
 abs/core-testing/libdv/PKGBUILD                    |  23 ++
 .../libdv/libdv-0.104-amd64reloc.patch             | 262 +++++++++++++++++++++
 abs/core-testing/libmng/PKGBUILD                   |  25 ++
 abs/core-testing/libmpeg2/PKGBUILD                 |  28 +++
 abs/core-testing/libvisual/PKGBUILD                |  21 ++
 abs/core-testing/libxml-perl/PKGBUILD              |  23 ++
 abs/core-testing/perl-xml-dom/PKGBUILD             |  23 ++
 .../perl_modules/perl-xml-regexp/PKGBUILD          |  23 ++
 abs/core-testing/projectm/PKGBUILD                 |  21 ++
 abs/core-testing/projectm/projectm.install         |  13 +
 abs/core-testing/xosd/PKGBUILD                     |  26 ++
 abs/extra-testing/community/perl-xml-dom/PKGBUILD  |  23 --
 abs/extra-testing/esound/PKGBUILD                  |  34 ---
 abs/extra-testing/esound/esd                       |  37 ---
 .../esound/esd-0.2.38-alsa-drain.patch             |  11 -
 abs/extra-testing/ftgl/PKGBUILD                    |  25 --
 abs/extra-testing/ftgl/ftgl-gcc411.patch           |  12 -
 abs/extra-testing/gdk-pixbuf/PKGBUILD              |  33 ---
 .../gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch     |  48 ----
 .../gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch  |  19 --
 .../gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch     | 134 -----------
 .../gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch          |   9 -
 abs/extra-testing/glib/PKGBUILD                    |  32 ---
 abs/extra-testing/glib/aclocal-fixes.patch         |  11 -
 abs/extra-testing/glib/gcc340.patch                |  15 --
 abs/extra-testing/gtk/PKGBUILD                     |  32 ---
 abs/extra-testing/gtk/aclocal-fixes.patch          |  11 -
 abs/extra-testing/libdv/PKGBUILD                   |  23 --
 .../libdv/libdv-0.104-amd64reloc.patch             | 262 ---------------------
 abs/extra-testing/libmng/PKGBUILD                  |  25 --
 abs/extra-testing/libmpeg2/PKGBUILD                |  28 ---
 abs/extra-testing/libvisual/PKGBUILD               |  21 --
 abs/extra-testing/libxml-perl/PKGBUILD             |  23 --
 abs/extra-testing/perl-xml-regexp/PKGBUILD         |  23 --
 abs/extra-testing/projectm/PKGBUILD                |  21 --
 abs/extra-testing/projectm/projectm.install        |  13 -
 abs/extra-testing/xosd/PKGBUILD                    |  26 --
 52 files changed, 951 insertions(+), 951 deletions(-)
 create mode 100644 abs/core-testing/esound/PKGBUILD
 create mode 100755 abs/core-testing/esound/esd
 create mode 100644 abs/core-testing/esound/esd-0.2.38-alsa-drain.patch
 create mode 100644 abs/core-testing/ftgl/PKGBUILD
 create mode 100644 abs/core-testing/ftgl/ftgl-gcc411.patch
 create mode 100644 abs/core-testing/gdk-pixbuf/PKGBUILD
 create mode 100644 abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
 create mode 100644 abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch
 create mode 100644 abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch
 create mode 100644 abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch
 create mode 100644 abs/core-testing/glib/PKGBUILD
 create mode 100644 abs/core-testing/glib/aclocal-fixes.patch
 create mode 100644 abs/core-testing/glib/gcc340.patch
 create mode 100644 abs/core-testing/gtk/PKGBUILD
 create mode 100644 abs/core-testing/gtk/aclocal-fixes.patch
 create mode 100644 abs/core-testing/libdv/PKGBUILD
 create mode 100644 abs/core-testing/libdv/libdv-0.104-amd64reloc.patch
 create mode 100644 abs/core-testing/libmng/PKGBUILD
 create mode 100644 abs/core-testing/libmpeg2/PKGBUILD
 create mode 100644 abs/core-testing/libvisual/PKGBUILD
 create mode 100644 abs/core-testing/libxml-perl/PKGBUILD
 create mode 100644 abs/core-testing/perl-xml-dom/PKGBUILD
 create mode 100644 abs/core-testing/perl_modules/perl-xml-regexp/PKGBUILD
 create mode 100644 abs/core-testing/projectm/PKGBUILD
 create mode 100644 abs/core-testing/projectm/projectm.install
 create mode 100644 abs/core-testing/xosd/PKGBUILD
 delete mode 100644 abs/extra-testing/community/perl-xml-dom/PKGBUILD
 delete mode 100644 abs/extra-testing/esound/PKGBUILD
 delete mode 100755 abs/extra-testing/esound/esd
 delete mode 100644 abs/extra-testing/esound/esd-0.2.38-alsa-drain.patch
 delete mode 100644 abs/extra-testing/ftgl/PKGBUILD
 delete mode 100644 abs/extra-testing/ftgl/ftgl-gcc411.patch
 delete mode 100644 abs/extra-testing/gdk-pixbuf/PKGBUILD
 delete mode 100644 abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
 delete mode 100644 abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch
 delete mode 100644 abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch
 delete mode 100644 abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch
 delete mode 100644 abs/extra-testing/glib/PKGBUILD
 delete mode 100644 abs/extra-testing/glib/aclocal-fixes.patch
 delete mode 100644 abs/extra-testing/glib/gcc340.patch
 delete mode 100644 abs/extra-testing/gtk/PKGBUILD
 delete mode 100644 abs/extra-testing/gtk/aclocal-fixes.patch
 delete mode 100644 abs/extra-testing/libdv/PKGBUILD
 delete mode 100644 abs/extra-testing/libdv/libdv-0.104-amd64reloc.patch
 delete mode 100644 abs/extra-testing/libmng/PKGBUILD
 delete mode 100644 abs/extra-testing/libmpeg2/PKGBUILD
 delete mode 100644 abs/extra-testing/libvisual/PKGBUILD
 delete mode 100644 abs/extra-testing/libxml-perl/PKGBUILD
 delete mode 100644 abs/extra-testing/perl-xml-regexp/PKGBUILD
 delete mode 100644 abs/extra-testing/projectm/PKGBUILD
 delete mode 100644 abs/extra-testing/projectm/projectm.install
 delete mode 100644 abs/extra-testing/xosd/PKGBUILD

diff --git a/abs/core-testing/esound/PKGBUILD b/abs/core-testing/esound/PKGBUILD
new file mode 100644
index 0000000..b157aab
--- /dev/null
+++ b/abs/core-testing/esound/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 19662 2008-11-28 20:35:54Z jgc $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+pkgname=esound
+pkgver=0.2.41
+pkgrel=1
+pkgdesc="Enlightened Sound Daemon"
+arch=(i686 x86_64)
+license=('LGPL')
+depends=('audiofile' 'tcp_wrappers' 'alsa-lib>=1.0.18')
+url="http://www.tux.org/~ricdude/EsounD.html"
+provides=("esd=${pkgver}")
+replaces=('esd')
+conflicts=('esd')
+backup=('etc/esd.conf')
+options=('!libtool')
+source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/0.2/${pkgname}-${pkgver}.tar.bz2
+	esd-0.2.38-alsa-drain.patch
+	esd)
+md5sums=('8d9aad3d94d15e0d59ba9dc0ea990c6c'
+         '3de93efcd1bc196a3585e6aef50eac48'
+         'a4c76e7c7f75b201ea7ab6fb15b47472')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i "${srcdir}/esd-0.2.38-alsa-drain.patch" || return 1
+  ./configure --prefix=/usr --sysconfdir=/etc \
+              --localstatedir=/var --disable-static \
+              --with-audiofile --with-libwrap \
+	      --enable-alsa --disable-artstest || return 1
+  make || return 1
+  make DESTDIR="${pkgdir}" install || return 1
+  install -m755 -d "${pkgdir}/etc/rc.d"
+  install -m755 "${srcdir}/esd" "${pkgdir}/etc/rc.d/esd" || return 1
+}
diff --git a/abs/core-testing/esound/esd b/abs/core-testing/esound/esd
new file mode 100755
index 0000000..d90ef55
--- /dev/null
+++ b/abs/core-testing/esound/esd
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/bin/esd`
+case "$1" in
+  start)
+    stat_busy "Starting Esound Daemon"
+    if [ -z "$PID" ]; then 
+       /usr/bin/esd -nobeeps &
+    fi
+    if [ ! -z "$PID" -o $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon esd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping Esound Daemon"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon esd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
diff --git a/abs/core-testing/esound/esd-0.2.38-alsa-drain.patch b/abs/core-testing/esound/esd-0.2.38-alsa-drain.patch
new file mode 100644
index 0000000..f2fb716
--- /dev/null
+++ b/abs/core-testing/esound/esd-0.2.38-alsa-drain.patch
@@ -0,0 +1,11 @@
+--- esound-0.2.38/audio_alsa09.c.old	2007-06-11 12:22:24.000000000 +0200
++++ esound-0.2.38/audio_alsa09.c	2007-06-11 12:22:49.000000000 +0200
+@@ -486,7 +486,7 @@ void esd_audio_flush(void)
+ 	}
+ 
+ 	if (alsa_playback_handle != NULL)
+-		snd_pcm_drain( alsa_playback_handle );
++		snd_pcm_drop( alsa_playback_handle );
+   
+ 	if (alsadbg) 
+ 		print_state();
diff --git a/abs/core-testing/ftgl/PKGBUILD b/abs/core-testing/ftgl/PKGBUILD
new file mode 100644
index 0000000..47c9eb4
--- /dev/null
+++ b/abs/core-testing/ftgl/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Alexander Baldeck <alexander@archlinux.org>
+# Contributor: tobias <tobias@archlinux.org>
+pkgname=ftgl
+pkgver=2.1.2
+pkgrel=4
+pkgdesc="OpenGL library to use arbitrary fonts"
+arch=(i686 x86_64)
+source=(http://superb-east.dl.sourceforge.net/sourceforge/ftgl/$pkgname-$pkgver.tar.gz ftgl-gcc411.patch)
+url="http://homepages.paradise.net.nz/henryj/code/"
+options=(!libtool)
+depends=(freetype2 glut)
+makedepends=(doxygen)
+
+build() {
+  cd $startdir/src/FTGL/
+  patch -Np1 -i ${startdir}/src/ftgl-gcc411.patch || return 1
+  cd unix
+  sed -i 's|^    \$|	$|g' src/Makefile
+  ./configure --prefix=/usr --with-pic
+  make || return 1
+  make prefix=$startdir/pkg/usr install
+
+}
+md5sums=('f81c0a7128192ba11e036186f9a968f2' '2a4ad16c1bfae869a8bf0ddababfd25a')
diff --git a/abs/core-testing/ftgl/ftgl-gcc411.patch b/abs/core-testing/ftgl/ftgl-gcc411.patch
new file mode 100644
index 0000000..f52d48b
--- /dev/null
+++ b/abs/core-testing/ftgl/ftgl-gcc411.patch
@@ -0,0 +1,12 @@
+diff -ruN FTGL.org/include/FTTextureGlyph.h FTGL/include/FTTextureGlyph.h
+--- FTGL.org/include/FTTextureGlyph.h	2006-07-11 17:49:42.000000000 +0200
++++ FTGL/include/FTTextureGlyph.h	2006-07-11 17:50:23.000000000 +0200
+@@ -52,7 +52,7 @@
+          * Reset the currently active texture to zero to get into a known state before
+          * drawing a string. This is to get round possible threading issues.
+          */
+-        static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
++        static void ResetActiveTexture(){ activeTextureID = 0;}
+         
+     private:
+         /**
diff --git a/abs/core-testing/gdk-pixbuf/PKGBUILD b/abs/core-testing/gdk-pixbuf/PKGBUILD
new file mode 100644
index 0000000..64b8b9a
--- /dev/null
+++ b/abs/core-testing/gdk-pixbuf/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 20860 2008-12-07 04:28:44Z eric $
+# Maintainer: dorphell <dorphell@archlinux.org>
+# Committer: Judd Vinet <jvinet@zeroflux.org>
+
+pkgname=gdk-pixbuf
+pkgver=0.22.0
+pkgrel=4
+pkgdesc="Image loading and manipulation library"
+depends=(gtk libtiff libpng)
+options=(!libtool)
+arch=(i686 x86_64)
+source=(ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.22/${pkgname}-${pkgver}.tar.bz2
+	gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
+	gdk-pixbuf-0.22.0-bmp_secure.patch
+	gdk-pixbuf-0.22.0-loaders.patch
+	gdk-pixbuf-0.22.0-m4.patch)
+md5sums=(05fcb68ceaa338614ab650c775efc2f2 d1fb93f1ae994875158a7e0c108c36f8
+         5f59d5772b1482d885a180dbc581cf84 3cf31ae0509747f72ac27a9fd96109c2
+         3edfa9fe9382fd8206d6238ec121a5af)
+
+build() {
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  export SED=/bin/sed
+  patch -Np1 -i ${startdir}/src/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch || return 1
+  patch -Np0 -i ${startdir}/src/gdk-pixbuf-0.22.0-bmp_secure.patch || return 1
+  patch -Np1 -i ${startdir}/src/gdk-pixbuf-0.22.0-loaders.patch || return 1
+  patch -Np1 -i ${startdir}/src/gdk-pixbuf-0.22.0-m4.patch || return 1
+  libtoolize --force --copy --automake
+  ./configure --prefix=/usr --disable-gtk-doc
+  make || return 1
+  make DESTDIR=${startdir}/pkg install
+  rm -rf ${startdir}/pkg/usr/share/gnome
+}
diff --git a/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
new file mode 100644
index 0000000..ffb4378
--- /dev/null
+++ b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
@@ -0,0 +1,48 @@
+--- gdk-pixbuf-0.22.0/gdk-pixbuf/io-bmp.c	2002-09-27 23:12:40.000000000 +0200
++++ gdk-pixbuf-0.22.0.patched/gdk-pixbuf/io-bmp.c	2005-03-30 01:33:06.000000000 +0200
+@@ -31,8 +31,6 @@
+ #include "gdk-pixbuf-private.h"
+ #include "gdk-pixbuf-io.h"
+ 
+-
+-
+ #if 0
+ /* If these structures were unpacked, they would define the two headers of the
+  * BMP file.  After them comes the palette, and then the image data.
+@@ -206,7 +204,7 @@
+ 
+ 	if (State == NULL)
+ 		return NULL;
+-
++ 	
+ 	while (feof(f) == 0) {
+ 		length = fread(membuf, 1, sizeof (membuf), f);
+ 		if (length > 0)
+@@ -245,11 +243,26 @@
+ static gboolean
+ grow_buffer (struct bmp_progressive_state *State)
+ {
+-  guchar *tmp = realloc (State->buff, State->BufferSize);
++  guchar *tmp;
++
++  if (State->BufferSize == 0) {
++#if 0
++    g_set_error (error,
++		 GDK_PIXBUF_ERROR,
++		 GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
++		 _("BMP image has bogus header data"));
++#endif
++    State->read_state = READ_STATE_ERROR;
++    return FALSE;
++  }
++
++  tmp = realloc (State->buff, State->BufferSize);
++
+   if (!tmp) {
+     State->read_state = READ_STATE_ERROR;
+     return FALSE;
+   }
++
+   State->buff = tmp;
+   return TRUE;
+ }
diff --git a/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch
new file mode 100644
index 0000000..29471f1
--- /dev/null
+++ b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch
@@ -0,0 +1,19 @@
+Index: io-bmp.c
+===================================================================
+RCS file: /cvs/gnome/gtk+/gdk-pixbuf/io-bmp.c,v
+retrieving revision 1.41
+diff -u -p -r1.41 io-bmp.c
+--- gdk-pixbuf/io-bmp.c	13 Aug 2004 02:26:57 -0000	1.41
++++ gdk-pixbuf/io-bmp.c	20 Aug 2004 00:18:14 -0000
+@@ -876,8 +876,10 @@ DoCompressed(struct bmp_progressive_stat
+ 	guchar c;
+ 	gint idx;
+ 
+-	if (context->compr.y >= context->Header.height)
++	if (context->compr.y >= context->Header.height) {
++		context->BufferDone = 0;
+ 		return TRUE;
++	}
+ 
+ 	y = context->compr.y;
+ 
diff --git a/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch
new file mode 100644
index 0000000..0686538
--- /dev/null
+++ b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch
@@ -0,0 +1,134 @@
+diff -NurdB gdk-pixbuf-0.22.0/gdk-pixbuf/io-ico.c gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-ico.c
+--- gdk-pixbuf-0.22.0/gdk-pixbuf/io-ico.c	2002-09-27 17:19:15.000000000 -0500
++++ gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-ico.c	2005-10-27 11:28:23.000000000 -0500
+@@ -330,6 +330,9 @@
+ 
+ 	State->HeaderSize+=I;
+ 
++ 	if (State->HeaderSize < 0)
++ 		return FALSE;
++ 
+  	if (State->HeaderSize>State->BytesInHeaderBuf) {
+ 		guchar *tmp=realloc(State->HeaderBuf,State->HeaderSize);
+ 		if (!tmp)
+diff -NurdB gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-xpm.c
+--- gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c	2001-03-01 15:16:28.000000000 -0500
++++ gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-xpm.c	2005-10-27 11:29:14.000000000 -0500
+@@ -243,8 +243,8 @@
+ 			break;
+ 		else {
+ 			if (numnames > 0) {
+-				space -= 1;
+-				strcat (color, " ");
++				strncat (color, " ", space);
++				space -= MIN (space, 1);
+ 			}
+ 
+ 			strncat (color, temp, space);
+@@ -281,7 +281,8 @@
+ 		/* Fall through to the xpm_read_string. */
+ 
+ 	case op_body:
+-		xpm_read_string (h->infile, &h->buffer, &h->buffer_size);
++		if(!xpm_read_string (h->infile, &h->buffer, &h->buffer_size))
++			return NULL;
+ 		return h->buffer;
+ 
+ 	default:
+@@ -317,13 +318,6 @@
+ 	return NULL;
+ }
+ 
+-/* Destroy notification function for the pixbuf */
+-static void
+-free_buffer (guchar *pixels, gpointer data)
+-{
+-	free (pixels);
+-}
+-
+ static gboolean
+ xpm_color_parse (const char *spec, XColor *color)
+ {
+@@ -342,7 +336,8 @@
+ 	gchar pixel_str[32];
+ 	GHashTable *color_hash;
+ 	_XPMColor *colors, *color, *fallbackcolor;
+-	guchar *pixels, *pixtmp;
++	guchar *pixtmp;
++	GdkPixbuf* pixbuf;
+ 
+ 	fallbackcolor = NULL;
+ 
+@@ -352,16 +347,33 @@
+ 		return NULL;
+ 	}
+ 	sscanf (buffer, "%d %d %d %d", &w, &h, &n_col, &cpp);
+-	if (cpp >= 32) {
+-		g_warning ("XPM has more than 31 chars per pixel.");
++	if (cpp <= 0 || cpp >= 32) {
++		g_warning ("XPM has invalid number of chars per pixel.");
+ 		return NULL;
+ 	}
++	if (n_col <= 0 ||
++	    n_col >= G_MAXINT / (cpp + 1) ||
++	    n_col >= G_MAXINT / sizeof (_XPMColor)) {
++		g_warning ("XPM file has invalid number of colors");
++  		return NULL;
++  	}
+ 
+ 	/* The hash is used for fast lookups of color from chars */
+ 	color_hash = g_hash_table_new (g_str_hash, g_str_equal);
+ 
+-	name_buf = g_new (gchar, n_col * (cpp + 1));
+-	colors = g_new (_XPMColor, n_col);
++ 	name_buf = g_new (gchar, n_col * (cpp + 1));
++ 	if (!name_buf) {
++		g_warning ("Cannot allocate memory for loading XPM image");
++ 		g_hash_table_destroy (color_hash);
++ 		return NULL;
++ 	}
++ 	colors = g_new (_XPMColor, n_col);
++ 	if (!colors) {
++		g_warning ("Cannot allocate memory for loading XPM image");
++ 		g_hash_table_destroy (color_hash);
++ 		g_free (name_buf);
++ 		return NULL;
++ 	}
+ 
+ 	for (cnt = 0; cnt < n_col; cnt++) {
+ 		gchar *color_name;
+@@ -397,12 +409,8 @@
+ 			fallbackcolor = color;
+ 	}
+ 
+-	if (is_trans)
+-		pixels = malloc (w * h * 4);
+-	else
+-		pixels = malloc (w * h * 3);
+-
+-	if (!pixels) {
++	pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, is_trans, 8, w, h);
++	if (!pixbuf) {
+ 		g_hash_table_destroy (color_hash);
+ 		g_free (colors);
+ 		g_free (name_buf);
+@@ -410,7 +418,7 @@
+ 	}
+ 
+ 	wbytes = w * cpp;
+-	pixtmp = pixels;
++	pixtmp = pixbuf->pixels;
+ 
+ 	for (ycnt = 0; ycnt < h; ycnt++) {
+ 		buffer = (*get_buf) (op_body, handle);
+@@ -443,9 +451,7 @@
+ 	g_free (colors);
+ 	g_free (name_buf);
+ 
+-	return gdk_pixbuf_new_from_data (pixels, GDK_COLORSPACE_RGB, is_trans, 8,
+-					 w, h, is_trans ? (w * 4) : (w * 3),
+-					 free_buffer, NULL);
++	return pixbuf;
+ }
+ 
+ /* Shared library entry point for file loading */
diff --git a/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch
new file mode 100644
index 0000000..032976d
--- /dev/null
+++ b/abs/core-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch
@@ -0,0 +1,9 @@
+Fix aclocal warning:
+/usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
+--- gdk-pixbuf-0.22.0/gdk-pixbuf.m4
++++ gdk-pixbuf-0.22.0/gdk-pixbuf.m4
+@@ -11,3 +11,3 @@
+ dnl
+-AC_DEFUN(AM_PATH_GDK_PIXBUF,
++AC_DEFUN([AM_PATH_GDK_PIXBUF],
+ [dnl 
diff --git a/abs/core-testing/glib/PKGBUILD b/abs/core-testing/glib/PKGBUILD
new file mode 100644
index 0000000..0f76a1e
--- /dev/null
+++ b/abs/core-testing/glib/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: dorphell <dorphell@archlinux.org>
+
+pkgname=glib
+pkgver=1.2.10
+pkgrel=7
+pkgdesc="Common C routines used by Gtk+ and other libs"
+arch=('i686' 'x86_64')
+url="http://www.gtk.org/"
+license=('LGPL')
+depends=('glibc')
+options=('!libtool')
+source=(ftp://ftp.gtk.org/pub/gtk/v1.2/$pkgname-$pkgver.tar.gz \
+	gcc340.patch \
+	aclocal-fixes.patch)
+md5sums=('6fe30dad87c77b91b632def29dd69ef9' '877b3330e822a4be69a0f8a8c268cfd7'\
+         'e52c4b88427b9785bb8049dbdc9ff6fb')
+sha1sums=('e5a9361c594608d152d5d9650154c2e3260b87fa'\
+          'a2cc224a66aeffdcac16ebd9e8af18143cf54918'\
+          'ae4438cf56c0c9264ee36f6973fb445f9a820be0')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  patch -Np1 -i ../gcc340.patch || return 1
+  patch -Np0 -i ../aclocal-fixes.patch || return 1
+
+  #Arch64 fixes --build/host
+  ./configure --prefix=/usr #--host=i686-pc-linux-gnu
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+}
diff --git a/abs/core-testing/glib/aclocal-fixes.patch b/abs/core-testing/glib/aclocal-fixes.patch
new file mode 100644
index 0000000..b064074
--- /dev/null
+++ b/abs/core-testing/glib/aclocal-fixes.patch
@@ -0,0 +1,11 @@
+--- glib.m4.orig	2006-03-05 13:13:24.000000000 +0000
++++ glib.m4	2006-03-05 13:13:35.000000000 +0000
+@@ -5,7 +5,7 @@
+ dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or 
+ dnl gthread is specified in MODULES, pass to glib-config
+ dnl
+-AC_DEFUN(AM_PATH_GLIB,
++AC_DEFUN([AM_PATH_GLIB],
+ [dnl 
+ dnl Get the cflags and libraries from the glib-config script
+ dnl
diff --git a/abs/core-testing/glib/gcc340.patch b/abs/core-testing/glib/gcc340.patch
new file mode 100644
index 0000000..941111a
--- /dev/null
+++ b/abs/core-testing/glib/gcc340.patch
@@ -0,0 +1,15 @@
+diff -Naur glib-1.2.10.orig/glib.h glib-1.2.10/glib.h
+--- glib-1.2.10.orig/glib.h	2001-02-27 04:44:38.000000000 +0100
++++ glib-1.2.10/glib.h	2004-05-27 15:50:32.436527848 +0200
+@@ -271,8 +271,10 @@
+ 
+ /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
+  * macros, so we can refer to them as strings unconditionally.
++ *
++ * Unfortunately these are _not_ treated as strings anymore in GCC3.4.
+  */
+-#ifdef	__GNUC__
++#if	defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
+ #define	G_GNUC_FUNCTION		__FUNCTION__
+ #define	G_GNUC_PRETTY_FUNCTION	__PRETTY_FUNCTION__
+ #else	/* !__GNUC__ */
diff --git a/abs/core-testing/gtk/PKGBUILD b/abs/core-testing/gtk/PKGBUILD
new file mode 100644
index 0000000..40e235c
--- /dev/null
+++ b/abs/core-testing/gtk/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+
+pkgname=gtk
+pkgver=1.2.10
+pkgrel=8
+pkgdesc="The GTK+ toolkit"
+arch=('i686' 'x86_64')
+url="http://www.gtk.org/"
+license=('LGPL')
+depends=('libxi' 'glib')
+options=('!libtool')
+source=(ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-$pkgver.tar.gz \
+	aclocal-fixes.patch)
+md5sums=('4d5cb2fc7fb7830e4af9747a36bfce20' 'c59d4906602d99a7468f7334b6fc3b4e')
+sha1sums=('a5adcb909257da01ae4d4761e1d41081d06e4d7c' 'b034e33efb85d27f3f3fb082c404e3b6ea79259f')
+
+build() {
+  cd $startdir/src/gtk+-$pkgver
+  if [ "$CARCH" == "x86_64" ]; then
+    rm config.guess config.sub
+    ln -s /usr/share/libtool/config.guess config.guess
+    ln -s /usr/share/libtool/config.sub config.sub
+  fi
+  patch -Np0 -i ${startdir}/src/aclocal-fixes.patch || return 1
+  ./configure --prefix=/usr --sysconfdir=/etc --with-xinput=xfree
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+  cd $startdir/pkg/usr/include
+  ln -s gtk-1.2/gtk gtk
+}
diff --git a/abs/core-testing/gtk/aclocal-fixes.patch b/abs/core-testing/gtk/aclocal-fixes.patch
new file mode 100644
index 0000000..dd2ffbd
--- /dev/null
+++ b/abs/core-testing/gtk/aclocal-fixes.patch
@@ -0,0 +1,11 @@
+--- gtk.m4.orig	2006-03-05 13:18:09.000000000 +0000
++++ gtk.m4	2006-03-05 13:18:20.000000000 +0000
+@@ -4,7 +4,7 @@
+ dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
+ dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
+ dnl
+-AC_DEFUN(AM_PATH_GTK,
++AC_DEFUN([AM_PATH_GTK],
+ [dnl 
+ dnl Get the cflags and libraries from the gtk-config script
+ dnl
diff --git a/abs/core-testing/libdv/PKGBUILD b/abs/core-testing/libdv/PKGBUILD
new file mode 100644
index 0000000..c535c2c
--- /dev/null
+++ b/abs/core-testing/libdv/PKGBUILD
@@ -0,0 +1,23 @@
+# $Id: PKGBUILD 4510 2008-07-07 21:13:34Z ronald $
+# Maintainer: Jason Chu <jason@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=libdv
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="The Quasar DV codec (libdv) is a software codec for DV video"
+arch=('i686' 'x86_64')
+depends=('popt')
+makedepends=('pkgconfig' 'gtk')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('f895162161cfa4bb4a94c070a7caa6c7')
+url="http://libdv.sourceforge.net/"
+license=('GPL')
+options=(!libtool)
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+}
diff --git a/abs/core-testing/libdv/libdv-0.104-amd64reloc.patch b/abs/core-testing/libdv/libdv-0.104-amd64reloc.patch
new file mode 100644
index 0000000..f3cbdbd
--- /dev/null
+++ b/abs/core-testing/libdv/libdv-0.104-amd64reloc.patch
@@ -0,0 +1,262 @@
+diff -aur libdv-0.104/libdv/encode_x86_64.S libdv-0.104-patched/libdv/encode_x86_64.S
+--- libdv-0.104/libdv/encode_x86_64.S	2004-11-17 03:36:30.000000000 +0000
++++ libdv-0.104-patched/libdv/encode_x86_64.S	2004-12-10 07:53:12.000000000 +0000
+@@ -47,7 +47,8 @@
+ 
+ 	mov	$63, %rcx                        # loop counter
+ 
+-	mov	vlc_encode_lookup(%rip), %r11
++	mov	vlc_encode_lookup@GOTPCREL(%rip), %r11
++	mov	(%r11),%r11
+ 
+ 	pxor	%mm0, %mm0
+ 	pxor	%mm2, %mm2
+@@ -129,7 +130,8 @@
+ 	add	$2, %rdi           /* skip the DC coefficient */
+ 	mov	$63, %rcx
+ 
+-	mov	vlc_num_bits_lookup(%rip), %r11
++	mov	vlc_num_bits_lookup@GOTPCREL(%rip), %r11
++	mov	(%r11),%r11
+ 	
+ vlc_num_bits_block_x86_loop:
+ 	movw	(%rdi), %ax        /* get the next coeffiecient */
+diff -aur libdv-0.104/libdv/idct_block_mmx_x86_64.S libdv-0.104-patched/libdv/idct_block_mmx_x86_64.S
+--- libdv-0.104/libdv/idct_block_mmx_x86_64.S	2004-10-20 04:49:24.000000000 +0100
++++ libdv-0.104-patched/libdv/idct_block_mmx_x86_64.S	2004-12-10 07:38:23.000000000 +0000
+@@ -22,7 +22,7 @@
+ /* void _dv_idct_88(dv_coeff_t *block) */
+ 	/* argument block=rdi */
+ 	
+-	lea	 preSC(%rip), %r11
++	mov	 preSC@GOTPCREL(%rip), %r11
+ 
+ /* 
+  *	column 0: even part
+diff -aur libdv-0.104/libdv/quant_x86_64.S libdv-0.104-patched/libdv/quant_x86_64.S
+--- libdv-0.104/libdv/quant_x86_64.S	2004-11-17 03:36:30.000000000 +0000
++++ libdv-0.104-patched/libdv/quant_x86_64.S	2004-12-10 07:36:42.000000000 +0000
+@@ -73,10 +73,10 @@
+ 	/*  pq = dv_quant_shifts[qno + dv_quant_offset[class]]; */
+ 	mov	%rsi,%rax	/* qno */
+ 	mov	%rdx,%r12	/* class */
+-	lea	dv_quant_offset(%rip),%rcx
++	mov	dv_quant_offset@GOTPCREL(%rip),%rcx
+ 	movzbq	(%rcx,%r12,1),%rcx   /* dv_quant_offset[class] */
+ 	add	%rcx,%rax                       /* qno + */
+-	lea	dv_quant_shifts(%rip),%r11
++	mov	dv_quant_shifts@GOTPCREL(%rip),%r11
+ 	lea	(%r11,%rax,4),%r11	/* r11 is pq = dv_quant_shifts[...] */
+ 
+ 	/* extra = (class == 3); */
+@@ -217,10 +217,10 @@
+ 	mov	%rsi,%rax	/* qno */
+ 	mov	%rdx,%r12	/* class */
+ 
+-	lea	dv_quant_offset(%rip),%rcx
++	mov	dv_quant_offset@GOTPCREL(%rip),%rcx
+ 	movzbq	(%rcx,%r12,1),%rcx
+ 	add	%rcx,%rax
+-	lea	dv_quant_shifts(%rip),%r11
++	mov	dv_quant_shifts@GOTPCREL(%rip),%r11
+ 	lea	(%r11,%rax,4),%r11	/* r11 is pq */
+ 
+ 	/* extra = (class == 3); */
+diff -aur libdv-0.104/libdv/vlc_x86_64.S libdv-0.104-patched/libdv/vlc_x86_64.S
+--- libdv-0.104/libdv/vlc_x86_64.S	2004-10-20 04:49:24.000000000 +0100
++++ libdv-0.104-patched/libdv/vlc_x86_64.S	2004-12-12 05:43:49.000000000 +0000
+@@ -16,28 +16,28 @@
+ 	/* klass = dv_vlc_classes[maxbits][(bits & (dv_vlc_class_index_mask[maxbits])) >> */
+ 	/*         (dv_vlc_class_index_rshift[maxbits])];  */
+ /*	xor  %rbp,%rbp */
+-	lea  dv_vlc_class_index_mask(%rip),%r11            /* use %rip for PIC code */
++	mov  dv_vlc_class_index_mask@GOTPCREL(%rip),%r11    /* use %rip for PIC code */
+  	mov  (%r11,%rbx,4),%ebp           /* int32 */      /* dv_vlc_class_index_mask[maxbits] */
+ 	and  %eax,%ebp                                     /* bits & */
+-	lea  dv_vlc_class_index_rshift(%rip),%rcx
++	mov  dv_vlc_class_index_rshift@GOTPCREL(%rip),%rcx
+ 	mov  (%rcx,%rbx,4),%ecx           /* int32 */      /* dv_vlc_class_index_rshift[maxbits] */
+ 	sar  %cl,%ebp                                      /* >> */
+-	lea  dv_vlc_classes(%rip),%rcx
++	mov  dv_vlc_classes@GOTPCREL(%rip),%rcx
+ 	mov  (%rcx,%rbx,8),%rcx           /* ptr */        /* dv_vlc_classes[maxbits], a pointer */
+ 	movsbq  (%rcx,%rbp,1),%rbp        /* int8 */       /* klass = */
+ 
+ 	/* *result = dv_vlc_lookups[klass][(bits & (dv_vlc_index_mask[klass])) >> */
+ 	/*           (dv_vlc_index_rshift[klass])];   */
+ /*	xor  %rbx,%rbx */
+-	lea  dv_vlc_index_mask(%rip),%r11
++	mov  dv_vlc_index_mask@GOTPCREL(%rip),%r11
+ 	mov  (%r11,%rbp,4),%ebx          /* int32 */       /* (dv_vlc_index_mask[klass]) */
+ /*	xor  %rcx,%rcx */
+-	lea  dv_vlc_index_rshift(%rip),%r11
++	mov  dv_vlc_index_rshift@GOTPCREL(%rip),%r11
+ 	mov  (%r11,%rbp,4),%ecx          /* int32 */       /* dv_vlc_index_rshift[klass] */
+ 	and  %eax,%ebx                                     /* bits &  */
+ 	sar  %cl,%ebx                                      /* >> */
+ 
+-	lea  dv_vlc_lookups(%rip),%r11
++	mov  dv_vlc_lookups@GOTPCREL(%rip),%r11
+ 	mov  (%r11,%rbp,8),%rbp          /* ptr */         /* dv_vlc_lookups[klass] */
+ 	mov  (%rbp,%rbx,4),%ebp          /* int32 */       /* *result = */
+ 
+@@ -57,7 +57,7 @@
+ 	mov  %ebp,%ecx
+ 	sar  $8,%ecx
+ 	and  $0xff,%ecx                /* result->len */
+-	lea  sign_mask(%rip),%rbx
++	mov  sign_mask@GOTPCREL(%rip),%rbx
+ 	mov  (%rbx,%rcx,4),%ebx        /* int32 */
+ 	and  %ebx,%eax
+ 	neg  %eax
+@@ -109,17 +109,17 @@
+ 	mov  %rax,%rbp
+ 	and  $0xfe00,%ebp
+ 	sar  $9,%ebp
+-	lea  dv_vlc_class_lookup5(%rip),%r11
++	mov  dv_vlc_class_lookup5@GOTPCREL(%rip),%r11
+ 	movsbq  (%r11,%rbp),%rbp        /* int8 klass */
+ 
+-	lea  dv_vlc_index_mask(%rip),%rbx
++	mov  dv_vlc_index_mask@GOTPCREL(%rip),%rbx
+ 	mov  (%rbx,%rbp,4),%ebx         /* int32 */
+-	lea  dv_vlc_index_rshift(%rip),%rcx
++	mov  dv_vlc_index_rshift@GOTPCREL(%rip),%rcx
+ 	mov  (%rcx,%rbp,4),%ecx         /* int32 */
+ 	and  %eax,%ebx
+ 	sar  %cl,%ebx			/* %rbx is klass */
+ 
+-	lea  dv_vlc_lookups(%rip),%r11
++	mov  dv_vlc_lookups@GOTPCREL(%rip),%r11
+ 	mov  (%r11,%rbp,8),%rbp         /* ptr */
+ 	mov  (%rbp,%rbx,4),%ebp         /* int32 */
+ 
+@@ -138,7 +138,7 @@
+ 	mov  %ebp,%ecx
+ 	sar  $8,%ecx
+ 	and  $0xff,%ecx
+-	lea  sign_mask(%rip),%r11
++	mov  sign_mask@GOTPCREL(%rip),%r11
+ 	mov  (%r11,%rcx,4),%ecx        /* int32 */
+ 	and  %ecx,%eax
+ 	neg  %eax
+@@ -253,7 +253,7 @@
+ 
+ 	/* Attempt to use the shortcut first.  If it hits, then
+ 	   this vlc term has been decoded. */
+-	lea	dv_vlc_class1_shortcut(%rip),%r10
++	mov	dv_vlc_class1_shortcut@GOTPCREL(%rip),%r10
+ 	mov	(%r10,%rcx,4),%r11d    /* record32 dv_vlc_tab_t */
+ 	test	$0x80,%r11d
+ 	
+@@ -267,17 +267,17 @@
+ 
+ 	/* %rax is bits */
+ 	
+-	lea  dv_vlc_class_lookup5(%rip),%r10
++	mov  dv_vlc_class_lookup5@GOTPCREL(%rip),%r10
+ 	movsbq  (%r10,%rcx,1),%rcx     /* int8 */
+ 
+ /*	xor  %r12,%r12 */
+-	lea  dv_vlc_index_mask(%rip),%r10
++	mov  dv_vlc_index_mask@GOTPCREL(%rip),%r10
+ 	mov  (%r10,%rcx,4),%r12d       /* int32 */
+ 	
+-	lea  dv_vlc_lookups(%rip),%r10
++	mov  dv_vlc_lookups@GOTPCREL(%rip),%r10
+ 	mov  (%r10,%rcx,8),%r11       /* ptr->record32 */
+ 	
+-	lea  dv_vlc_index_rshift(%rip),%r10
++	mov  dv_vlc_index_rshift@GOTPCREL(%rip),%r10
+ 	mov  (%r10,%rcx,4),%ecx        /* int32 */
+ 	
+ 	and  %eax,%r12d
+@@ -303,7 +303,7 @@
+ 	mov  %r11d,%ecx
+ 	sar  $8,%ecx
+ 	and  $0xff,%ecx
+-	lea  sign_mask(%rip),%r10
++	mov  sign_mask@GOTPCREL(%rip),%r10
+ 	mov  (%r10,%rcx,4),%ecx      /* int32 */
+ 	and  %ecx,%eax
+ 	neg  %eax
+@@ -388,7 +388,8 @@
+ 	mov	%r11,%rsi        /* bits */
+ 	mov	%rax,%rdi        /* bits_left */
+ 	lea	vlc(%rip),%rdx   /* *vlc */
+-	call	dv_decode_vlc
++	mov	dv_decode_vlc@GOTPCREL(%rip),%r11
++	call	*%r11
+ 	pop	%rdx
+ 	pop	%rsi
+ 	pop	%rdi
+@@ -473,7 +474,7 @@
+ 	movl	%r11d,dv_macroblock_t_eob_count(%r13) /* int32 */
+ 
+ 	/* mb->i = (seg->i + dv_super_map_vertical[m]) % (seg->isPAL?12:10); */
+-	lea	dv_super_map_vertical(%rip),%r11
++	mov	dv_super_map_vertical@GOTPCREL(%rip),%r11
+ 	movl	(%r11,%rax,4),%r11d                     /* int32 */
+ /*	xor	%rcx,%rcx */
+ 	movl	dv_videosegment_t_i(%r12),%ecx          /* int32 */
+@@ -493,7 +494,7 @@
+ 	movl	%r11d,dv_macroblock_t_i(%r13)         /* int32 */
+ 
+ 	/*  mb->j = dv_super_map_horizontal[m]; */		
+-	lea	dv_super_map_horizontal(%rip),%r11
++	mov	dv_super_map_horizontal@GOTPCREL(%rip),%r11
+ 	movl	(%r11,%rax,4),%r11d                   /* int32 */
+ 	movl	%r11d,dv_macroblock_t_j(%r13)         /* int32 */
+ 
+@@ -546,7 +547,8 @@
+ 
+ 	/* bl->reorder = &dv_reorder[bl->dct_mode][1]; */
+ 	shl	$6,%rax                          /* *64 */
+-	lea	(dv_reorder+1)(%rip),%rcx
++	mov	dv_reorder@GOTPCREL(%rip),%rcx
++	add	$1,%rcx
+ 	add	%rcx,%rax
+ 	mov	%rax,dv_block_t_reorder(%r15)    /* ptr */
+ 
+@@ -557,13 +559,13 @@
+ 	/* bl->offset= mb_start + dv_parse_bit_start[b]; */
+ /*	xor	%rcx,%rcx */
+ 	movl	mb_start(%rip),%ecx             /* int32 */
+-	lea	dv_parse_bit_start(%rip),%rax
++	mov	dv_parse_bit_start@GOTPCREL(%rip),%rax
+ 	mov	(%rax,%r12,4),%eax              /* int32 */
+ 	add	%rcx,%rax
+ 	movl	%eax,dv_block_t_offset(%r15)    /* int32 */
+ 
+ 	/* bl->end= mb_start + dv_parse_bit_end[b]; */
+-	lea	dv_parse_bit_end(%rip),%rax
++	mov	dv_parse_bit_end@GOTPCREL(%rip),%rax
+ 	mov	(%rax,%r12,4),%eax            /* int32 */
+ 	add	%ecx,%eax
+ 	mov	%eax,dv_block_t_end(%r15)     /* int32 */
+@@ -603,7 +605,8 @@
+ 	mov	dv_videosegment_t_bs(%rdi),%rdi   /* passed in rdi was seg, now passing seg->bs */
+ 	mov	%r13,%rsi                         /* mb */
+ 	mov	%r15,%rdx                         /* bl */
+-	call	dv_parse_ac_coeffs_pass0
++	mov     dv_parse_ac_coeffs_pass0@GOTPCREL(%rip),%r11
++	call	*%r11
+ 	pop	%rdi
+ 	pop	%rsi
+ 	pop	%rdx
+@@ -635,10 +638,12 @@
+ 	mov	%rsi,%rax	            /* quality */
+ 	and	$DV_QUALITY_AC_MASK,%rax
+ 	cmp	$DV_QUALITY_AC_2,%rax
++
++	jne	done
++	mov	dv_parse_ac_coeffs@GOTPCREL(%rip),%r11
++	jmp	*%r11
+ 	
+-	jz	dv_parse_ac_coeffs
+-	
+-	mov	$0,%rax
++done:	mov	$0,%rax
+ 	
+ 	ret
+ 
diff --git a/abs/core-testing/libmng/PKGBUILD b/abs/core-testing/libmng/PKGBUILD
new file mode 100644
index 0000000..d0fd215
--- /dev/null
+++ b/abs/core-testing/libmng/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+# Maintainer: judd <jvinet@zeroflux.org>
+pkgname=libmng
+pkgver=1.0.10
+pkgrel=1
+pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
+arch=('i686' 'x86_64')
+url="http://www.libmng.com/"
+license=('custom')
+depends=('zlib' 'libjpeg')
+options=(!libtool)
+source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('a464ae7d679781beebdf7440d144b7bd')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ln -s makefiles/configure.in .
+  ln -s makefiles/Makefile.am .
+  autoreconf --force --install
+  ./configure --prefix=/usr
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+  install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/abs/core-testing/libmpeg2/PKGBUILD b/abs/core-testing/libmpeg2/PKGBUILD
new file mode 100644
index 0000000..672e098
--- /dev/null
+++ b/abs/core-testing/libmpeg2/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 8677 2008-08-15 11:05:35Z andyrtr $
+# Contributor: Sarah Hay <sarah@archlinux.org>
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=libmpeg2
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams."
+arch=('i686' 'x86_64')
+url="http://libmpeg2.sourceforge.net/"
+depends=('glibc')
+optdepends=('sdl:	requiered for mpeg2dec'
+            'libsm:	requiered for mpeg2dec'
+            'libxv:	requiered for mpeg2dec')
+source=(http://libmpeg2.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz)
+license=('GPL2')
+options=(!libtool)
+provides=('mpeg2dec')
+md5sums=('0f92c7454e58379b4a5a378485bbd8ef')
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  ./configure --prefix=/usr --enable-shared --disable-static || return 1
+  make	OPT_CFLAGS="${CFLAGS}" \
+	MPEG2DEC_CFLAGS="${CFLAGS}" \
+	LIBMPEG2_CFLAGS="" || return 1
+  make DESTDIR=${pkgdir} install || return 1
+}
diff --git a/abs/core-testing/libvisual/PKGBUILD b/abs/core-testing/libvisual/PKGBUILD
new file mode 100644
index 0000000..eb01e19
--- /dev/null
+++ b/abs/core-testing/libvisual/PKGBUILD
@@ -0,0 +1,21 @@
+# $Id: PKGBUILD 8760 2008-08-16 05:23:46Z eric $
+# Maintainer: damir <damir@archlinux.org>
+
+pkgname=libvisual
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="abstraction library that comes between applications and audio visualisation plugins"
+arch=("i686" "x86_64")
+url="http://localhost.nl/~synap/libvisual/"
+depends=('glibc')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/sourceforge/libvisual/libvisual-$pkgver.tar.gz")
+md5sums=('f4e78547c79ea8a8ad111cf8b85011bb')
+
+build()
+{
+   cd $startdir/src/$pkgname-$pkgver
+   ./configure --prefix=/usr
+   make || return 1
+   make DESTDIR=$startdir/pkg install
+}
diff --git a/abs/core-testing/libxml-perl/PKGBUILD b/abs/core-testing/libxml-perl/PKGBUILD
new file mode 100644
index 0000000..5867a11
--- /dev/null
+++ b/abs/core-testing/libxml-perl/PKGBUILD
@@ -0,0 +1,23 @@
+# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=libxml-perl
+pkgver=0.08
+pkgrel=1
+pkgdesc="Perl library for working with XML"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/~KMACLEOD/libxml-perl"
+license=('GPL' 'PerlArtistic')
+depends=('perlxml>=2.19')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-$pkgver.tar.gz) 
+md5sums=('0ed5fbdda53d1301ddaed88db10503bb')
+
+build() {
+  cd  $startdir/src/libxml-perl-$pkgver
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
+  make || return 1
+  make install DESTDIR=$startdir/pkg || return 1
+  find $startdir/pkg -name '.packlist' -delete
+  find $startdir/pkg -name '*.pod' -delete
+}
diff --git a/abs/core-testing/perl-xml-dom/PKGBUILD b/abs/core-testing/perl-xml-dom/PKGBUILD
new file mode 100644
index 0000000..ab6e8a5
--- /dev/null
+++ b/abs/core-testing/perl-xml-dom/PKGBUILD
@@ -0,0 +1,23 @@
+# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-xml-dom
+pkgver=1.44
+pkgrel=5
+pkgdesc="Implements Level 1 of W3's DOM"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/~TJMATHER/XML-DOM"
+license=('GPL' 'PerlArtistic')
+depends=('perl>=5.10.0' 'perlxml>=2.30' 'perl-xml-regexp' 'libxml-perl>=0.07' 'perl-libwww')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-DOM-$pkgver.tar.gz) 
+md5sums=('1ec2032a06e5762984f7a332c199c205')
+
+build() {
+  cd  $startdir/src/XML-DOM-$pkgver
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
+  make || return 1
+  make install DESTDIR=$startdir/pkg || return 1
+  find $startdir/pkg -name '.packlist' -delete
+  find $startdir/pkg -name '*.pod' -delete
+}
diff --git a/abs/core-testing/perl_modules/perl-xml-regexp/PKGBUILD b/abs/core-testing/perl_modules/perl-xml-regexp/PKGBUILD
new file mode 100644
index 0000000..e785a85
--- /dev/null
+++ b/abs/core-testing/perl_modules/perl-xml-regexp/PKGBUILD
@@ -0,0 +1,23 @@
+# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-xml-regexp
+pkgver=0.03
+pkgrel=3
+pkgdesc="Regular expressions for XML tokens"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/~TJMATHER/XML-RegExp"
+license=('GPL' 'PerlArtistic')
+depends=('perl>=5.10.0')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-RegExp-$pkgver.tar.gz) 
+md5sums=('5826b24e0d05714e25c2bb04e1f1c09b')
+
+build() {
+  cd  $startdir/src/XML-RegExp-$pkgver
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
+  make || return 1
+  make install DESTDIR=$startdir/pkg || return 1
+  find $startdir/pkg -name '.packlist' -delete
+  find $startdir/pkg -name '*.pod' -delete
+}
diff --git a/abs/core-testing/projectm/PKGBUILD b/abs/core-testing/projectm/PKGBUILD
new file mode 100644
index 0000000..4baced2
--- /dev/null
+++ b/abs/core-testing/projectm/PKGBUILD
@@ -0,0 +1,21 @@
+# $Id: PKGBUILD 8766 2008-08-16 05:30:47Z eric $
+# Maintainer: Alexander Baldeck <alexander@archlinux.org>
+pkgname=projectm
+pkgver=0.99
+pkgrel=2
+pkgdesc="A music visualizer which uses 3D accelerated iterative image based rendering"
+arch=(i686 x86_64)
+url="http://xmms-projectm.sourceforge.net"
+license="GPL"
+depends=('ftgl' 'glut')
+makedepends=('pkgconfig' 'xproto')
+install=projectm.install
+source=(http://downloads.sourceforge.net/sourceforge/projectm/libprojectM-$pkgver.tar.bz2)
+md5sums=('20dc0aa2af96340c3209c9795cc3217d')
+
+build() {
+  cd $startdir/src/libprojectM
+  ./configure --prefix=/usr
+  make || return
+  make DESTDIR=$startdir/pkg install
+}
diff --git a/abs/core-testing/projectm/projectm.install b/abs/core-testing/projectm/projectm.install
new file mode 100644
index 0000000..a1e44dc
--- /dev/null
+++ b/abs/core-testing/projectm/projectm.install
@@ -0,0 +1,13 @@
+post_install() {
+  echo ">> projectm has been split so that you additionally need to install:"
+  echo ">> xmms-projectm for xmms"
+  echo ">> libvisual-project for libvisual (like for amarok)"
+}
+
+post_upgrade() {
+  post_install
+}
+
+op=$1
+shift
+$op $*
diff --git a/abs/core-testing/xosd/PKGBUILD b/abs/core-testing/xosd/PKGBUILD
new file mode 100644
index 0000000..e4a87ba
--- /dev/null
+++ b/abs/core-testing/xosd/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: damir <damir@archlinux.org>
+# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
+
+pkgname=xosd
+pkgver=2.2.14
+pkgrel=1
+pkgdesc="XOSD displays text on your screen. On-Screen-Display-libs for some tools."
+arch=("i686" "x86_64")
+license=('GPL2')
+url="http://www.ignavus.net/software.html"
+depends=('libxt' 'libxinerama' 'gdk-pixbuf')
+makedepends=('xmms' 'bmp')
+options=(!libtool)
+#source=("http://www.ignavus.net/xosd-$pkgver.tar.bz2")
+source=("http://ftp.de.debian.org/debian/pool/main/x/xosd/xosd_$pkgver.orig.tar.gz")
+
+build() {
+  cd $startdir/src/xosd-$pkgver
+  ./configure --prefix=/usr
+  make || return 1
+  make DESTDIR=$startdir/pkg/ install
+}
+
+
+md5sums=('4b349fe930e4eee2f504d6c02673e24d')
diff --git a/abs/extra-testing/community/perl-xml-dom/PKGBUILD b/abs/extra-testing/community/perl-xml-dom/PKGBUILD
deleted file mode 100644
index ab6e8a5..0000000
--- a/abs/extra-testing/community/perl-xml-dom/PKGBUILD
+++ /dev/null
@@ -1,23 +0,0 @@
-# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
-# Contributor: François Charette <firmicus ατ gmx δοτ net>
-
-pkgname=perl-xml-dom
-pkgver=1.44
-pkgrel=5
-pkgdesc="Implements Level 1 of W3's DOM"
-arch=('i686' 'x86_64')
-url="http://search.cpan.org/~TJMATHER/XML-DOM"
-license=('GPL' 'PerlArtistic')
-depends=('perl>=5.10.0' 'perlxml>=2.30' 'perl-xml-regexp' 'libxml-perl>=0.07' 'perl-libwww')
-options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-DOM-$pkgver.tar.gz) 
-md5sums=('1ec2032a06e5762984f7a332c199c205')
-
-build() {
-  cd  $startdir/src/XML-DOM-$pkgver
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
-  make || return 1
-  make install DESTDIR=$startdir/pkg || return 1
-  find $startdir/pkg -name '.packlist' -delete
-  find $startdir/pkg -name '*.pod' -delete
-}
diff --git a/abs/extra-testing/esound/PKGBUILD b/abs/extra-testing/esound/PKGBUILD
deleted file mode 100644
index b157aab..0000000
--- a/abs/extra-testing/esound/PKGBUILD
+++ /dev/null
@@ -1,34 +0,0 @@
-# $Id: PKGBUILD 19662 2008-11-28 20:35:54Z jgc $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-pkgname=esound
-pkgver=0.2.41
-pkgrel=1
-pkgdesc="Enlightened Sound Daemon"
-arch=(i686 x86_64)
-license=('LGPL')
-depends=('audiofile' 'tcp_wrappers' 'alsa-lib>=1.0.18')
-url="http://www.tux.org/~ricdude/EsounD.html"
-provides=("esd=${pkgver}")
-replaces=('esd')
-conflicts=('esd')
-backup=('etc/esd.conf')
-options=('!libtool')
-source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/0.2/${pkgname}-${pkgver}.tar.bz2
-	esd-0.2.38-alsa-drain.patch
-	esd)
-md5sums=('8d9aad3d94d15e0d59ba9dc0ea990c6c'
-         '3de93efcd1bc196a3585e6aef50eac48'
-         'a4c76e7c7f75b201ea7ab6fb15b47472')
-
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i "${srcdir}/esd-0.2.38-alsa-drain.patch" || return 1
-  ./configure --prefix=/usr --sysconfdir=/etc \
-              --localstatedir=/var --disable-static \
-              --with-audiofile --with-libwrap \
-	      --enable-alsa --disable-artstest || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
-  install -m755 -d "${pkgdir}/etc/rc.d"
-  install -m755 "${srcdir}/esd" "${pkgdir}/etc/rc.d/esd" || return 1
-}
diff --git a/abs/extra-testing/esound/esd b/abs/extra-testing/esound/esd
deleted file mode 100755
index d90ef55..0000000
--- a/abs/extra-testing/esound/esd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/bin/esd`
-case "$1" in
-  start)
-    stat_busy "Starting Esound Daemon"
-    if [ -z "$PID" ]; then 
-       /usr/bin/esd -nobeeps &
-    fi
-    if [ ! -z "$PID" -o $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon esd
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping Esound Daemon"
-    [ ! -z "$PID" ]  && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon esd
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
diff --git a/abs/extra-testing/esound/esd-0.2.38-alsa-drain.patch b/abs/extra-testing/esound/esd-0.2.38-alsa-drain.patch
deleted file mode 100644
index f2fb716..0000000
--- a/abs/extra-testing/esound/esd-0.2.38-alsa-drain.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- esound-0.2.38/audio_alsa09.c.old	2007-06-11 12:22:24.000000000 +0200
-+++ esound-0.2.38/audio_alsa09.c	2007-06-11 12:22:49.000000000 +0200
-@@ -486,7 +486,7 @@ void esd_audio_flush(void)
- 	}
- 
- 	if (alsa_playback_handle != NULL)
--		snd_pcm_drain( alsa_playback_handle );
-+		snd_pcm_drop( alsa_playback_handle );
-   
- 	if (alsadbg) 
- 		print_state();
diff --git a/abs/extra-testing/ftgl/PKGBUILD b/abs/extra-testing/ftgl/PKGBUILD
deleted file mode 100644
index 47c9eb4..0000000
--- a/abs/extra-testing/ftgl/PKGBUILD
+++ /dev/null
@@ -1,25 +0,0 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: Alexander Baldeck <alexander@archlinux.org>
-# Contributor: tobias <tobias@archlinux.org>
-pkgname=ftgl
-pkgver=2.1.2
-pkgrel=4
-pkgdesc="OpenGL library to use arbitrary fonts"
-arch=(i686 x86_64)
-source=(http://superb-east.dl.sourceforge.net/sourceforge/ftgl/$pkgname-$pkgver.tar.gz ftgl-gcc411.patch)
-url="http://homepages.paradise.net.nz/henryj/code/"
-options=(!libtool)
-depends=(freetype2 glut)
-makedepends=(doxygen)
-
-build() {
-  cd $startdir/src/FTGL/
-  patch -Np1 -i ${startdir}/src/ftgl-gcc411.patch || return 1
-  cd unix
-  sed -i 's|^    \$|	$|g' src/Makefile
-  ./configure --prefix=/usr --with-pic
-  make || return 1
-  make prefix=$startdir/pkg/usr install
-
-}
-md5sums=('f81c0a7128192ba11e036186f9a968f2' '2a4ad16c1bfae869a8bf0ddababfd25a')
diff --git a/abs/extra-testing/ftgl/ftgl-gcc411.patch b/abs/extra-testing/ftgl/ftgl-gcc411.patch
deleted file mode 100644
index f52d48b..0000000
--- a/abs/extra-testing/ftgl/ftgl-gcc411.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ruN FTGL.org/include/FTTextureGlyph.h FTGL/include/FTTextureGlyph.h
---- FTGL.org/include/FTTextureGlyph.h	2006-07-11 17:49:42.000000000 +0200
-+++ FTGL/include/FTTextureGlyph.h	2006-07-11 17:50:23.000000000 +0200
-@@ -52,7 +52,7 @@
-          * Reset the currently active texture to zero to get into a known state before
-          * drawing a string. This is to get round possible threading issues.
-          */
--        static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
-+        static void ResetActiveTexture(){ activeTextureID = 0;}
-         
-     private:
-         /**
diff --git a/abs/extra-testing/gdk-pixbuf/PKGBUILD b/abs/extra-testing/gdk-pixbuf/PKGBUILD
deleted file mode 100644
index 64b8b9a..0000000
--- a/abs/extra-testing/gdk-pixbuf/PKGBUILD
+++ /dev/null
@@ -1,33 +0,0 @@
-# $Id: PKGBUILD 20860 2008-12-07 04:28:44Z eric $
-# Maintainer: dorphell <dorphell@archlinux.org>
-# Committer: Judd Vinet <jvinet@zeroflux.org>
-
-pkgname=gdk-pixbuf
-pkgver=0.22.0
-pkgrel=4
-pkgdesc="Image loading and manipulation library"
-depends=(gtk libtiff libpng)
-options=(!libtool)
-arch=(i686 x86_64)
-source=(ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.22/${pkgname}-${pkgver}.tar.bz2
-	gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
-	gdk-pixbuf-0.22.0-bmp_secure.patch
-	gdk-pixbuf-0.22.0-loaders.patch
-	gdk-pixbuf-0.22.0-m4.patch)
-md5sums=(05fcb68ceaa338614ab650c775efc2f2 d1fb93f1ae994875158a7e0c108c36f8
-         5f59d5772b1482d885a180dbc581cf84 3cf31ae0509747f72ac27a9fd96109c2
-         3edfa9fe9382fd8206d6238ec121a5af)
-
-build() {
-  cd ${startdir}/src/${pkgname}-${pkgver}
-  export SED=/bin/sed
-  patch -Np1 -i ${startdir}/src/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch || return 1
-  patch -Np0 -i ${startdir}/src/gdk-pixbuf-0.22.0-bmp_secure.patch || return 1
-  patch -Np1 -i ${startdir}/src/gdk-pixbuf-0.22.0-loaders.patch || return 1
-  patch -Np1 -i ${startdir}/src/gdk-pixbuf-0.22.0-m4.patch || return 1
-  libtoolize --force --copy --automake
-  ./configure --prefix=/usr --disable-gtk-doc
-  make || return 1
-  make DESTDIR=${startdir}/pkg install
-  rm -rf ${startdir}/pkg/usr/share/gnome
-}
diff --git a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch b/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
deleted file mode 100644
index ffb4378..0000000
--- a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- gdk-pixbuf-0.22.0/gdk-pixbuf/io-bmp.c	2002-09-27 23:12:40.000000000 +0200
-+++ gdk-pixbuf-0.22.0.patched/gdk-pixbuf/io-bmp.c	2005-03-30 01:33:06.000000000 +0200
-@@ -31,8 +31,6 @@
- #include "gdk-pixbuf-private.h"
- #include "gdk-pixbuf-io.h"
- 
--
--
- #if 0
- /* If these structures were unpacked, they would define the two headers of the
-  * BMP file.  After them comes the palette, and then the image data.
-@@ -206,7 +204,7 @@
- 
- 	if (State == NULL)
- 		return NULL;
--
-+ 	
- 	while (feof(f) == 0) {
- 		length = fread(membuf, 1, sizeof (membuf), f);
- 		if (length > 0)
-@@ -245,11 +243,26 @@
- static gboolean
- grow_buffer (struct bmp_progressive_state *State)
- {
--  guchar *tmp = realloc (State->buff, State->BufferSize);
-+  guchar *tmp;
-+
-+  if (State->BufferSize == 0) {
-+#if 0
-+    g_set_error (error,
-+		 GDK_PIXBUF_ERROR,
-+		 GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
-+		 _("BMP image has bogus header data"));
-+#endif
-+    State->read_state = READ_STATE_ERROR;
-+    return FALSE;
-+  }
-+
-+  tmp = realloc (State->buff, State->BufferSize);
-+
-   if (!tmp) {
-     State->read_state = READ_STATE_ERROR;
-     return FALSE;
-   }
-+
-   State->buff = tmp;
-   return TRUE;
- }
diff --git a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch b/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch
deleted file mode 100644
index 29471f1..0000000
--- a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-bmp_secure.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Index: io-bmp.c
-===================================================================
-RCS file: /cvs/gnome/gtk+/gdk-pixbuf/io-bmp.c,v
-retrieving revision 1.41
-diff -u -p -r1.41 io-bmp.c
---- gdk-pixbuf/io-bmp.c	13 Aug 2004 02:26:57 -0000	1.41
-+++ gdk-pixbuf/io-bmp.c	20 Aug 2004 00:18:14 -0000
-@@ -876,8 +876,10 @@ DoCompressed(struct bmp_progressive_stat
- 	guchar c;
- 	gint idx;
- 
--	if (context->compr.y >= context->Header.height)
-+	if (context->compr.y >= context->Header.height) {
-+		context->BufferDone = 0;
- 		return TRUE;
-+	}
- 
- 	y = context->compr.y;
- 
diff --git a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch b/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch
deleted file mode 100644
index 0686538..0000000
--- a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-loaders.patch
+++ /dev/null
@@ -1,134 +0,0 @@
-diff -NurdB gdk-pixbuf-0.22.0/gdk-pixbuf/io-ico.c gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-ico.c
---- gdk-pixbuf-0.22.0/gdk-pixbuf/io-ico.c	2002-09-27 17:19:15.000000000 -0500
-+++ gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-ico.c	2005-10-27 11:28:23.000000000 -0500
-@@ -330,6 +330,9 @@
- 
- 	State->HeaderSize+=I;
- 
-+ 	if (State->HeaderSize < 0)
-+ 		return FALSE;
-+ 
-  	if (State->HeaderSize>State->BytesInHeaderBuf) {
- 		guchar *tmp=realloc(State->HeaderBuf,State->HeaderSize);
- 		if (!tmp)
-diff -NurdB gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-xpm.c
---- gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c	2001-03-01 15:16:28.000000000 -0500
-+++ gdk-pixbuf-0.22.0-patched/gdk-pixbuf/io-xpm.c	2005-10-27 11:29:14.000000000 -0500
-@@ -243,8 +243,8 @@
- 			break;
- 		else {
- 			if (numnames > 0) {
--				space -= 1;
--				strcat (color, " ");
-+				strncat (color, " ", space);
-+				space -= MIN (space, 1);
- 			}
- 
- 			strncat (color, temp, space);
-@@ -281,7 +281,8 @@
- 		/* Fall through to the xpm_read_string. */
- 
- 	case op_body:
--		xpm_read_string (h->infile, &h->buffer, &h->buffer_size);
-+		if(!xpm_read_string (h->infile, &h->buffer, &h->buffer_size))
-+			return NULL;
- 		return h->buffer;
- 
- 	default:
-@@ -317,13 +318,6 @@
- 	return NULL;
- }
- 
--/* Destroy notification function for the pixbuf */
--static void
--free_buffer (guchar *pixels, gpointer data)
--{
--	free (pixels);
--}
--
- static gboolean
- xpm_color_parse (const char *spec, XColor *color)
- {
-@@ -342,7 +336,8 @@
- 	gchar pixel_str[32];
- 	GHashTable *color_hash;
- 	_XPMColor *colors, *color, *fallbackcolor;
--	guchar *pixels, *pixtmp;
-+	guchar *pixtmp;
-+	GdkPixbuf* pixbuf;
- 
- 	fallbackcolor = NULL;
- 
-@@ -352,16 +347,33 @@
- 		return NULL;
- 	}
- 	sscanf (buffer, "%d %d %d %d", &w, &h, &n_col, &cpp);
--	if (cpp >= 32) {
--		g_warning ("XPM has more than 31 chars per pixel.");
-+	if (cpp <= 0 || cpp >= 32) {
-+		g_warning ("XPM has invalid number of chars per pixel.");
- 		return NULL;
- 	}
-+	if (n_col <= 0 ||
-+	    n_col >= G_MAXINT / (cpp + 1) ||
-+	    n_col >= G_MAXINT / sizeof (_XPMColor)) {
-+		g_warning ("XPM file has invalid number of colors");
-+  		return NULL;
-+  	}
- 
- 	/* The hash is used for fast lookups of color from chars */
- 	color_hash = g_hash_table_new (g_str_hash, g_str_equal);
- 
--	name_buf = g_new (gchar, n_col * (cpp + 1));
--	colors = g_new (_XPMColor, n_col);
-+ 	name_buf = g_new (gchar, n_col * (cpp + 1));
-+ 	if (!name_buf) {
-+		g_warning ("Cannot allocate memory for loading XPM image");
-+ 		g_hash_table_destroy (color_hash);
-+ 		return NULL;
-+ 	}
-+ 	colors = g_new (_XPMColor, n_col);
-+ 	if (!colors) {
-+		g_warning ("Cannot allocate memory for loading XPM image");
-+ 		g_hash_table_destroy (color_hash);
-+ 		g_free (name_buf);
-+ 		return NULL;
-+ 	}
- 
- 	for (cnt = 0; cnt < n_col; cnt++) {
- 		gchar *color_name;
-@@ -397,12 +409,8 @@
- 			fallbackcolor = color;
- 	}
- 
--	if (is_trans)
--		pixels = malloc (w * h * 4);
--	else
--		pixels = malloc (w * h * 3);
--
--	if (!pixels) {
-+	pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, is_trans, 8, w, h);
-+	if (!pixbuf) {
- 		g_hash_table_destroy (color_hash);
- 		g_free (colors);
- 		g_free (name_buf);
-@@ -410,7 +418,7 @@
- 	}
- 
- 	wbytes = w * cpp;
--	pixtmp = pixels;
-+	pixtmp = pixbuf->pixels;
- 
- 	for (ycnt = 0; ycnt < h; ycnt++) {
- 		buffer = (*get_buf) (op_body, handle);
-@@ -443,9 +451,7 @@
- 	g_free (colors);
- 	g_free (name_buf);
- 
--	return gdk_pixbuf_new_from_data (pixels, GDK_COLORSPACE_RGB, is_trans, 8,
--					 w, h, is_trans ? (w * 4) : (w * 3),
--					 free_buffer, NULL);
-+	return pixbuf;
- }
- 
- /* Shared library entry point for file loading */
diff --git a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch b/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch
deleted file mode 100644
index 032976d..0000000
--- a/abs/extra-testing/gdk-pixbuf/gdk-pixbuf-0.22.0-m4.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-Fix aclocal warning:
-/usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
---- gdk-pixbuf-0.22.0/gdk-pixbuf.m4
-+++ gdk-pixbuf-0.22.0/gdk-pixbuf.m4
-@@ -11,3 +11,3 @@
- dnl
--AC_DEFUN(AM_PATH_GDK_PIXBUF,
-+AC_DEFUN([AM_PATH_GDK_PIXBUF],
- [dnl 
diff --git a/abs/extra-testing/glib/PKGBUILD b/abs/extra-testing/glib/PKGBUILD
deleted file mode 100644
index 0f76a1e..0000000
--- a/abs/extra-testing/glib/PKGBUILD
+++ /dev/null
@@ -1,32 +0,0 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: Eric Belanger <eric@archlinux.org>
-# Contributor: dorphell <dorphell@archlinux.org>
-
-pkgname=glib
-pkgver=1.2.10
-pkgrel=7
-pkgdesc="Common C routines used by Gtk+ and other libs"
-arch=('i686' 'x86_64')
-url="http://www.gtk.org/"
-license=('LGPL')
-depends=('glibc')
-options=('!libtool')
-source=(ftp://ftp.gtk.org/pub/gtk/v1.2/$pkgname-$pkgver.tar.gz \
-	gcc340.patch \
-	aclocal-fixes.patch)
-md5sums=('6fe30dad87c77b91b632def29dd69ef9' '877b3330e822a4be69a0f8a8c268cfd7'\
-         'e52c4b88427b9785bb8049dbdc9ff6fb')
-sha1sums=('e5a9361c594608d152d5d9650154c2e3260b87fa'\
-          'a2cc224a66aeffdcac16ebd9e8af18143cf54918'\
-          'ae4438cf56c0c9264ee36f6973fb445f9a820be0')
-
-build() {
-  cd $startdir/src/$pkgname-$pkgver
-  patch -Np1 -i ../gcc340.patch || return 1
-  patch -Np0 -i ../aclocal-fixes.patch || return 1
-
-  #Arch64 fixes --build/host
-  ./configure --prefix=/usr #--host=i686-pc-linux-gnu
-  make || return 1
-  make DESTDIR=$startdir/pkg install
-}
diff --git a/abs/extra-testing/glib/aclocal-fixes.patch b/abs/extra-testing/glib/aclocal-fixes.patch
deleted file mode 100644
index b064074..0000000
--- a/abs/extra-testing/glib/aclocal-fixes.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- glib.m4.orig	2006-03-05 13:13:24.000000000 +0000
-+++ glib.m4	2006-03-05 13:13:35.000000000 +0000
-@@ -5,7 +5,7 @@
- dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or 
- dnl gthread is specified in MODULES, pass to glib-config
- dnl
--AC_DEFUN(AM_PATH_GLIB,
-+AC_DEFUN([AM_PATH_GLIB],
- [dnl 
- dnl Get the cflags and libraries from the glib-config script
- dnl
diff --git a/abs/extra-testing/glib/gcc340.patch b/abs/extra-testing/glib/gcc340.patch
deleted file mode 100644
index 941111a..0000000
--- a/abs/extra-testing/glib/gcc340.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -Naur glib-1.2.10.orig/glib.h glib-1.2.10/glib.h
---- glib-1.2.10.orig/glib.h	2001-02-27 04:44:38.000000000 +0100
-+++ glib-1.2.10/glib.h	2004-05-27 15:50:32.436527848 +0200
-@@ -271,8 +271,10 @@
- 
- /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
-  * macros, so we can refer to them as strings unconditionally.
-+ *
-+ * Unfortunately these are _not_ treated as strings anymore in GCC3.4.
-  */
--#ifdef	__GNUC__
-+#if	defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
- #define	G_GNUC_FUNCTION		__FUNCTION__
- #define	G_GNUC_PRETTY_FUNCTION	__PRETTY_FUNCTION__
- #else	/* !__GNUC__ */
diff --git a/abs/extra-testing/gtk/PKGBUILD b/abs/extra-testing/gtk/PKGBUILD
deleted file mode 100644
index 40e235c..0000000
--- a/abs/extra-testing/gtk/PKGBUILD
+++ /dev/null
@@ -1,32 +0,0 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: Eric Belanger <eric@archlinux.org>
-# Contributor: Judd Vinet <jvinet@zeroflux.org>
-
-pkgname=gtk
-pkgver=1.2.10
-pkgrel=8
-pkgdesc="The GTK+ toolkit"
-arch=('i686' 'x86_64')
-url="http://www.gtk.org/"
-license=('LGPL')
-depends=('libxi' 'glib')
-options=('!libtool')
-source=(ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-$pkgver.tar.gz \
-	aclocal-fixes.patch)
-md5sums=('4d5cb2fc7fb7830e4af9747a36bfce20' 'c59d4906602d99a7468f7334b6fc3b4e')
-sha1sums=('a5adcb909257da01ae4d4761e1d41081d06e4d7c' 'b034e33efb85d27f3f3fb082c404e3b6ea79259f')
-
-build() {
-  cd $startdir/src/gtk+-$pkgver
-  if [ "$CARCH" == "x86_64" ]; then
-    rm config.guess config.sub
-    ln -s /usr/share/libtool/config.guess config.guess
-    ln -s /usr/share/libtool/config.sub config.sub
-  fi
-  patch -Np0 -i ${startdir}/src/aclocal-fixes.patch || return 1
-  ./configure --prefix=/usr --sysconfdir=/etc --with-xinput=xfree
-  make || return 1
-  make DESTDIR=$startdir/pkg install
-  cd $startdir/pkg/usr/include
-  ln -s gtk-1.2/gtk gtk
-}
diff --git a/abs/extra-testing/gtk/aclocal-fixes.patch b/abs/extra-testing/gtk/aclocal-fixes.patch
deleted file mode 100644
index dd2ffbd..0000000
--- a/abs/extra-testing/gtk/aclocal-fixes.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- gtk.m4.orig	2006-03-05 13:18:09.000000000 +0000
-+++ gtk.m4	2006-03-05 13:18:20.000000000 +0000
-@@ -4,7 +4,7 @@
- dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
- dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
- dnl
--AC_DEFUN(AM_PATH_GTK,
-+AC_DEFUN([AM_PATH_GTK],
- [dnl 
- dnl Get the cflags and libraries from the gtk-config script
- dnl
diff --git a/abs/extra-testing/libdv/PKGBUILD b/abs/extra-testing/libdv/PKGBUILD
deleted file mode 100644
index c535c2c..0000000
--- a/abs/extra-testing/libdv/PKGBUILD
+++ /dev/null
@@ -1,23 +0,0 @@
-# $Id: PKGBUILD 4510 2008-07-07 21:13:34Z ronald $
-# Maintainer: Jason Chu <jason@archlinux.org>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-
-pkgname=libdv
-pkgver=1.0.0
-pkgrel=1
-pkgdesc="The Quasar DV codec (libdv) is a software codec for DV video"
-arch=('i686' 'x86_64')
-depends=('popt')
-makedepends=('pkgconfig' 'gtk')
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('f895162161cfa4bb4a94c070a7caa6c7')
-url="http://libdv.sourceforge.net/"
-license=('GPL')
-options=(!libtool)
-
-build() {
-  cd $startdir/src/$pkgname-$pkgver
-  ./configure --prefix=/usr
-  make || return 1
-  make DESTDIR=$startdir/pkg install
-}
diff --git a/abs/extra-testing/libdv/libdv-0.104-amd64reloc.patch b/abs/extra-testing/libdv/libdv-0.104-amd64reloc.patch
deleted file mode 100644
index f3cbdbd..0000000
--- a/abs/extra-testing/libdv/libdv-0.104-amd64reloc.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-diff -aur libdv-0.104/libdv/encode_x86_64.S libdv-0.104-patched/libdv/encode_x86_64.S
---- libdv-0.104/libdv/encode_x86_64.S	2004-11-17 03:36:30.000000000 +0000
-+++ libdv-0.104-patched/libdv/encode_x86_64.S	2004-12-10 07:53:12.000000000 +0000
-@@ -47,7 +47,8 @@
- 
- 	mov	$63, %rcx                        # loop counter
- 
--	mov	vlc_encode_lookup(%rip), %r11
-+	mov	vlc_encode_lookup@GOTPCREL(%rip), %r11
-+	mov	(%r11),%r11
- 
- 	pxor	%mm0, %mm0
- 	pxor	%mm2, %mm2
-@@ -129,7 +130,8 @@
- 	add	$2, %rdi           /* skip the DC coefficient */
- 	mov	$63, %rcx
- 
--	mov	vlc_num_bits_lookup(%rip), %r11
-+	mov	vlc_num_bits_lookup@GOTPCREL(%rip), %r11
-+	mov	(%r11),%r11
- 	
- vlc_num_bits_block_x86_loop:
- 	movw	(%rdi), %ax        /* get the next coeffiecient */
-diff -aur libdv-0.104/libdv/idct_block_mmx_x86_64.S libdv-0.104-patched/libdv/idct_block_mmx_x86_64.S
---- libdv-0.104/libdv/idct_block_mmx_x86_64.S	2004-10-20 04:49:24.000000000 +0100
-+++ libdv-0.104-patched/libdv/idct_block_mmx_x86_64.S	2004-12-10 07:38:23.000000000 +0000
-@@ -22,7 +22,7 @@
- /* void _dv_idct_88(dv_coeff_t *block) */
- 	/* argument block=rdi */
- 	
--	lea	 preSC(%rip), %r11
-+	mov	 preSC@GOTPCREL(%rip), %r11
- 
- /* 
-  *	column 0: even part
-diff -aur libdv-0.104/libdv/quant_x86_64.S libdv-0.104-patched/libdv/quant_x86_64.S
---- libdv-0.104/libdv/quant_x86_64.S	2004-11-17 03:36:30.000000000 +0000
-+++ libdv-0.104-patched/libdv/quant_x86_64.S	2004-12-10 07:36:42.000000000 +0000
-@@ -73,10 +73,10 @@
- 	/*  pq = dv_quant_shifts[qno + dv_quant_offset[class]]; */
- 	mov	%rsi,%rax	/* qno */
- 	mov	%rdx,%r12	/* class */
--	lea	dv_quant_offset(%rip),%rcx
-+	mov	dv_quant_offset@GOTPCREL(%rip),%rcx
- 	movzbq	(%rcx,%r12,1),%rcx   /* dv_quant_offset[class] */
- 	add	%rcx,%rax                       /* qno + */
--	lea	dv_quant_shifts(%rip),%r11
-+	mov	dv_quant_shifts@GOTPCREL(%rip),%r11
- 	lea	(%r11,%rax,4),%r11	/* r11 is pq = dv_quant_shifts[...] */
- 
- 	/* extra = (class == 3); */
-@@ -217,10 +217,10 @@
- 	mov	%rsi,%rax	/* qno */
- 	mov	%rdx,%r12	/* class */
- 
--	lea	dv_quant_offset(%rip),%rcx
-+	mov	dv_quant_offset@GOTPCREL(%rip),%rcx
- 	movzbq	(%rcx,%r12,1),%rcx
- 	add	%rcx,%rax
--	lea	dv_quant_shifts(%rip),%r11
-+	mov	dv_quant_shifts@GOTPCREL(%rip),%r11
- 	lea	(%r11,%rax,4),%r11	/* r11 is pq */
- 
- 	/* extra = (class == 3); */
-diff -aur libdv-0.104/libdv/vlc_x86_64.S libdv-0.104-patched/libdv/vlc_x86_64.S
---- libdv-0.104/libdv/vlc_x86_64.S	2004-10-20 04:49:24.000000000 +0100
-+++ libdv-0.104-patched/libdv/vlc_x86_64.S	2004-12-12 05:43:49.000000000 +0000
-@@ -16,28 +16,28 @@
- 	/* klass = dv_vlc_classes[maxbits][(bits & (dv_vlc_class_index_mask[maxbits])) >> */
- 	/*         (dv_vlc_class_index_rshift[maxbits])];  */
- /*	xor  %rbp,%rbp */
--	lea  dv_vlc_class_index_mask(%rip),%r11            /* use %rip for PIC code */
-+	mov  dv_vlc_class_index_mask@GOTPCREL(%rip),%r11    /* use %rip for PIC code */
-  	mov  (%r11,%rbx,4),%ebp           /* int32 */      /* dv_vlc_class_index_mask[maxbits] */
- 	and  %eax,%ebp                                     /* bits & */
--	lea  dv_vlc_class_index_rshift(%rip),%rcx
-+	mov  dv_vlc_class_index_rshift@GOTPCREL(%rip),%rcx
- 	mov  (%rcx,%rbx,4),%ecx           /* int32 */      /* dv_vlc_class_index_rshift[maxbits] */
- 	sar  %cl,%ebp                                      /* >> */
--	lea  dv_vlc_classes(%rip),%rcx
-+	mov  dv_vlc_classes@GOTPCREL(%rip),%rcx
- 	mov  (%rcx,%rbx,8),%rcx           /* ptr */        /* dv_vlc_classes[maxbits], a pointer */
- 	movsbq  (%rcx,%rbp,1),%rbp        /* int8 */       /* klass = */
- 
- 	/* *result = dv_vlc_lookups[klass][(bits & (dv_vlc_index_mask[klass])) >> */
- 	/*           (dv_vlc_index_rshift[klass])];   */
- /*	xor  %rbx,%rbx */
--	lea  dv_vlc_index_mask(%rip),%r11
-+	mov  dv_vlc_index_mask@GOTPCREL(%rip),%r11
- 	mov  (%r11,%rbp,4),%ebx          /* int32 */       /* (dv_vlc_index_mask[klass]) */
- /*	xor  %rcx,%rcx */
--	lea  dv_vlc_index_rshift(%rip),%r11
-+	mov  dv_vlc_index_rshift@GOTPCREL(%rip),%r11
- 	mov  (%r11,%rbp,4),%ecx          /* int32 */       /* dv_vlc_index_rshift[klass] */
- 	and  %eax,%ebx                                     /* bits &  */
- 	sar  %cl,%ebx                                      /* >> */
- 
--	lea  dv_vlc_lookups(%rip),%r11
-+	mov  dv_vlc_lookups@GOTPCREL(%rip),%r11
- 	mov  (%r11,%rbp,8),%rbp          /* ptr */         /* dv_vlc_lookups[klass] */
- 	mov  (%rbp,%rbx,4),%ebp          /* int32 */       /* *result = */
- 
-@@ -57,7 +57,7 @@
- 	mov  %ebp,%ecx
- 	sar  $8,%ecx
- 	and  $0xff,%ecx                /* result->len */
--	lea  sign_mask(%rip),%rbx
-+	mov  sign_mask@GOTPCREL(%rip),%rbx
- 	mov  (%rbx,%rcx,4),%ebx        /* int32 */
- 	and  %ebx,%eax
- 	neg  %eax
-@@ -109,17 +109,17 @@
- 	mov  %rax,%rbp
- 	and  $0xfe00,%ebp
- 	sar  $9,%ebp
--	lea  dv_vlc_class_lookup5(%rip),%r11
-+	mov  dv_vlc_class_lookup5@GOTPCREL(%rip),%r11
- 	movsbq  (%r11,%rbp),%rbp        /* int8 klass */
- 
--	lea  dv_vlc_index_mask(%rip),%rbx
-+	mov  dv_vlc_index_mask@GOTPCREL(%rip),%rbx
- 	mov  (%rbx,%rbp,4),%ebx         /* int32 */
--	lea  dv_vlc_index_rshift(%rip),%rcx
-+	mov  dv_vlc_index_rshift@GOTPCREL(%rip),%rcx
- 	mov  (%rcx,%rbp,4),%ecx         /* int32 */
- 	and  %eax,%ebx
- 	sar  %cl,%ebx			/* %rbx is klass */
- 
--	lea  dv_vlc_lookups(%rip),%r11
-+	mov  dv_vlc_lookups@GOTPCREL(%rip),%r11
- 	mov  (%r11,%rbp,8),%rbp         /* ptr */
- 	mov  (%rbp,%rbx,4),%ebp         /* int32 */
- 
-@@ -138,7 +138,7 @@
- 	mov  %ebp,%ecx
- 	sar  $8,%ecx
- 	and  $0xff,%ecx
--	lea  sign_mask(%rip),%r11
-+	mov  sign_mask@GOTPCREL(%rip),%r11
- 	mov  (%r11,%rcx,4),%ecx        /* int32 */
- 	and  %ecx,%eax
- 	neg  %eax
-@@ -253,7 +253,7 @@
- 
- 	/* Attempt to use the shortcut first.  If it hits, then
- 	   this vlc term has been decoded. */
--	lea	dv_vlc_class1_shortcut(%rip),%r10
-+	mov	dv_vlc_class1_shortcut@GOTPCREL(%rip),%r10
- 	mov	(%r10,%rcx,4),%r11d    /* record32 dv_vlc_tab_t */
- 	test	$0x80,%r11d
- 	
-@@ -267,17 +267,17 @@
- 
- 	/* %rax is bits */
- 	
--	lea  dv_vlc_class_lookup5(%rip),%r10
-+	mov  dv_vlc_class_lookup5@GOTPCREL(%rip),%r10
- 	movsbq  (%r10,%rcx,1),%rcx     /* int8 */
- 
- /*	xor  %r12,%r12 */
--	lea  dv_vlc_index_mask(%rip),%r10
-+	mov  dv_vlc_index_mask@GOTPCREL(%rip),%r10
- 	mov  (%r10,%rcx,4),%r12d       /* int32 */
- 	
--	lea  dv_vlc_lookups(%rip),%r10
-+	mov  dv_vlc_lookups@GOTPCREL(%rip),%r10
- 	mov  (%r10,%rcx,8),%r11       /* ptr->record32 */
- 	
--	lea  dv_vlc_index_rshift(%rip),%r10
-+	mov  dv_vlc_index_rshift@GOTPCREL(%rip),%r10
- 	mov  (%r10,%rcx,4),%ecx        /* int32 */
- 	
- 	and  %eax,%r12d
-@@ -303,7 +303,7 @@
- 	mov  %r11d,%ecx
- 	sar  $8,%ecx
- 	and  $0xff,%ecx
--	lea  sign_mask(%rip),%r10
-+	mov  sign_mask@GOTPCREL(%rip),%r10
- 	mov  (%r10,%rcx,4),%ecx      /* int32 */
- 	and  %ecx,%eax
- 	neg  %eax
-@@ -388,7 +388,8 @@
- 	mov	%r11,%rsi        /* bits */
- 	mov	%rax,%rdi        /* bits_left */
- 	lea	vlc(%rip),%rdx   /* *vlc */
--	call	dv_decode_vlc
-+	mov	dv_decode_vlc@GOTPCREL(%rip),%r11
-+	call	*%r11
- 	pop	%rdx
- 	pop	%rsi
- 	pop	%rdi
-@@ -473,7 +474,7 @@
- 	movl	%r11d,dv_macroblock_t_eob_count(%r13) /* int32 */
- 
- 	/* mb->i = (seg->i + dv_super_map_vertical[m]) % (seg->isPAL?12:10); */
--	lea	dv_super_map_vertical(%rip),%r11
-+	mov	dv_super_map_vertical@GOTPCREL(%rip),%r11
- 	movl	(%r11,%rax,4),%r11d                     /* int32 */
- /*	xor	%rcx,%rcx */
- 	movl	dv_videosegment_t_i(%r12),%ecx          /* int32 */
-@@ -493,7 +494,7 @@
- 	movl	%r11d,dv_macroblock_t_i(%r13)         /* int32 */
- 
- 	/*  mb->j = dv_super_map_horizontal[m]; */		
--	lea	dv_super_map_horizontal(%rip),%r11
-+	mov	dv_super_map_horizontal@GOTPCREL(%rip),%r11
- 	movl	(%r11,%rax,4),%r11d                   /* int32 */
- 	movl	%r11d,dv_macroblock_t_j(%r13)         /* int32 */
- 
-@@ -546,7 +547,8 @@
- 
- 	/* bl->reorder = &dv_reorder[bl->dct_mode][1]; */
- 	shl	$6,%rax                          /* *64 */
--	lea	(dv_reorder+1)(%rip),%rcx
-+	mov	dv_reorder@GOTPCREL(%rip),%rcx
-+	add	$1,%rcx
- 	add	%rcx,%rax
- 	mov	%rax,dv_block_t_reorder(%r15)    /* ptr */
- 
-@@ -557,13 +559,13 @@
- 	/* bl->offset= mb_start + dv_parse_bit_start[b]; */
- /*	xor	%rcx,%rcx */
- 	movl	mb_start(%rip),%ecx             /* int32 */
--	lea	dv_parse_bit_start(%rip),%rax
-+	mov	dv_parse_bit_start@GOTPCREL(%rip),%rax
- 	mov	(%rax,%r12,4),%eax              /* int32 */
- 	add	%rcx,%rax
- 	movl	%eax,dv_block_t_offset(%r15)    /* int32 */
- 
- 	/* bl->end= mb_start + dv_parse_bit_end[b]; */
--	lea	dv_parse_bit_end(%rip),%rax
-+	mov	dv_parse_bit_end@GOTPCREL(%rip),%rax
- 	mov	(%rax,%r12,4),%eax            /* int32 */
- 	add	%ecx,%eax
- 	mov	%eax,dv_block_t_end(%r15)     /* int32 */
-@@ -603,7 +605,8 @@
- 	mov	dv_videosegment_t_bs(%rdi),%rdi   /* passed in rdi was seg, now passing seg->bs */
- 	mov	%r13,%rsi                         /* mb */
- 	mov	%r15,%rdx                         /* bl */
--	call	dv_parse_ac_coeffs_pass0
-+	mov     dv_parse_ac_coeffs_pass0@GOTPCREL(%rip),%r11
-+	call	*%r11
- 	pop	%rdi
- 	pop	%rsi
- 	pop	%rdx
-@@ -635,10 +638,12 @@
- 	mov	%rsi,%rax	            /* quality */
- 	and	$DV_QUALITY_AC_MASK,%rax
- 	cmp	$DV_QUALITY_AC_2,%rax
-+
-+	jne	done
-+	mov	dv_parse_ac_coeffs@GOTPCREL(%rip),%r11
-+	jmp	*%r11
- 	
--	jz	dv_parse_ac_coeffs
--	
--	mov	$0,%rax
-+done:	mov	$0,%rax
- 	
- 	ret
- 
diff --git a/abs/extra-testing/libmng/PKGBUILD b/abs/extra-testing/libmng/PKGBUILD
deleted file mode 100644
index d0fd215..0000000
--- a/abs/extra-testing/libmng/PKGBUILD
+++ /dev/null
@@ -1,25 +0,0 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-# Maintainer: judd <jvinet@zeroflux.org>
-pkgname=libmng
-pkgver=1.0.10
-pkgrel=1
-pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
-arch=('i686' 'x86_64')
-url="http://www.libmng.com/"
-license=('custom')
-depends=('zlib' 'libjpeg')
-options=(!libtool)
-source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('a464ae7d679781beebdf7440d144b7bd')
-
-build() {
-  cd $startdir/src/$pkgname-$pkgver
-  ln -s makefiles/configure.in .
-  ln -s makefiles/Makefile.am .
-  autoreconf --force --install
-  ./configure --prefix=/usr
-  make || return 1
-  make DESTDIR=$startdir/pkg install
-  install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
-}
diff --git a/abs/extra-testing/libmpeg2/PKGBUILD b/abs/extra-testing/libmpeg2/PKGBUILD
deleted file mode 100644
index 672e098..0000000
--- a/abs/extra-testing/libmpeg2/PKGBUILD
+++ /dev/null
@@ -1,28 +0,0 @@
-# $Id: PKGBUILD 8677 2008-08-15 11:05:35Z andyrtr $
-# Contributor: Sarah Hay <sarah@archlinux.org>
-# Maintainer: Andreas Radke <andyrtr@archlinux.org>
-
-pkgname=libmpeg2
-pkgver=0.5.1
-pkgrel=1
-pkgdesc="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams."
-arch=('i686' 'x86_64')
-url="http://libmpeg2.sourceforge.net/"
-depends=('glibc')
-optdepends=('sdl:	requiered for mpeg2dec'
-            'libsm:	requiered for mpeg2dec'
-            'libxv:	requiered for mpeg2dec')
-source=(http://libmpeg2.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz)
-license=('GPL2')
-options=(!libtool)
-provides=('mpeg2dec')
-md5sums=('0f92c7454e58379b4a5a378485bbd8ef')
-
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --enable-shared --disable-static || return 1
-  make	OPT_CFLAGS="${CFLAGS}" \
-	MPEG2DEC_CFLAGS="${CFLAGS}" \
-	LIBMPEG2_CFLAGS="" || return 1
-  make DESTDIR=${pkgdir} install || return 1
-}
diff --git a/abs/extra-testing/libvisual/PKGBUILD b/abs/extra-testing/libvisual/PKGBUILD
deleted file mode 100644
index eb01e19..0000000
--- a/abs/extra-testing/libvisual/PKGBUILD
+++ /dev/null
@@ -1,21 +0,0 @@
-# $Id: PKGBUILD 8760 2008-08-16 05:23:46Z eric $
-# Maintainer: damir <damir@archlinux.org>
-
-pkgname=libvisual
-pkgver=0.4.0
-pkgrel=1
-pkgdesc="abstraction library that comes between applications and audio visualisation plugins"
-arch=("i686" "x86_64")
-url="http://localhost.nl/~synap/libvisual/"
-depends=('glibc')
-options=('!libtool')
-source=("http://downloads.sourceforge.net/sourceforge/libvisual/libvisual-$pkgver.tar.gz")
-md5sums=('f4e78547c79ea8a8ad111cf8b85011bb')
-
-build()
-{
-   cd $startdir/src/$pkgname-$pkgver
-   ./configure --prefix=/usr
-   make || return 1
-   make DESTDIR=$startdir/pkg install
-}
diff --git a/abs/extra-testing/libxml-perl/PKGBUILD b/abs/extra-testing/libxml-perl/PKGBUILD
deleted file mode 100644
index 5867a11..0000000
--- a/abs/extra-testing/libxml-perl/PKGBUILD
+++ /dev/null
@@ -1,23 +0,0 @@
-# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
-# Contributor: François Charette <firmicus ατ gmx δοτ net>
-
-pkgname=libxml-perl
-pkgver=0.08
-pkgrel=1
-pkgdesc="Perl library for working with XML"
-arch=('i686' 'x86_64')
-url="http://search.cpan.org/~KMACLEOD/libxml-perl"
-license=('GPL' 'PerlArtistic')
-depends=('perlxml>=2.19')
-options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-$pkgver.tar.gz) 
-md5sums=('0ed5fbdda53d1301ddaed88db10503bb')
-
-build() {
-  cd  $startdir/src/libxml-perl-$pkgver
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
-  make || return 1
-  make install DESTDIR=$startdir/pkg || return 1
-  find $startdir/pkg -name '.packlist' -delete
-  find $startdir/pkg -name '*.pod' -delete
-}
diff --git a/abs/extra-testing/perl-xml-regexp/PKGBUILD b/abs/extra-testing/perl-xml-regexp/PKGBUILD
deleted file mode 100644
index e785a85..0000000
--- a/abs/extra-testing/perl-xml-regexp/PKGBUILD
+++ /dev/null
@@ -1,23 +0,0 @@
-# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
-# Contributor: François Charette <firmicus ατ gmx δοτ net>
-
-pkgname=perl-xml-regexp
-pkgver=0.03
-pkgrel=3
-pkgdesc="Regular expressions for XML tokens"
-arch=('i686' 'x86_64')
-url="http://search.cpan.org/~TJMATHER/XML-RegExp"
-license=('GPL' 'PerlArtistic')
-depends=('perl>=5.10.0')
-options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-RegExp-$pkgver.tar.gz) 
-md5sums=('5826b24e0d05714e25c2bb04e1f1c09b')
-
-build() {
-  cd  $startdir/src/XML-RegExp-$pkgver
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
-  make || return 1
-  make install DESTDIR=$startdir/pkg || return 1
-  find $startdir/pkg -name '.packlist' -delete
-  find $startdir/pkg -name '*.pod' -delete
-}
diff --git a/abs/extra-testing/projectm/PKGBUILD b/abs/extra-testing/projectm/PKGBUILD
deleted file mode 100644
index 4baced2..0000000
--- a/abs/extra-testing/projectm/PKGBUILD
+++ /dev/null
@@ -1,21 +0,0 @@
-# $Id: PKGBUILD 8766 2008-08-16 05:30:47Z eric $
-# Maintainer: Alexander Baldeck <alexander@archlinux.org>
-pkgname=projectm
-pkgver=0.99
-pkgrel=2
-pkgdesc="A music visualizer which uses 3D accelerated iterative image based rendering"
-arch=(i686 x86_64)
-url="http://xmms-projectm.sourceforge.net"
-license="GPL"
-depends=('ftgl' 'glut')
-makedepends=('pkgconfig' 'xproto')
-install=projectm.install
-source=(http://downloads.sourceforge.net/sourceforge/projectm/libprojectM-$pkgver.tar.bz2)
-md5sums=('20dc0aa2af96340c3209c9795cc3217d')
-
-build() {
-  cd $startdir/src/libprojectM
-  ./configure --prefix=/usr
-  make || return
-  make DESTDIR=$startdir/pkg install
-}
diff --git a/abs/extra-testing/projectm/projectm.install b/abs/extra-testing/projectm/projectm.install
deleted file mode 100644
index a1e44dc..0000000
--- a/abs/extra-testing/projectm/projectm.install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
-  echo ">> projectm has been split so that you additionally need to install:"
-  echo ">> xmms-projectm for xmms"
-  echo ">> libvisual-project for libvisual (like for amarok)"
-}
-
-post_upgrade() {
-  post_install
-}
-
-op=$1
-shift
-$op $*
diff --git a/abs/extra-testing/xosd/PKGBUILD b/abs/extra-testing/xosd/PKGBUILD
deleted file mode 100644
index e4a87ba..0000000
--- a/abs/extra-testing/xosd/PKGBUILD
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: damir <damir@archlinux.org>
-# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
-
-pkgname=xosd
-pkgver=2.2.14
-pkgrel=1
-pkgdesc="XOSD displays text on your screen. On-Screen-Display-libs for some tools."
-arch=("i686" "x86_64")
-license=('GPL2')
-url="http://www.ignavus.net/software.html"
-depends=('libxt' 'libxinerama' 'gdk-pixbuf')
-makedepends=('xmms' 'bmp')
-options=(!libtool)
-#source=("http://www.ignavus.net/xosd-$pkgver.tar.bz2")
-source=("http://ftp.de.debian.org/debian/pool/main/x/xosd/xosd_$pkgver.orig.tar.gz")
-
-build() {
-  cd $startdir/src/xosd-$pkgver
-  ./configure --prefix=/usr
-  make || return 1
-  make DESTDIR=$startdir/pkg/ install
-}
-
-
-md5sums=('4b349fe930e4eee2f504d6c02673e24d')
-- 
cgit v0.12