diff options
Diffstat (limited to 'extra')
-rw-r--r-- | extra/gcin/fix_qt4_paths.patch | 31 | ||||
-rw-r--r-- | extra/gcin/fix_x86_64_libdir.patch | 12 | ||||
-rw-r--r-- | extra/libwebkit/replace-switch-with-given-when.patch | 45 | ||||
-rw-r--r-- | extra/squirrelmail/PKGBUILD | 50 | ||||
-rw-r--r-- | extra/squirrelmail/squirrelmail.install | 34 | ||||
-rw-r--r-- | extra/xawtv/xawtv-3.95-fixes.patch | 72 | ||||
-rw-r--r-- | extra/xawtv/xawtv-3.95-libv4l2.patch | 176 | ||||
-rw-r--r-- | extra/xawtv/xawtv-3.95-no-dga.patch | 120 | ||||
-rw-r--r-- | extra/xawtv/xawtv-3.95-pagemask-fix.patch | 44 | ||||
-rw-r--r-- | extra/xawtv/xawtv-395.diff | 60 |
10 files changed, 0 insertions, 644 deletions
diff --git a/extra/gcin/fix_qt4_paths.patch b/extra/gcin/fix_qt4_paths.patch deleted file mode 100644 index b029c17e5..000000000 --- a/extra/gcin/fix_qt4_paths.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff -aur old/configure new/configure ---- old/configure 2011-02-10 20:34:48.153348697 +0100 -+++ new/configure 2011-02-10 20:35:09.623348816 +0100 -@@ -174,7 +174,7 @@ - - - QT4_IM='N' --QT4_IM_DIR=/usr/$LIB/qt4/plugins/inputmethods -+QT4_IM_DIR=/usr/$LIB/qt/plugins/inputmethods - echo "testing if you have qt4 support" - if [ -d $QT4_IM_DIR ]; then - QT4_IM='Y' -diff -aur old/qt4-im/Makefile new/qt4-im/Makefile ---- old/qt4-im/Makefile 2011-02-10 20:34:23.236682152 +0100 -+++ new/qt4-im/Makefile 2011-02-10 20:35:09.623348816 +0100 -@@ -1,5 +1,5 @@ - include ../config.mak --QT=qt4 -+QT=qt - QTIM=$(QT)/plugins/inputmethods - IMMODULES=$(libdir)/$(QTIM) - -@@ -15,7 +15,7 @@ - $(CXX) -E $(CFLAGS) $(INCS) $< > $@ - - moc_gcin-qt.cpp: gcin-qt.h -- /usr/lib/$(QT)/bin/moc $< -o moc_gcin-qt.cpp -+ /usr/bin/moc $< -o moc_gcin-qt.cpp - - im-gcin.so: $(OBJS) - export LD_RUN_PATH=$(gcinlibdir) ;\ diff --git a/extra/gcin/fix_x86_64_libdir.patch b/extra/gcin/fix_x86_64_libdir.patch deleted file mode 100644 index 5f4df6a9e..000000000 --- a/extra/gcin/fix_x86_64_libdir.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -aur old/configure new/configure ---- old/configure 2011-02-10 20:34:20.943348819 +0100 -+++ new/configure 2011-02-10 20:34:48.153348697 +0100 -@@ -151,7 +151,7 @@ - - LIB='lib' - if [ -d /lib64 ]; then --LIB='lib64' -+LIB='lib' - fi - - QT_IM='N' diff --git a/extra/libwebkit/replace-switch-with-given-when.patch b/extra/libwebkit/replace-switch-with-given-when.patch deleted file mode 100644 index 4e64610bb..000000000 --- a/extra/libwebkit/replace-switch-with-given-when.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff -upr webkit-1.4.0.orig/Source/WebCore/make-hash-tools.pl webkit-1.4.0/Source/WebCore/make-hash-tools.pl ---- webkit-1.4.0.orig/Source/WebCore/make-hash-tools.pl 2011-04-25 22:27:15.000000000 +0300 -+++ webkit-1.4.0/Source/WebCore/make-hash-tools.pl 2011-06-02 00:41:26.000000000 +0300 -@@ -20,7 +20,7 @@ - # Boston, MA 02110-1301, USA. - - use strict; --use Switch; -+use feature 'switch'; - use File::Basename; - - my $outdir = $ARGV[0]; -@@ -28,9 +28,9 @@ shift; - my $option = basename($ARGV[0],".gperf"); - - --switch ($option) { -+given ($option) { - --case "DocTypeStrings" { -+when ("DocTypeStrings") { - - my $docTypeStringsGenerated = "$outdir/DocTypeStrings.cpp"; - my $docTypeStringsGperf = $ARGV[0]; -@@ -38,9 +38,9 @@ case "DocTypeStrings" { - - system("gperf --key-positions=\"*\" -s 2 $docTypeStringsGperf > $docTypeStringsGenerated") == 0 || die "calling gperf failed: $?"; - --} # case "DocTypeStrings" -+} # when ("DocTypeStrings") - --case "ColorData" { -+when ("ColorData") { - - my $colorDataGenerated = "$outdir/ColorData.cpp"; - my $colorDataGperf = $ARGV[0]; -@@ -48,6 +48,6 @@ case "ColorData" { - - system("gperf --key-positions=\"*\" -D -s 2 $colorDataGperf > $colorDataGenerated") == 0 || die "calling gperf failed: $?"; - --} # case "ColorData" -+} # when ("ColorData") - --} # switch ($option) -+} # given ($option) diff --git a/extra/squirrelmail/PKGBUILD b/extra/squirrelmail/PKGBUILD deleted file mode 100644 index dcdb822f5..000000000 --- a/extra/squirrelmail/PKGBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# $Id: PKGBUILD 71649 2010-03-07 23:43:31Z paul $ -# Maintainer: Paul Mattal <paul@archlinux.org> -# Contributor: Manolis Tzanidakis <manolis@archlinux.org> - -pkgname=squirrelmail -pkgver=1.4.20 -pkgrel=1 -pkgdesc="Webmail for Nuts!" -arch=(i686 x86_64) -license=('GPL') -url="http://www.squirrelmail.org" -depends=('php' 'perl' 'imap-server') -makedepends=('findutils') -backup=(srv/http/squirrelmail/.htaccess srv/http/squirrelmail/config/config.php) -install=$pkgname.install -source=(http://superb-sea2.dl.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('60ffedc61b295650c7695c2b74209294') - -build() { - # install - mkdir -p $startdir/pkg/srv/http/squirrelmail || return 1 - cd $startdir/pkg/srv/http/squirrelmail || return 1 - cp -a $startdir/src/squirrelmail-$pkgver/* . || return 1 - - # remove CVS dirs - find $startdir/pkg -type d -name CVS -exec rm -rf {} \; || return 1 - - # customize config (data and attachments in /var/lib/squirrelmail) - cd config || return 1 - cp -p config_default.php config.php || return 1 - sed -i 's|^$attachment_dir = $data_dir;|$attachment_dir = "/var/lib/squirrelmail/attachments";|' config.php || return 1 - sed -i 's|^$data_dir = "/var/local/squirrelmail/data";|$data_dir = "/var/lib/squirrelmail/data";|' config.php || return 1 - - # create data and attachments directories, set ownership/permissions - # ideally we would set attachments differently to root:-1 with 0730, but - # I don't know how to get chgrp to take "-1" properly; perhaps someday - # I'll figure out how to make this work - mkdir -p $startdir/pkg/var/lib/squirrelmail/{data,attachments} || return 1 - chown -R http:http $startdir/pkg/var/lib/squirrelmail/data \ - || return 1 - chown -R http:http $startdir/pkg/var/lib/squirrelmail/attachments \ - || return 1 - chmod 0700 $startdir/pkg/var/lib/squirrelmail/data || return 1 - chmod 0300 $startdir/pkg/var/lib/squirrelmail/attachments || return 1 - - # restrict access to squirrelmail by default - echo "deny from all" >$startdir/pkg/srv/http/squirrelmail/.htaccess \ - || return 1 -} -# vim: ts=2 sw=2 et ft=sh diff --git a/extra/squirrelmail/squirrelmail.install b/extra/squirrelmail/squirrelmail.install deleted file mode 100644 index 06f411f16..000000000 --- a/extra/squirrelmail/squirrelmail.install +++ /dev/null @@ -1,34 +0,0 @@ -post_install() { - /bin/cat <<THEEND - -NOTE ----- -To configure squirrelmail : -$ cd /srv/http/squirrelmail/config -$ perl conf.pl - -Make sure to check the documentation on its webpage for more details, -especially about securing your setup. The default attachments dir -has been placed in /var/lib/squirrelmail/attachments. - -Also make sure your php module is loaded in your Apache config. - -THEEND -} - -post_upgrade() { - /bin/true -} - -pre_remove() { - /bin/true -} - -post_remove() { - /bin/true -} - -op=$1 -shift - -$op $* diff --git a/extra/xawtv/xawtv-3.95-fixes.patch b/extra/xawtv/xawtv-3.95-fixes.patch deleted file mode 100644 index b6cdf8dec..000000000 --- a/extra/xawtv/xawtv-3.95-fixes.patch +++ /dev/null @@ -1,72 +0,0 @@ -diff -up xawtv-3.95.new/libng/plugins/drv0-v4l2.c.fixes xawtv-3.95.new/libng/plugins/drv0-v4l2.c ---- xawtv-3.95.new/libng/plugins/drv0-v4l2.c.fixes 2005-02-11 18:56:24.000000000 +0100 -+++ xawtv-3.95.new/libng/plugins/drv0-v4l2.c 2008-08-03 20:46:32.000000000 +0200 -@@ -91,6 +91,7 @@ struct v4l2_handle { - struct ng_video_fmt fmt_me; - struct v4l2_requestbuffers reqbufs; - struct v4l2_buffer buf_v4l2[WANTED_BUFFERS]; -+ int buf_v4l2_size[WANTED_BUFFERS]; - struct ng_video_buf buf_me[WANTED_BUFFERS]; - unsigned int queue,waiton; - -@@ -166,7 +167,7 @@ xioctl(int fd, int cmd, void *arg, int m - int rc; - - rc = ioctl(fd,cmd,arg); -- if (0 == rc && ng_debug < 2) -+ if (rc >= 0 && ng_debug < 2) - return rc; - if (mayfail && errno == mayfail && ng_debug < 2) - return rc; -@@ -768,6 +769,7 @@ v4l2_waiton(struct v4l2_handle *h) - /* get it */ - memset(&buf,0,sizeof(buf)); - buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; -+ buf.memory = V4L2_MEMORY_MMAP; - if (-1 == xioctl(h->fd,VIDIOC_DQBUF,&buf, 0)) - return -1; - h->waiton++; -@@ -812,6 +814,7 @@ v4l2_start_streaming(struct v4l2_handle - h->buf_v4l2[i].memory = V4L2_MEMORY_MMAP; - if (-1 == xioctl(h->fd, VIDIOC_QUERYBUF, &h->buf_v4l2[i], 0)) - return -1; -+ h->buf_v4l2_size[i] = h->buf_v4l2[i].length; - h->buf_me[i].fmt = h->fmt_me; - h->buf_me[i].size = h->buf_me[i].fmt.bytesperline * - h->buf_me[i].fmt.height; -@@ -865,12 +868,16 @@ v4l2_stop_streaming(struct v4l2_handle * - ng_waiton_video_buf(&h->buf_me[i]); - if (ng_debug) - print_bufinfo(&h->buf_v4l2[i]); -- if (-1 == munmap(h->buf_me[i].data,h->buf_me[i].size)) -+ if (-1 == munmap(h->buf_me[i].data, h->buf_v4l2_size[i])) - perror("munmap"); - } - h->queue = 0; - h->waiton = 0; - -+ /* unrequest buffers (only needed for some drivers) */ -+ h->reqbufs.count = 0; -+ xioctl(h->fd, VIDIOC_REQBUFS, &h->reqbufs, EINVAL); -+ - /* turn on preview (if needed) */ - if (h->ov_on != h->ov_enabled) { - h->ov_on = h->ov_enabled; -@@ -907,6 +914,17 @@ v4l2_setformat(void *handle, struct ng_v - fmt->width = h->fmt_v4l2.fmt.pix.width; - fmt->height = h->fmt_v4l2.fmt.pix.height; - fmt->bytesperline = h->fmt_v4l2.fmt.pix.bytesperline; -+ /* struct v4l2_format.fmt.pix.bytesperline is bytesperline for the -+ main plane for planar formats, where as we want it to be the total -+ bytesperline for all planes */ -+ switch (fmt->fmtid) { -+ case VIDEO_YUV422P: -+ fmt->bytesperline *= 2; -+ break; -+ case VIDEO_YUV420P: -+ fmt->bytesperline = fmt->bytesperline * 3 / 2; -+ break; -+ } - if (0 == fmt->bytesperline) - fmt->bytesperline = fmt->width * ng_vfmt_to_depth[fmt->fmtid] / 8; - h->fmt_me = *fmt; diff --git a/extra/xawtv/xawtv-3.95-libv4l2.patch b/extra/xawtv/xawtv-3.95-libv4l2.patch deleted file mode 100644 index 45a5e69cb..000000000 --- a/extra/xawtv/xawtv-3.95-libv4l2.patch +++ /dev/null @@ -1,176 +0,0 @@ ---- xawtv-3.95/libng/plugins/Subdir.mk~ 2008-07-30 09:51:01.000000000 +0200 -+++ xawtv-3.95/libng/plugins/Subdir.mk 2008-07-30 09:51:01.000000000 +0200 -@@ -41,6 +41,7 @@ libng/plugins/read-qt.so : LDLIBS := $( - libng/plugins/write-qt.so : LDLIBS := $(QT_LIBS) - libng/plugins/read-dv.so : LDLIBS := $(DV_LIBS) - libng/plugins/write-dv.so : LDLIBS := $(DV_LIBS) -+libng/plugins/drv0-v4l2.so: LDLIBS := -lv4l2 - - # global targets - all:: $(TARGETS-plugins) -diff -up xawtv-3.95/libng/plugins/drv0-v4l2.c.orig xawtv-3.95/libng/plugins/drv0-v4l2.c ---- xawtv-3.95/libng/plugins/drv0-v4l2.c.orig 2008-08-03 21:26:13.000000000 +0200 -+++ xawtv-3.95/libng/plugins/drv0-v4l2.c 2008-08-03 21:27:50.000000000 +0200 -@@ -29,11 +29,26 @@ - #include "struct-dump.h" - #include "struct-v4l2.h" - -+/* FIXME replace with autoconf detection */ -+#define HAVE_LIBV4L -+ -+#ifdef HAVE_LIBV4L -+#include <libv4l2.h> -+#else -+#define v4l2_fd_open(fd, flags) (fd) -+#define v4l2_close close -+#define v4l2_dup dup -+#define v4l2_ioctl ioctl -+#define v4l2_read read -+#define v4l2_mmap mmap -+#define v4l2_munmap munmap -+#endif -+ - /* ---------------------------------------------------------------------- */ - - /* open+close */ --static void* v4l2_open(char *device); --static int v4l2_close(void *handle); -+static void* v4l2_open_handle(char *device); -+static int v4l2_close_handle(void *handle); - - /* attributes */ - static char* v4l2_devname(void *handle); -@@ -111,8 +126,8 @@ struct v4l2_handle { - - struct ng_vid_driver v4l2_driver = { - name: "v4l2", -- open: v4l2_open, -- close: v4l2_close, -+ open: v4l2_open_handle, -+ close: v4l2_close_handle, - - get_devname: v4l2_devname, - capabilities: v4l2_flags, -@@ -166,7 +181,7 @@ xioctl(int fd, int cmd, void *arg, int m - { - int rc; - -- rc = ioctl(fd,cmd,arg); -+ rc = v4l2_ioctl(fd,cmd,arg); - if (rc >= 0 && ng_debug < 2) - return rc; - if (mayfail && errno == mayfail && ng_debug < 2) -@@ -220,7 +235,7 @@ get_device_capabilities(struct v4l2_hand - } - - h->streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; -- ioctl(h->fd,VIDIOC_G_PARM,&h->streamparm); -+ v4l2_ioctl(h->fd,VIDIOC_G_PARM,&h->streamparm); - - /* controls */ - for (i = 0; i < MAX_CTRL; i++) { -@@ -444,10 +459,10 @@ static void v4l2_write_attr(struct ng_at - /* ---------------------------------------------------------------------- */ - - static void* --v4l2_open(char *device) -+v4l2_open_handle(char *device) - { - struct v4l2_handle *h; -- int i; -+ int i, libv4l2_fd; - - h = malloc(sizeof(*h)); - if (NULL == h) -@@ -459,6 +474,16 @@ v4l2_open(char *device) - goto err; - } - -+ /* Note the v4l2_xxx functions are designed so that if they get passed an -+ unknown fd, the will behave exactly as their regular xxx counterparts, so -+ if v4l2_fd_open fails, we continue as normal (missing the libv4l2 custom -+ cam format to normal formats conversion). Chances are big we will still -+ fail then though, as normally v4l2_fd_open only fails if the device is not -+ a v4l2 device. */ -+ libv4l2_fd = v4l2_fd_open(h->fd, 0); -+ if (libv4l2_fd != -1) -+ h->fd = libv4l2_fd; -+ - if (-1 == xioctl(h->fd,VIDIOC_QUERYCAP,&h->cap,EINVAL)) - goto err; - if (ng_debug) -@@ -495,21 +520,21 @@ v4l2_open(char *device) - - err: - if (h->fd != -1) -- close(h->fd); -+ v4l2_close(h->fd); - if (h) - free(h); - return NULL; - } - - static int --v4l2_close(void *handle) -+v4l2_close_handle(void *handle) - { - struct v4l2_handle *h = handle; - - if (ng_debug) - fprintf(stderr, "v4l2: close\n"); - -- close(h->fd); -+ v4l2_close(h->fd); - free(h); - return 0; - } -@@ -818,7 +843,7 @@ v4l2_start_streaming(struct v4l2_handle - h->buf_me[i].fmt = h->fmt_me; - h->buf_me[i].size = h->buf_me[i].fmt.bytesperline * - h->buf_me[i].fmt.height; -- h->buf_me[i].data = mmap(NULL, h->buf_v4l2[i].length, -+ h->buf_me[i].data = v4l2_mmap(NULL, h->buf_v4l2[i].length, - PROT_READ | PROT_WRITE, MAP_SHARED, - h->fd, h->buf_v4l2[i].m.offset); - if (MAP_FAILED == h->buf_me[i].data) { -@@ -859,7 +884,7 @@ v4l2_stop_streaming(struct v4l2_handle * - unsigned int i; - - /* stop capture */ -- if (-1 == ioctl(h->fd,VIDIOC_STREAMOFF,&h->fmt_v4l2.type)) -+ if (-1 == v4l2_ioctl(h->fd,VIDIOC_STREAMOFF,&h->fmt_v4l2.type)) - perror("ioctl VIDIOC_STREAMOFF"); - - /* free buffers */ -@@ -868,7 +893,7 @@ v4l2_stop_streaming(struct v4l2_handle * - ng_waiton_video_buf(&h->buf_me[i]); - if (ng_debug) - print_bufinfo(&h->buf_v4l2[i]); -- if (-1 == munmap(h->buf_me[i].data, h->buf_v4l2_size[i])) -+ if (-1 == v4l2_munmap(h->buf_me[i].data, h->buf_v4l2_size[i])) - perror("munmap"); - } - h->queue = 0; -@@ -989,7 +1014,7 @@ v4l2_nextframe(void *handle) - } else { - size = h->fmt_me.bytesperline * h->fmt_me.height; - buf = ng_malloc_video_buf(&h->fmt_me,size); -- rc = read(h->fd,buf->data,size); -+ rc = v4l2_read(h->fd,buf->data,size); - if (rc != size) { - if (-1 == rc) { - perror("v4l2: read"); -@@ -1023,11 +1048,11 @@ v4l2_getimage(void *handle) - size = h->fmt_me.bytesperline * h->fmt_me.height; - buf = ng_malloc_video_buf(&h->fmt_me,size); - if (h->cap.capabilities & V4L2_CAP_READWRITE) { -- rc = read(h->fd,buf->data,size); -+ rc = v4l2_read(h->fd,buf->data,size); - if (-1 == rc && EBUSY == errno && h->ov_on) { - h->ov_on = 0; - xioctl(h->fd, VIDIOC_OVERLAY, &h->ov_on, 0); -- rc = read(h->fd,buf->data,size); -+ rc = v4l2_read(h->fd,buf->data,size); - h->ov_on = 1; - xioctl(h->fd, VIDIOC_OVERLAY, &h->ov_on, 0); - } diff --git a/extra/xawtv/xawtv-3.95-no-dga.patch b/extra/xawtv/xawtv-3.95-no-dga.patch deleted file mode 100644 index 4509d4ba0..000000000 --- a/extra/xawtv/xawtv-3.95-no-dga.patch +++ /dev/null @@ -1,120 +0,0 @@ -diff -up xawtv-3.95/console/v4l-conf.c~ xawtv-3.95/console/v4l-conf.c ---- xawtv-3.95/console/v4l-conf.c~ 2008-08-03 22:22:01.000000000 +0200 -+++ xawtv-3.95/console/v4l-conf.c 2008-08-03 22:34:33.000000000 +0200 -@@ -221,6 +221,21 @@ displayinfo_x11(Display *dpy, struct DIS - } - } - -+#ifdef HAVE_LIBXXF86DGA -+static int dga_error = 0; -+static int dga_error_base; -+static int (*orig_xfree_error_handler)(Display *, XErrorEvent *); -+ -+static int dga_error_handler(Display *d, XErrorEvent *e) -+{ -+ if (e->error_code == (dga_error_base + XF86DGANoDirectVideoMode)) { -+ dga_error = 1; -+ return 0; -+ } -+ return orig_xfree_error_handler(d, e); -+} -+#endif -+ - static void - displayinfo_dga(Display *dpy, struct DISPLAYINFO *d) - { -@@ -228,7 +243,7 @@ displayinfo_dga(Display *dpy, struct DIS - int width,bar,foo,major,minor,flags=0; - void *base = NULL; - -- if (!XF86DGAQueryExtension(dpy,&foo,&bar)) { -+ if (!XF86DGAQueryExtension(dpy,&foo,&dga_error_base)) { - fprintf(stderr,"WARNING: Your X-Server has no DGA support.\n"); - return; - } -@@ -240,7 +255,14 @@ displayinfo_dga(Display *dpy, struct DIS - fprintf(stderr,"WARNING: No DGA support available for this display.\n"); - return; - } -+ orig_xfree_error_handler = XSetErrorHandler(dga_error_handler); - XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(void*)&base,&width,&foo,&bar); -+ XSync(dpy, 0); -+ XSetErrorHandler(orig_xfree_error_handler); -+ if (dga_error) { -+ fprintf(stderr,"WARNING: No DGA direct video mode for this display.\n"); -+ return; -+ } - d->bpl = width * d->bpp/8; - d->base = base; - #else -diff -up xawtv-3.95/libng/plugins/drv0-v4l2.c~ xawtv-3.95/libng/plugins/drv0-v4l2.c ---- xawtv-3.95/libng/plugins/drv0-v4l2.c~ 2008-08-03 21:52:41.000000000 +0200 -+++ xawtv-3.95/libng/plugins/drv0-v4l2.c 2008-08-03 22:23:01.000000000 +0200 -@@ -618,7 +618,7 @@ v4l2_setupfb(void *handle, struct ng_vid - return -1; - - /* double-check settings */ -- if (NULL != base && h->ov_fb.base != base) { -+ if ((NULL != base && h->ov_fb.base != base) || h->ov_fb.base == NULL) { - fprintf(stderr,"v4l2: WARNING: framebuffer base address mismatch\n"); - fprintf(stderr,"v4l2: me=%p v4l=%p\n",base,h->ov_fb.base); - h->ov_error = 1; -diff -up xawtv-3.95/x11/xt.c~ xawtv-3.95/x11/xt.c ---- xawtv-3.95/x11/xt.c~ 2008-08-03 22:22:11.000000000 +0200 -+++ xawtv-3.95/x11/xt.c 2008-08-03 22:35:14.000000000 +0200 -@@ -1247,18 +1247,21 @@ FilterAction(Widget widget, XEvent *even - } - - /*----------------------------------------------------------------------*/ -+#ifdef HAVE_LIBXXF86DGA -+static int xfree_dga_error_base; -+#endif - - void - xfree_dga_init(Display *dpy) - { - #ifdef HAVE_LIBXXF86DGA -- int flags,foo,bar,ma,mi; -+ int flags,foo,ma,mi; - - if (!do_overlay) - return; - - if (args.dga) { -- if (XF86DGAQueryExtension(dpy,&foo,&bar)) { -+ if (XF86DGAQueryExtension(dpy,&foo,&xfree_dga_error_base)) { - XF86DGAQueryDirectVideo(dpy,XDefaultScreen(dpy),&flags); - if (flags & XF86DGADirectPresent) { - XF86DGAQueryVersion(dpy,&ma,&mi); -@@ -1348,6 +1351,19 @@ xfree_xinerama_init(Display *dpy) - #endif - } - -+#ifdef HAVE_LIBXXF86DGA -+static int (*orig_xfree_error_handler)(Display *, XErrorEvent *); -+ -+static int xfree_dga_error_handler(Display *d, XErrorEvent *e) -+{ -+ if (e->error_code == (xfree_dga_error_base + XF86DGANoDirectVideoMode)) { -+ have_dga = 0; -+ return 0; -+ } -+ return orig_xfree_error_handler(d, e); -+} -+#endif -+ - void - grabber_init() - { -@@ -1358,8 +1374,11 @@ grabber_init() - #ifdef HAVE_LIBXXF86DGA - if (have_dga) { - int bar,fred; -+ orig_xfree_error_handler = XSetErrorHandler(xfree_dga_error_handler); - XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(void*)&base, - &screen.bytesperline,&bar,&fred); -+ XSync(dpy, 0); -+ XSetErrorHandler(orig_xfree_error_handler); - } - #endif - if (!do_overlay) { diff --git a/extra/xawtv/xawtv-3.95-pagemask-fix.patch b/extra/xawtv/xawtv-3.95-pagemask-fix.patch deleted file mode 100644 index ab635f73a..000000000 --- a/extra/xawtv/xawtv-3.95-pagemask-fix.patch +++ /dev/null @@ -1,44 +0,0 @@ -Patch from Andreas Jochens -http://lists.debian.org/debian-qa-packages/2006/08/msg00519.html - -diff -urN ../tmp-orig/xawtv-3.95/console/fbtools.c ./console/fbtools.c ---- ../tmp-orig/xawtv-3.95/console/fbtools.c 2003-02-14 14:14:04.000000000 +0000 -+++ ./console/fbtools.c 2006-08-23 10:57:40.000000000 +0000 -@@ -21,8 +21,6 @@ - #include <linux/vt.h> - #include <linux/fb.h> - --#include <asm/page.h> -- - #include "fbtools.h" - - /* -------------------------------------------------------------------- */ -@@ -424,7 +422,7 @@ - goto err; - } - #endif -- fb_mem_offset = (unsigned long)(fb_fix.smem_start) & (~PAGE_MASK); -+ fb_mem_offset = (unsigned long)(fb_fix.smem_start) & ~(sysconf(_SC_PAGE_SIZE)-1); - fb_mem = mmap(NULL,fb_fix.smem_len+fb_mem_offset, - PROT_READ|PROT_WRITE,MAP_SHARED,fb,0); - if (-1L == (long)fb_mem) { -diff -urN ../tmp-orig/xawtv-3.95/console/matrox.c ./console/matrox.c ---- ../tmp-orig/xawtv-3.95/console/matrox.c 2005-02-03 10:40:41.000000000 +0000 -+++ ./console/matrox.c 2006-08-23 11:09:51.000000000 +0000 -@@ -9,7 +9,6 @@ - #include <sys/ioctl.h> - #include <sys/mman.h> - --#include <asm/page.h> /* PAGE_SIZE */ - #include <linux/fb.h> - - #include "byteswap.h" -@@ -226,7 +225,7 @@ - return -1; - } - off = (unsigned long)fb_fix.mmio_start - -- ((unsigned long)fb_fix.mmio_start & ~(PAGE_SIZE-1)); -+ ((unsigned long)fb_fix.mmio_start & ~(sysconf(_SC_PAGE_SIZE)-1)); - bmmio += off; - mmio = (uint32_t*)bmmio; - return 0; diff --git a/extra/xawtv/xawtv-395.diff b/extra/xawtv/xawtv-395.diff deleted file mode 100644 index 970b2b00f..000000000 --- a/extra/xawtv/xawtv-395.diff +++ /dev/null @@ -1,60 +0,0 @@ -diff -Nru xawtv-3.95/Makefile.in xawtv-3.95.my/Makefile.in ---- xawtv-3.95/Makefile.in 2004-04-22 09:52:29.000000000 -0500 -+++ xawtv-3.95.my/Makefile.in 2006-06-04 19:05:24.000000000 -0500 -@@ -49,7 +49,7 @@ - VBI_LIBS := @LIBZVBI@ - GL_LIBS := @LIBGL@ - DV_LIBS := @LIBDV@ --FS_LIBS := -L@x_libraries@ @FSLIB@ -+FS_LIBS := @FSLIB@ - DLFLAGS := @DLFLAGS@ - - # stuff configure has found -diff -Nru xawtv-3.95/common/channel.c xawtv-3.95.my/common/channel.c ---- xawtv-3.95/common/channel.c 2003-03-28 06:22:06.000000000 -0600 -+++ xawtv-3.95.my/common/channel.c 2006-06-04 19:10:07.000000000 -0500 -@@ -181,6 +181,9 @@ - { -1, NULL, }, - }; - -+extern struct STRTAB booltab[]; -+extern struct STRTAB captab[]; -+ - /* just malloc memory for a new channel ... */ - struct CHANNEL* - add_channel(char *name) -diff -Nru xawtv-3.95/common/channel.h xawtv-3.95.my/common/channel.h ---- xawtv-3.95/common/channel.h 2003-02-14 08:14:04.000000000 -0600 -+++ xawtv-3.95.my/common/channel.h 2006-06-04 19:08:13.000000000 -0500 -@@ -90,8 +90,6 @@ - - /* ----------------------------------------------------------------------- */ - --extern struct STRTAB booltab[]; --extern struct STRTAB captab[]; - - int str_to_int(char *str, struct STRTAB *tab); - const char* int_to_str(int n, struct STRTAB *tab); -diff -Nru xawtv-3.95/common/commands.c xawtv-3.95.my/common/commands.c ---- xawtv-3.95/common/commands.c 2004-04-19 11:24:05.000000000 -0500 -+++ xawtv-3.95.my/common/commands.c 2006-06-04 19:11:48.000000000 -0500 -@@ -162,6 +162,9 @@ - - static int keypad_state = -1; - -+extern struct STRTAB booltab[]; -+extern struct STRTAB captab[]; -+ - /* ----------------------------------------------------------------------- */ - - void add_attrs(struct ng_attribute *new) -diff -Nru xawtv-3.95/console/fs.h xawtv-3.95.my/console/fs.h ---- xawtv-3.95/console/fs.h 2003-02-14 08:14:04.000000000 -0600 -+++ xawtv-3.95.my/console/fs.h 2006-06-04 19:00:20.000000000 -0500 -@@ -1,5 +1,5 @@ - #ifndef X_DISPLAY_MISSING --# include <FSlib.h> -+# include <X11/fonts/FSlib.h> - - struct fs_font { - Font font; |