summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-03-18 16:08:30 +0000
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-03-18 16:08:30 +0000
commit6dcbb763df28a4a767167dbe837982cdbce88d9e (patch)
tree572a3e21e0259eb2d5e8189702e128681164fcdd /x11-drivers/xf86-video-vesa
parentsparc stable wrt #393919 (diff)
downloadhistorical-6dcbb763df28a4a767167dbe837982cdbce88d9e.tar.gz
historical-6dcbb763df28a4a767167dbe837982cdbce88d9e.tar.bz2
historical-6dcbb763df28a4a767167dbe837982cdbce88d9e.zip
Fix building against xorg-server-1.12.
Package-Manager: portage-2.2.0_alpha90/cvs/Linux x86_64
Diffstat (limited to 'x11-drivers/xf86-video-vesa')
-rw-r--r--x11-drivers/xf86-video-vesa/ChangeLog12
-rw-r--r--x11-drivers/xf86-video-vesa/Manifest5
-rw-r--r--x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-pci-domains.patch55
-rw-r--r--x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-xorg-server-1.12.patch30
-rw-r--r--x11-drivers/xf86-video-vesa/xf86-video-vesa-2.3.0-r1.ebuild18
5 files changed, 117 insertions, 3 deletions
diff --git a/x11-drivers/xf86-video-vesa/ChangeLog b/x11-drivers/xf86-video-vesa/ChangeLog
index ea2a95396a3a..f1887aeb0dec 100644
--- a/x11-drivers/xf86-video-vesa/ChangeLog
+++ b/x11-drivers/xf86-video-vesa/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for x11-drivers/xf86-video-vesa
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-vesa/ChangeLog,v 1.52 2011/02/13 19:08:04 scarabeus Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-vesa/ChangeLog,v 1.53 2012/03/18 16:08:30 chithanh Exp $
+
+*xf86-video-vesa-2.3.0-r1 (18 Mar 2012)
+
+ 18 Mar 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ +files/xf86-video-vesa-2.3.0-pci-domains.patch,
+ +files/xf86-video-vesa-2.3.0-xorg-server-1.12.patch,
+ +xf86-video-vesa-2.3.0-r1.ebuild:
+ Fix building against xorg-server-1.12.
13 Feb 2011; Tomáš Chvátal <scarabeus@gentoo.org>
-xf86-video-vesa-2.2.1.ebuild:
diff --git a/x11-drivers/xf86-video-vesa/Manifest b/x11-drivers/xf86-video-vesa/Manifest
index ac0f441625fd..9194f8d5caaf 100644
--- a/x11-drivers/xf86-video-vesa/Manifest
+++ b/x11-drivers/xf86-video-vesa/Manifest
@@ -1,4 +1,7 @@
+AUX xf86-video-vesa-2.3.0-pci-domains.patch 2083 RMD160 40d68ce41b890cf90d18cefb826749e1fe5e6744 SHA1 d97fc7e5a81afb5530a02aba18691c6690a750e5 SHA256 eae65b6b852cb498557c5fab1231522ae7b1f1a955d5374f338e1e4763088c6a
+AUX xf86-video-vesa-2.3.0-xorg-server-1.12.patch 899 RMD160 050aeecf66b6bd997a798b4ad5aa010646a165be SHA1 79464ccc7e443757e62ff6c1f3447bb47f432396 SHA256 cfc8b35a0fa674ab99e3d77f19e53884c882a842c6fe1dbf40a19761ddb9686a
DIST xf86-video-vesa-2.3.0.tar.bz2 264539 RMD160 7e7c11f6cc094bb898c57d26a70f6c4c0ab83d0f SHA1 4689b7c295d7a8d7326302dafecb812739617134 SHA256 8ed85a0e94523539d81d5ae6639fa22ceb1c1e3baf89128915db65d4d2900d7a
+EBUILD xf86-video-vesa-2.3.0-r1.ebuild 533 RMD160 256c7457b84edbcdd6bab321822f0402f23b2c75 SHA1 33eba1d4406b7100690cf4153038d7616129b8d4 SHA256 21d6e465e590f09cc4099e878d62f0597005f0f3330775b44e18ea6aa04aa8cd
EBUILD xf86-video-vesa-2.3.0.ebuild 510 RMD160 7908f44d708d3ea7c91098cef6f2a61005de05d5 SHA1 5b40417da45f40928e643a7d2519bee56991cacd SHA256 2a74744da9b0adaa126123c52057457e6980e6b7b77f3c2ec93b136959c7172c
-MISC ChangeLog 7353 RMD160 f378b9d7b026d20bc980534d10054a7cc4e40da2 SHA1 ab71d01bc154aab9e19fffb789e8212c21b7e65f SHA256 8b34dd25ebfe2f4e32c54c6b51248ca38288a3e847718bdb52872ff2f5558162
+MISC ChangeLog 7645 RMD160 1f75fee47c53de65f793687f9794d06d023093df SHA1 b1f94d7eb651feecc3a736c6bbf7d4d202b48207 SHA256 fb3ac2ccee33a6f58f58806b48660289288e7b03827d7ee560903b790a8593a4
MISC metadata.xml 156 RMD160 c1274bdccf57603d580de0075ba07a35b7509560 SHA1 6f78f604e3d079d39189b40aaaa1ddb06182ad91 SHA256 5101ab0d4cc8c7125eea733c44e86962769bd77acaf53b69223b9cadcdd29055
diff --git a/x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-pci-domains.patch b/x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-pci-domains.patch
new file mode 100644
index 000000000000..645fbc160d6f
--- /dev/null
+++ b/x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-pci-domains.patch
@@ -0,0 +1,55 @@
+From 1f84310ddf49778f776a39810aa98211c812e8ab Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston <jeremyhu@apple.com>
+Date: Wed, 19 Oct 2011 08:33:07 +0000
+Subject: Build fix for ABI Version 12
+
+ABI Version 12 removes support for multiple PCI domains. If you need to
+use this driver on a system with more than one PCI domain, you should
+either port this driver to using libpciaccess directly or stick with an
+older server.
+
+Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
+---
+diff --git a/src/vesa.c b/src/vesa.c
+index 1136ac3..5a0120c 100644
+--- a/src/vesa.c
++++ b/src/vesa.c
+@@ -1268,14 +1268,16 @@ VESAMapVidMem(ScrnInfoPtr pScrn)
+ & pVesa->base);
+ }
+ else
+- pVesa->base = xf86MapDomainMemory(pScrn->scrnIndex, 0, pVesa->pciInfo,
+- pScrn->memPhysBase, pVesa->mapSize);
++ (void) pci_device_map_legacy(pVesa->pciInfo, pScrn->memPhysBase,
++ pVesa->mapSize,
++ PCI_DEV_MAP_FLAG_WRITABLE,
++ & pVesa->base);
+
+ if (pVesa->base) {
+ if (pVesa->mapPhys != 0xa0000)
+- pVesa->VGAbase = xf86MapDomainMemory(pScrn->scrnIndex, 0,
+- pVesa->pciInfo,
+- 0xa0000, 0x10000);
++ (void) pci_device_map_legacy(pVesa->pciInfo, 0xa0000, 0x10000,
++ PCI_DEV_MAP_FLAG_WRITABLE,
++ & pVesa->VGAbase);
+ else
+ pVesa->VGAbase = pVesa->base;
+
+@@ -1325,10 +1327,12 @@ VESAUnmapVidMem(ScrnInfoPtr pScrn)
+ if (pVesa->mapPhys != 0xa0000) {
+ (void) pci_device_unmap_range(pVesa->pciInfo, pVesa->base,
+ pVesa->mapSize);
+- xf86UnMapVidMem(pScrn->scrnIndex, pVesa->VGAbase, 0x10000);
++ (void) pci_device_unmap_legacy(pVesa->pciInfo, pVesa->VGAbase,
++ 0x10000);
+ }
+ else {
+- xf86UnMapVidMem(pScrn->scrnIndex, pVesa->base, pVesa->mapSize);
++ (void) pci_device_unmap_legacy(pVesa->pciInfo, pVesa->base,
++ pVesa->mapSize);
+ }
+ #else
+ xf86UnMapVidMem(pScrn->scrnIndex, pVesa->base, pVesa->mapSize);
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-xorg-server-1.12.patch b/x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-xorg-server-1.12.patch
new file mode 100644
index 000000000000..697dc278ec9e
--- /dev/null
+++ b/x11-drivers/xf86-video-vesa/files/xf86-video-vesa-2.3.0-xorg-server-1.12.patch
@@ -0,0 +1,30 @@
+From 463886df688d3521afc47ec88f9aaf67e924ec7f Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston <jeremyhu@apple.com>
+Date: Wed, 19 Oct 2011 08:15:03 +0000
+Subject: Build fix for ABI Version 12
+
+ABI Version 12 removes support for multiple PCI domains. If you need to
+use this driver on a system with more than one PCI domain, you should
+either port this driver to using libpciaccess directly or stick with an
+older server.
+
+Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
+---
+diff --git a/src/vesa.c b/src/vesa.c
+index 61d3550..1136ac3 100644
+--- a/src/vesa.c
++++ b/src/vesa.c
+@@ -1299,7 +1299,11 @@ VESAMapVidMem(ScrnInfoPtr pScrn)
+ }
+ #endif
+
++#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
+ pVesa->ioBase = pScrn->domainIOBase;
++#else
++ pVesa->ioBase = 0;
++#endif
+
+ xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, DEBUG_VERB,
+ "virtual address = %p,\n"
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/x11-drivers/xf86-video-vesa/xf86-video-vesa-2.3.0-r1.ebuild b/x11-drivers/xf86-video-vesa/xf86-video-vesa-2.3.0-r1.ebuild
new file mode 100644
index 000000000000..91a6081bfd84
--- /dev/null
+++ b/x11-drivers/xf86-video-vesa/xf86-video-vesa-2.3.0-r1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-vesa/xf86-video-vesa-2.3.0-r1.ebuild,v 1.1 2012/03/18 16:08:30 chithanh Exp $
+
+EAPI=4
+inherit xorg-2
+
+DESCRIPTION="Generic VESA video driver"
+KEYWORDS="-* ~alpha ~amd64 ~ia64 ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=x11-base/xorg-server-1.0.99"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.3.0-xorg-server-1.12.patch
+ "${FILESDIR}"/${PN}-2.3.0-pci-domains.patch
+)