From 588fb238b042bfb13e3cde0b3413223bcc1873af Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 14 Mar 2015 21:38:31 +0100 Subject: [PATCH] xorg-server: patch from upstream to make xf86-video-vesa work again. --- srcpkgs/xorg-server/patches/0a78b599b34.patch | 43 +++++++++++++++++++ srcpkgs/xorg-server/template | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xorg-server/patches/0a78b599b34.patch diff --git a/srcpkgs/xorg-server/patches/0a78b599b34.patch b/srcpkgs/xorg-server/patches/0a78b599b34.patch new file mode 100644 index 00000000000..0446031d2af --- /dev/null +++ b/srcpkgs/xorg-server/patches/0a78b599b34.patch @@ -0,0 +1,43 @@ +From 0a78b599b34cc8b5fe6fe82f90e90234e8ab7a56 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=BCrg=20Billeter?= +Date: Sat, 7 Feb 2015 18:13:21 +0100 +Subject: int10: Fix error check for pci_device_map_legacy +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +pci_device_map_legacy returns 0 on success. + +Signed-off-by: Jürg Billeter +Reviewed-by: Adam Jackson +Signed-off-by: Peter Hutterer + +diff --git a/hw/xfree86/int10/generic.c b/hw/xfree86/int10/generic.c +index 012d194..8d5c4da 100644 +--- hw/xfree86/int10/generic.c ++++ hw/xfree86/int10/generic.c +@@ -104,7 +104,7 @@ readIntVec(struct pci_device *dev, unsigned char *buf, int len) + { + void *map; + +- if (!pci_device_map_legacy(dev, 0, len, 0, &map)) ++ if (pci_device_map_legacy(dev, 0, len, 0, &map)) + return FALSE; + + memcpy(buf, map, len); +diff --git a/hw/xfree86/os-support/linux/int10/linux.c b/hw/xfree86/os-support/linux/int10/linux.c +index 79b9a88..6ca118f 100644 +--- hw/xfree86/os-support/linux/int10/linux.c ++++ hw/xfree86/os-support/linux/int10/linux.c +@@ -75,7 +75,7 @@ readLegacy(struct pci_device *dev, unsigned char *buf, int base, int len) + { + void *map; + +- if (!pci_device_map_legacy(dev, base, len, 0, &map)) ++ if (pci_device_map_legacy(dev, base, len, 0, &map)) + return FALSE; + + memcpy(buf, map, len); +-- +cgit v0.10.2 + diff --git a/srcpkgs/xorg-server/template b/srcpkgs/xorg-server/template index ac9417a9b1f..a83649d8a22 100644 --- a/srcpkgs/xorg-server/template +++ b/srcpkgs/xorg-server/template @@ -1,7 +1,7 @@ # Template build file for 'xorg-server'. pkgname=xorg-server version=1.17.1 -revision=3 +revision=4 build_style=gnu-configure configure_args="--enable-ipv6 --enable-xcsecurity --enable-record --enable-xnest --enable-xephyr --enable-composite --enable-xvfb