From 8688c6cd995485785671871e3e5ef787451af9fd Mon Sep 17 00:00:00 2001 From: wbrana Date: Sat, 20 Apr 2013 19:07:26 +0200 Subject: [x11-base/xorg-server] version bump to 1.14.1 --- x11-base/xorg-server/Manifest | 6 +- .../files/xorg-server-1.13-ia64-asm.patch | 21 -- .../files/xorg-server-disable-iopl.patch | 255 --------------------- .../xorg-server/xorg-server-1.13.4-r131.ebuild | 254 -------------------- .../xorg-server/xorg-server-1.14.1-r131.ebuild | 251 ++++++++++++++++++++ 5 files changed, 253 insertions(+), 534 deletions(-) delete mode 100644 x11-base/xorg-server/files/xorg-server-1.13-ia64-asm.patch delete mode 100644 x11-base/xorg-server/files/xorg-server-disable-iopl.patch delete mode 100644 x11-base/xorg-server/xorg-server-1.13.4-r131.ebuild create mode 100644 x11-base/xorg-server/xorg-server-1.14.1-r131.ebuild diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest index 5f3d7a5..996b07a 100644 --- a/x11-base/xorg-server/Manifest +++ b/x11-base/xorg-server/Manifest @@ -6,9 +6,7 @@ AUX xdm.initd-5 5721 SHA256 de1a07296c7248a90fc39212f9b586816fd2f911af71624ad13e AUX xdm.initd-8 5702 SHA256 f5f97f5ac47738f352d172185b9256c78562a91510fd3d69dbc87bb3a5d0814f SHA512 daa949c3804d8480a0d6568c02ce2b9f2c3a51f4b630762e119e3faa9d03a4632c76589cb4e6eaca26dce73fe2cbfab9a7bf81726f9c4a65c65895f224b7a12c WHIRLPOOL d292e260d1fa1b85da01a44b009b7aa3d7ff534eabd5dd691a59f2548bcdb6d86218446fa99eca3810648abaa6f033b0299fdda364b232600d1cf4087ac2d4ea AUX xdm.initd-9 5700 SHA256 96b1fe826db2b46b08e055d57bffd9405616b7980d9e40e95f19e52bc49eef3f SHA512 a4f652aff6a03d902da7ce1c706396911e853e78031d3246b764cb67930f20935d5aa912834add9f839742e824c380d2793b6b62592a10ad1bde646623b419d3 WHIRLPOOL ebddb96a2552a76f1d2f13b25dd773c822e8a0a5135f950163426477c689d0c35a74946a3323103d604783244e3a2f0bee5f5009b50828c90227370b13c433a9 AUX xorg-server-1.12-disable-acpi.patch 275 SHA256 1d3878d44e2b8690bb7d1595960d06acee7f86a6a4724236a09a74900404e953 SHA512 ca52ce0931819acf46a066116b8485c3a398a56d79826a5cdb2b3b8c7809e5163e17a5954de370805dc51a3be3c75a0333d5c17c30bf99139105d705de2fff95 WHIRLPOOL 048be09bad947a5ef02d5935534c47d08439f0ceccddcdb017908bf73aa0484a69b0e42e8e6630393323305b31a8008ef8a0f4655556082245bc5fcde254aa5b -AUX xorg-server-1.13-ia64-asm.patch 1166 SHA256 525fc255734f062758877ad45a29862dfeb1fb8e7b3a476d9410a6f0d73420a2 SHA512 51b8695af30988f99a480d2ecadc6dbe7cb46d4d9461fa006d9001200dfc1bed7390025fd1ebbadc936aee90444bb5cfd892d41c5260d5c33347ee2bdc88e78e WHIRLPOOL 46d8b55b67c82118e2a36a01c739217c6e6dd02228b0a0e730b44372b77b476f4a76fcfa8a584550cdfc87db22c26839890b7719318678aaedba7db761a39c6c -AUX xorg-server-disable-iopl.patch 8196 SHA256 762474b8cf71481a36ed654fcd846f3e8cbe08dd44f515a6148784e1e352436e SHA512 6090ff381ef12e5a90e2ee68ca55b0c1e8f7637076fe709dd38dbdb16c3cd26c1de2c2613155ca1292eb25862dd05562177671fa8a0b7e9daf21e51acee7b806 WHIRLPOOL 6acdbffb15d23869a68f49cc61e6fccf26771f336c5f788748d6d008c077695686ea677302bab8d58169bc7eedff1a14ab60c45d2ec6fb4420631c3bf58a0c5c AUX xorg-server-non-root.patch 745 SHA256 80625533d841d021b79e4b4dfcb0555f9e1caeaffa0056193195c7717c835504 SHA512 e53f4ae7d343c9b4bd7fe820a9a256b3df3539d4f312be7a9c047b631f15c56ec1c99d6ef472239826329bb99e4845b51f535f9eca910e9fb372a3c23d32ffb9 WHIRLPOOL b90b5b239917fa01458eef90fd62ec159d3e6ae199fc42c39a705f97d9a2c5f950435f5e28f5a370431b60d5d6765704e115e418368ce7e3eff1403bc7044024 AUX xorg-sets.conf 199 SHA256 1201d0337ac69d9715f4454a86dfb8a7bd1ae6f4c2578042fc08f283a997597c SHA512 910fe28f20909243044f079ff35136942b8790f4f28ac42ffc64a76b7f03cd22057087fa5e4e01192080b52c0d89000ea96d5a807c6f11f680d3f43312c5be41 WHIRLPOOL 4acac88e1688ea71df59a86a8a188b5369ad05f61e1369cd620eecd754511578e961a537ff6d0b22156f671d3485289cbc941dfe83bea24a27329b7bebb46c7d -DIST xorg-server-1.13.4.tar.bz2 5506293 SHA256 a2c969887f3c7b0f3f7d31e2ee8e91fa73ce81ba3c16d82da9150ffa302c98cf SHA512 600fe0fc77a9d6c242ec264f74624cddf5e3dd0e2eacaa65d475be638e2b4d9497bc555d753b43b24845bd6f446a811e387446f94fa98d3e75f664063a7a3d3d WHIRLPOOL 68ca7d6f121496d3a371fb4242c4e9c8fa77eae5c79a13dfec2cdbfd8f0ed82b9a97aa607923674f2e17f3380ec9a8c82d3aab9b2d8b829457a29b8330970f54 -EBUILD xorg-server-1.13.4-r131.ebuild 7225 SHA256 7cee054259d27d06a7e742ddaa33aabf87a1eefb9b16a4c3e2a2111665fe2ff5 SHA512 dcd97548d399ba70977f860e9e45ce57ebd149001d493660eb2f6fb028a7a3548c74d8285730ceddf10079da07e83a7386624500f5f62ddecf996d1e9d43a85e WHIRLPOOL af9c0789481062919249d3e854aa1cc960b2af8722ad798208e687f15bdc4e63d686b71c7035a1317fa40adf85f0e9c0635f5848dfa248d7f28b1366873a81ea +DIST xorg-server-1.14.1.tar.bz2 5509219 SHA256 a5adb02571efb7d7459dde83286a3adb77dfd1a52a7348e75d2dc72d6f8d28aa SHA512 43558eb561161f85e43a4d80c1e4e8b410a4afe5f83509b73ad9c9370705f074ec1bdbb9e4b7c994996dc245086110fa4731bba293ecd32a1e20de733dd4a686 WHIRLPOOL 3c1f71738a6310b082087f34c709da8d09b6cc6edee9dbfc671126c52f87a83bf0c271b401f64ecfb10ca8f3714d4b4720b0b62d7d82172f8ca88be7aab0d15b +EBUILD xorg-server-1.14.1-r131.ebuild 7103 SHA256 e9e6b20c8f92ab086de60c4c2233ba297789e4baa38f8f321acae027dff5daf5 SHA512 75f083135c83ab45a61c8b0b51f20ed2bbab4e7ea2970684c775e83c3f7f513e7445c429d130d3b37e4d173f06eb7b0d9b57332739d9b1fa33a60b3280751214 WHIRLPOOL cbad15d91247b1c3ba04ff2451cc9bae50d13c2361e5af2771069a669c7c5bcae5da7fcdecac6b04b314e780668faeafb6f8aa070cb7d3aaeb6503763a7d8822 diff --git a/x11-base/xorg-server/files/xorg-server-1.13-ia64-asm.patch b/x11-base/xorg-server/files/xorg-server-1.13-ia64-asm.patch deleted file mode 100644 index 0243704..0000000 --- a/x11-base/xorg-server/files/xorg-server-1.13-ia64-asm.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -ur a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h ---- a/hw/xfree86/common/compiler.h 2012-10-14 01:38:50.000000000 +0200 -+++ b/hw/xfree86/common/compiler.h 2012-12-25 14:59:05.637854813 +0100 -@@ -1351,7 +1351,7 @@ - #else /* ix86 */ - - #if !defined(__SUNPRO_C) --#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__m32r__) -+#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__m32r__) && !defined(__ia64__) - #ifdef GCCUSESGAS - - /* -@@ -1453,7 +1453,7 @@ - - #endif /* GCCUSESGAS */ - --#else /* !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__m32r__) */ -+#else /* !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__m32r__) && !defined(__ia64__) */ - - static __inline__ void - outb(unsigned short port, unsigned char val) diff --git a/x11-base/xorg-server/files/xorg-server-disable-iopl.patch b/x11-base/xorg-server/files/xorg-server-disable-iopl.patch deleted file mode 100644 index 25f7e4a..0000000 --- a/x11-base/xorg-server/files/xorg-server-disable-iopl.patch +++ /dev/null @@ -1,255 +0,0 @@ -diff -r -u a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h ---- a/hw/xfree86/common/xf86.h 2012-10-25 00:41:02.000000000 -0400 -+++ b/hw/xfree86/common/xf86.h 2013-02-06 09:54:06.560035830 -0500 -@@ -55,6 +55,7 @@ - extern _X_EXPORT int xf86DoConfigure; - extern _X_EXPORT int xf86DoShowOptions; - extern _X_EXPORT Bool xf86DoConfigurePass1; -+extern _X_EXPORT Bool xorgHWAccess; - - extern _X_EXPORT DevPrivateKeyRec xf86ScreenKeyRec; - -diff -r -u a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c ---- a/hw/xfree86/common/xf86Bus.c 2012-11-02 00:17:59.000000000 -0400 -+++ b/hw/xfree86/common/xf86Bus.c 2013-02-06 09:54:06.560035830 -0500 -@@ -127,17 +127,6 @@ - * instance of the hardware found. - */ - for (i = 0; i < xf86NumDrivers; i++) { -- xorgHWFlags flags; -- -- if (!xorgHWAccess) { -- if (!xf86DriverList[i]->driverFunc -- || !xf86DriverList[i]->driverFunc(NULL, -- GET_REQUIRED_HW_INTERFACES, -- &flags) -- || NEED_IO_ENABLED(flags)) -- continue; -- } -- - xf86CallDriverProbe(xf86DriverList[i], FALSE); - } - -diff -r -u a/hw/xfree86/common/xf86Configure.c b/hw/xfree86/common/xf86Configure.c ---- a/hw/xfree86/common/xf86Configure.c 2012-10-13 19:38:50.000000000 -0400 -+++ b/hw/xfree86/common/xf86Configure.c 2013-02-06 09:54:06.560035830 -0500 -@@ -545,41 +545,16 @@ - - free(vlist); - -- for (i = 0; i < xf86NumDrivers; i++) { -- xorgHWFlags flags; -- -- if (!xf86DriverList[i]->driverFunc -- || !xf86DriverList[i]->driverFunc(NULL, -- GET_REQUIRED_HW_INTERFACES, -- &flags) -- || NEED_IO_ENABLED(flags)) { -- xorgHWAccess = TRUE; -- break; -- } -- } -- /* Enable full I/O access */ -- if (xorgHWAccess) { -- if (!xf86EnableIO()) -- /* oops, we have failed */ -- xorgHWAccess = FALSE; -- } -+ xorgHWAccess = xf86EnableIO(); - - /* Create XF86Config file structure */ - xf86config = calloc(1, sizeof(XF86ConfigRec)); - - /* Call all of the probe functions, reporting the results. */ - for (CurrentDriver = 0; CurrentDriver < xf86NumDrivers; CurrentDriver++) { -- xorgHWFlags flags; - Bool found_screen; - DriverRec *const drv = xf86DriverList[CurrentDriver]; - -- if (!xorgHWAccess) { -- if (!drv->driverFunc -- || !drv->driverFunc(NULL, GET_REQUIRED_HW_INTERFACES, &flags) -- || NEED_IO_ENABLED(flags)) -- continue; -- } -- - found_screen = xf86CallDriverProbe(drv, TRUE); - if (found_screen && drv->Identify) { - (*drv->Identify) (0); -diff -r -u a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c ---- a/hw/xfree86/common/xf86Init.c 2012-10-13 19:38:50.000000000 -0400 -+++ b/hw/xfree86/common/xf86Init.c 2013-02-06 09:54:06.560035830 -0500 -@@ -530,23 +530,22 @@ - */ - - for (i = 0; i < xf86NumDrivers; i++) { -+ xorgHWFlags flags = HW_IO; -+ - if (xf86DriverList[i]->Identify != NULL) - xf86DriverList[i]->Identify(0); - -- if (!xorgHWAccess || !xorgHWOpenConsole) { -- xorgHWFlags flags; -+ if (xf86DriverList[i]->driverFunc) -+ xf86DriverList[i]->driverFunc(NULL, -+ GET_REQUIRED_HW_INTERFACES, -+ &flags); -+ -+ /* this is "do we want it" at this point */ -+ if (NEED_IO_ENABLED(flags)) -+ xorgHWAccess = TRUE; - -- if (!xf86DriverList[i]->driverFunc -- || !xf86DriverList[i]->driverFunc(NULL, -- GET_REQUIRED_HW_INTERFACES, -- &flags)) -- flags = HW_IO; -- -- if (NEED_IO_ENABLED(flags)) -- xorgHWAccess = TRUE; -- if (!(flags & HW_SKIP_CONSOLE)) -- xorgHWOpenConsole = TRUE; -- } -+ if (!(flags & HW_SKIP_CONSOLE)) -+ xorgHWOpenConsole = TRUE; - } - - if (xorgHWOpenConsole) -diff -r -u a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h ---- a/hw/xfree86/common/xf86Priv.h 2012-10-13 19:38:50.000000000 -0400 -+++ b/hw/xfree86/common/xf86Priv.h 2013-02-06 09:54:06.560035830 -0500 -@@ -91,7 +91,6 @@ - extern _X_EXPORT const char *xf86VisualNames[]; - extern _X_EXPORT int xf86Verbose; /* verbosity level */ - extern _X_EXPORT int xf86LogVerbose; /* log file verbosity level */ --extern _X_EXPORT Bool xorgHWAccess; - - extern _X_EXPORT RootWinPropPtr *xf86RegisteredPropertiesTable; - -diff -r -u a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c ---- a/hw/xfree86/os-support/linux/lnx_video.c 2012-10-13 19:38:51.000000000 -0400 -+++ b/hw/xfree86/os-support/linux/lnx_video.c 2013-02-06 09:47:22.710032993 -0500 -@@ -479,45 +479,39 @@ - #define __NR_pciconfig_iobase 200 - #endif - --#endif -- --Bool --xf86EnableIO(void) -+static Bool -+hwEnableIO(void) - { --#if defined(__powerpc__) - int fd; -- unsigned int ioBase_phys; --#endif -- -- if (ExtendedEnabled) -- return TRUE; -- --#if defined(__powerpc__) -- ioBase_phys = syscall(__NR_pciconfig_iobase, 2, 0, 0); -+ unsigned int ioBase_phys = syscall(__NR_pciconfig_iobase, 2, 0, 0); - - fd = open("/dev/mem", O_RDWR); - if (ioBase == NULL) { - ioBase = (volatile unsigned char *) mmap(0, 0x20000, - PROT_READ | PROT_WRITE, - MAP_SHARED, fd, ioBase_phys); --/* Should this be fatal or just a warning? */ --#if 0 -- if (ioBase == MAP_FAILED) { -- xf86Msg(X_WARNING, -- "xf86EnableIOPorts: Failed to map iobase (%s)\n", -- strerror(errno)); -- return FALSE; -- } --#endif - } - close(fd); --#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__arm__) && !defined(__m32r__) && !defined(__nds32__) -+ -+ return ioBase != MAP_FAILED; -+} -+ -+static void -+hwDisableIO(void) -+{ -+ munmap(ioBase, 0x20000); -+ ioBase = NULL; -+} -+ -+#elif defined(__i386__) || defined(__x86_64__) || defined(__ia64__) || \ -+ defined(__alpha__) -+ -+static Bool -+hwEnableIO(void) -+{ - if (ioperm(0, 1024, 1) || iopl(3)) { -- if (errno == ENODEV) -- ErrorF("xf86EnableIOPorts: no I/O ports found\n"); -- else -- FatalError("xf86EnableIOPorts: failed to set IOPL" -- " for I/O (%s)\n", strerror(errno)); -+ ErrorF("xf86EnableIOPorts: failed to set IOPL for I/O (%s)\n", -+ strerror(errno)); - return FALSE; - } - #if !defined(__alpha__) -@@ -526,27 +520,44 @@ - ioperm(0x40, 4, 0); /* trap access to the timer chip */ - ioperm(0x60, 4, 0); /* trap access to the keyboard controller */ - #endif --#endif -- ExtendedEnabled = TRUE; - - return TRUE; - } - -+static void -+hwDisableIO(void) -+{ -+ iopl(0); -+ ioperm(0, 1024, 0); -+} -+ -+#else /* non-IO architectures */ -+ -+#define hwEnableIO() TRUE -+#define hwDisableIO() do {} while (0) -+ -+#endif -+ -+Bool -+xf86EnableIO(void) -+{ -+ if (ExtendedEnabled) -+ return TRUE; -+ -+ ExtendedEnabled = hwEnableIO(); -+ -+ return ExtendedEnabled; -+} -+ - void - xf86DisableIO(void) - { - if (!ExtendedEnabled) - return; --#if defined(__powerpc__) -- munmap(ioBase, 0x20000); -- ioBase = NULL; --#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__arm__) && !defined(__s390__) && !defined(__m32r__) && !defined(__nds32__) -- iopl(0); -- ioperm(0, 1024, 0); --#endif -- ExtendedEnabled = FALSE; - -- return; -+ hwDisableIO(); -+ -+ ExtendedEnabled = FALSE; - } - - #if defined (__alpha__) diff --git a/x11-base/xorg-server/xorg-server-1.13.4-r131.ebuild b/x11-base/xorg-server/xorg-server-1.13.4-r131.ebuild deleted file mode 100644 index 4d1b68a..0000000 --- a/x11-base/xorg-server/xorg-server-1.13.4-r131.ebuild +++ /dev/null @@ -1,254 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.13.1.ebuild,v 1.13 2013/01/07 09:40:45 chithanh Exp $ - -EAPI=4 - -XORG_DOC=doc -inherit eutils xorg-2 multilib versionator flag-o-matic user -EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver" - -DESCRIPTION="X.Org X servers" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd" - -IUSE_SERVERS="dmx kdrive xnest xorg xvfb" -IUSE="${IUSE_SERVERS} ipv6 minimal nptl selinux +suid tslib +udev" - -RDEPEND=">=app-admin/eselect-opengl-1.0.8 - dev-libs/openssl - media-libs/freetype - >=x11-apps/iceauth-1.0.2 - >=x11-apps/rgb-1.0.3 - >=x11-apps/xauth-1.0.3 - x11-apps/xkbcomp - >=x11-libs/libdrm-2.4.20 - >=x11-libs/libpciaccess-0.12.901 - >=x11-libs/libXau-1.0.4 - >=x11-libs/libXdmcp-1.0.2 - >=x11-libs/libXfont-1.4.2 - >=x11-libs/libxkbfile-1.0.4 - >=x11-libs/pixman-0.21.8 - >=x11-libs/xtrans-1.2.2 - >=x11-misc/xbitmaps-1.0.1 - >=x11-misc/xkeyboard-config-2.4.1-r3 - dmx? ( - x11-libs/libXt - >=x11-libs/libdmx-1.0.99.1 - >=x11-libs/libX11-1.1.5 - >=x11-libs/libXaw-1.0.4 - >=x11-libs/libXext-1.0.99.4 - >=x11-libs/libXfixes-5.0 - >=x11-libs/libXi-1.2.99.1 - >=x11-libs/libXmu-1.0.3 - x11-libs/libXrender - >=x11-libs/libXres-1.0.3 - >=x11-libs/libXtst-1.0.99.2 - ) - kdrive? ( - >=x11-libs/libXext-1.0.5 - x11-libs/libXv - ) - !minimal? ( - >=x11-libs/libX11-1.1.5 - >=x11-libs/libXext-1.0.5 - >=media-libs/mesa-8[nptl=] - ) - tslib? ( >=x11-libs/tslib-1.0 ) - udev? ( >=virtual/udev-150 ) - >=x11-apps/xinit-1.3 - selinux? ( sec-policy/selinux-xserver )" - -DEPEND="${RDEPEND} - sys-devel/flex - >=x11-proto/bigreqsproto-1.1.0 - >=x11-proto/compositeproto-0.4 - >=x11-proto/damageproto-1.1 - >=x11-proto/fixesproto-5.0 - >=x11-proto/fontsproto-2.0.2 - >=x11-proto/glproto-1.4.16 - >=x11-proto/inputproto-2.1.99.3 - >=x11-proto/kbproto-1.0.3 - >=x11-proto/randrproto-1.4.0 - >=x11-proto/recordproto-1.13.99.1 - >=x11-proto/renderproto-0.11 - >=x11-proto/resourceproto-1.2.0 - >=x11-proto/scrnsaverproto-1.1 - >=x11-proto/trapproto-3.4.3 - >=x11-proto/videoproto-2.2.2 - >=x11-proto/xcmiscproto-1.2.0 - >=x11-proto/xextproto-7.1.99 - >=x11-proto/xf86dgaproto-2.0.99.1 - >=x11-proto/xf86rushproto-1.1.2 - >=x11-proto/xf86vidmodeproto-2.2.99.1 - >=x11-proto/xineramaproto-1.1.3 - >=x11-proto/xproto-7.0.22 - dmx? ( - >=x11-proto/dmxproto-2.2.99.1 - doc? ( - || ( - www-client/links - www-client/lynx - www-client/w3m - ) - ) - ) - !minimal? ( - >=x11-proto/xf86driproto-2.1.0 - >=x11-proto/dri2proto-2.8 - )" - -PDEPEND=" - xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )" - -REQUIRED_USE="!minimal? ( - || ( ${IUSE_SERVERS} ) - )" - -#UPSTREAMED_PATCHES=( -# "${WORKDIR}/patches/" -#) - -PATCHES=( - "${UPSTREAMED_PATCHES[@]}" - "${FILESDIR}"/${PN}-1.12-disable-acpi.patch - "${FILESDIR}"/${PN}-1.13-ia64-asm.patch - "${FILESDIR}"/xorg-server-disable-iopl.patch - "${FILESDIR}"/xorg-server-non-root.patch -) - -pkg_pretend() { - # older gcc is not supported - [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \ - die "Sorry, but gcc earlier than 4.0 will not work for xorg-server." -} - -pkg_setup() { - enewuser xorg -1 /sbin/nologin /dev/null video -} - -src_configure() { - # localstatedir is used for the log location; we need to override the default - # from ebuild.sh - # sysconfdir is used for the xorg.conf location; same applies - # NOTE: fop is used for doc generating ; and i have no idea if gentoo - # package it somewhere - XORG_CONFIGURE_OPTIONS=( - $(use_enable ipv6) - $(use_enable dmx) - $(use_enable kdrive) - $(use_enable kdrive kdrive-kbd) - $(use_enable kdrive kdrive-mouse) - $(use_enable kdrive kdrive-evdev) - $(use_enable suid install-setuid) - $(use_enable tslib) - $(use_enable !minimal record) - $(use_enable !minimal xfree86-utils) - $(use_enable !minimal install-libxf86config) - $(use_enable !minimal dri) - $(use_enable !minimal dri2) - $(use_enable !minimal glx) - $(use_enable xnest) - $(use_enable xorg) - $(use_enable xvfb) - $(use_enable nptl glx-tls) - $(use_enable udev config-udev) - $(use_with doc doxygen) - $(use_with doc xmlto) - --enable-libdrm - --sysconfdir="${EPREFIX}"/etc/X11 - --localstatedir="${EPREFIX}"/var - --with-fontrootdir="${EPREFIX}"/usr/share/fonts - --with-xkb-output="${EPREFIX}"/var/lib/xkb - --disable-config-hal - --without-dtrace - --without-fop - --with-os-vendor=Gentoo - ) - - # Xorg-server requires includes from OS mesa which are not visible for - # users of binary drivers. - mkdir -p "${T}/mesa-symlinks/GL" - for i in gl glx glxmd glxproto glxtokens; do - ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die - done - for i in glext glxext; do - ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die - done - append-cppflags "-I${T}/mesa-symlinks" - - xorg-2_src_configure -} - -src_install() { - xorg-2_src_install - - dynamic_libgl_install - - server_based_install - - if ! use minimal && use xorg; then - # Install xorg.conf.example into docs - dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example - fi - - newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup - newinitd "${FILESDIR}"/xdm.initd-9 xdm - newconfd "${FILESDIR}"/xdm.confd-4 xdm - - # install the @x11-module-rebuild set for Portage - insinto /usr/share/portage/config/sets - newins "${FILESDIR}"/xorg-sets.conf xorg.conf -} - -pkg_postinst() { - # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install) - eselect opengl set xorg-x11 --use-old - - if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then - ewarn "You must rebuild all drivers if upgrading from