diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-01-16 00:43:38 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-01-16 00:43:38 +0000 |
commit | 3d92df0956bdf04c2e10ad64fe0ad9990ae64408 (patch) | |
tree | 18b85c547131ea7476b1276504bd27586d5d0c17 /x11-base | |
parent | Use die for file removal. (diff) | |
download | historical-3d92df0956bdf04c2e10ad64fe0ad9990ae64408.tar.gz historical-3d92df0956bdf04c2e10ad64fe0ad9990ae64408.tar.bz2 historical-3d92df0956bdf04c2e10ad64fe0ad9990ae64408.zip |
Fix building with USE="minimal -xorg", bug #381771. Add patch to properly cast from pointer to int, bug #399033.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'x11-base')
6 files changed, 174 insertions, 28 deletions
diff --git a/x11-base/xorg-server/ChangeLog b/x11-base/xorg-server/ChangeLog index 17e1a66b7f79..3665075dea9e 100644 --- a/x11-base/xorg-server/ChangeLog +++ b/x11-base/xorg-server/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-base/xorg-server # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.635 2012/01/02 09:44:45 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.636 2012/01/16 00:43:38 chithanh Exp $ + + 16 Jan 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + xorg-server-1.11.2-r2.ebuild, xorg-server-1.11.3.ebuild, + +files/xorg-server-1.11-disable-tests-without-ddx.patch, + +files/xorg-server-1.11-pointer-to-int-cast.patch: + Fix building with USE="minimal -xorg", bug #381771. Add patch to properly + cast from pointer to int, bug #399033. 02 Jan 2012; Andreas K. Huettel <dilfridge@gentoo.org> +ChangeLog-2009: Split ChangeLog. diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest index f8a34faacdb1..af2bfec4dd4a 100644 --- a/x11-base/xorg-server/Manifest +++ b/x11-base/xorg-server/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - AUX xdm-setup.initd-1 346 RMD160 e68512e71adbf15743f789bb6b5587b07a9812a3 SHA1 f25303b8bcef0c5d2eb61517d5347b4b88736cd4 SHA256 942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406 AUX xdm.confd-3 853 RMD160 363cd18f760650923e16579bf55f661e93dad63b SHA1 0027b98f2aeb5c43219fa4f9b7d81a05101bec6f SHA256 00af0d957ff1b4f31c1aa4701d93a54080408548792deafac5414cbfa13b89ec AUX xdm.confd-4 562 RMD160 3440e564c5d52ec1d30902c870daf282698f04c4 SHA1 630b8e05706050a6b7260d2a1a19d6d54cba59fa SHA256 9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8 @@ -8,6 +5,8 @@ AUX xdm.initd-3 5662 RMD160 c215ee58cf2ab3b336f106d3526256abf98f982e SHA1 67aa75 AUX xdm.initd-4 5728 RMD160 8e61ff132820f17113156ef0fd629b83da421c7a SHA1 2e3abdb000fb1cb11024e6101c4bfea6dce9df0c SHA256 d3094433437bcd39d571d6f11bc3d4bf56843864891c45252bd687635f9bd1e4 AUX xdm.initd-5 5721 RMD160 785b7b3a8fc15439ed650d4ebb4f57cd28063ea2 SHA1 91905d67069cd82b4f39f6a7997ce3763fc70dae SHA256 de1a07296c7248a90fc39212f9b586816fd2f911af71624ad13ef55bf8a0fefa AUX xorg-cve-2011-4028+4029.patch 671 RMD160 f9c607b5bfe20259f2adb320b6a1a0819f59f7ab SHA1 84797b66434aa05acc9f6881050d1b46487caf77 SHA256 76b9bb4a928fa7179eb52ab3b2bd2ef6d7db83e0543ba80de37cdab05efa601c +AUX xorg-server-1.11-disable-tests-without-ddx.patch 2184 RMD160 4648fafbadebc3bc72f6a7fcac56d4e0e7fbf8ef SHA1 381c6a485505641a41337508be50cc829b17aca8 SHA256 e3b92e31843ff5046a96d3c4eb6ce67ab00e6422ffe92e7e7d13424b67dc844e +AUX xorg-server-1.11-pointer-to-int-cast.patch 2663 RMD160 26d2262f591cf5951756cd6a804fef01a33a6663 SHA1 5a70178b5f51bd949cc1c9afd725a10b0bf00277 SHA256 22409e5f93826b4292cd69786bb032e8843f74e115640488ed31842ffb8784d6 AUX xorg-server-1.12-disable-acpi.patch 275 RMD160 01244888695fc7928c81c06cc1f4fcd3625fc9de SHA1 555a4d16f38ed54ed9efa6fff9ec230d11362e30 SHA256 1d3878d44e2b8690bb7d1595960d06acee7f86a6a4724236a09a74900404e953 AUX xorg-server-1.9-nouveau-default.patch 916 RMD160 0ebdf0fb76364b7fd0c520c3a2f7cc2cc1a83446 SHA1 daddde0f4f4276e12b87354d2e6825ed5c74c6eb SHA256 a7ff421dd928e3025194279f9afb7cc033a896b3417abe339741e9c6ed4b54ea AUX xorg-server-disable-acpi.patch 663 RMD160 7074ca5276369b746ea7606a0795232aafe07c90 SHA1 d300a37dd2e0a8aa3965948c13f6995e6767841d SHA256 5b3cc7c8bea18fe3ba81851d2846d19ffd8fab9cdf5d8f3a274846847e734200 @@ -20,27 +19,10 @@ DIST xorg-server-1.11.99.901.tar.bz2 5126708 RMD160 4446ceece27f2b3397e53a6b7156 DIST xorg-server-1.9.5.tar.bz2 5172054 RMD160 6383b126ed313943fc5cb0939fdae4a737aabb70 SHA1 03be24d6906f3ed3237057a5a7df2b02723c9749 SHA256 3fc775097c4f0e8f731447d0183ee709ae37c44c0c286ba00a4b028274e029dc EBUILD xorg-server-1.10.4-r1.ebuild 7127 RMD160 8175211bb28ac4559c8f229c947ffbf0a716e886 SHA1 dec56fcce06846cd3eeb1836a0bc0d4f90810380 SHA256 f3e3e1e78106b8f9f2333d74e5e531b9c6a2daaf8ee8634644f8088d5b7f5957 EBUILD xorg-server-1.11.2-r1.ebuild 6777 RMD160 323346f4cc0a7ea1998d6cba47e5444657a6e728 SHA1 4420142f5aee2881512952820b9e7eed37068f70 SHA256 30d07e37c4658eee0a4891997d20a0434b2ea779e2f1dc4bb6e1cbb4c5ea6abe -EBUILD xorg-server-1.11.2-r2.ebuild 6771 RMD160 a687e6533dad106053e48c0c1944b58627dbceb1 SHA1 69f0fd1be9d1293759327ef1541dfb3d97ddabc8 SHA256 1c41dc4c82ea489782c346cdab20b89adcbe1f3f497b1f4889bbaf6da8e7ee41 -EBUILD xorg-server-1.11.3.ebuild 6774 RMD160 f59b89bb0fb5ce63742157649df515ebed776f71 SHA1 9e17ed90a238ec4449647392048b8db511d07d43 SHA256 39037430ee5d90220c3adf7e4d15d650e01b2fa726eba2e99f9e3f3027611d2c +EBUILD xorg-server-1.11.2-r2.ebuild 6904 RMD160 f72d7f81f983c7b039a127e068beb8e33a7a7506 SHA1 05a3bf2e49db4f04fa72d896a4474c90d5ee79c5 SHA256 8791260c653024392bc4b5ba22ca55d1f256bea105e925053ddaaafb990e3f14 +EBUILD xorg-server-1.11.3.ebuild 6905 RMD160 170ef4fe616b3d6451020cd59bae9565c7b5f801 SHA1 a4b79771978ea1647608047bf66be6a4cb218798 SHA256 90504e54bda88b2c85025a02bb9fc42556f8ad253f4c941309ab86a6bd61c704 EBUILD xorg-server-1.11.99.901.ebuild 6737 RMD160 38f3cb3ded399e048a53c5ceb14e75285713a46b SHA1 e901c56c4fb71ac19de4eb9e671435ca8054cde7 SHA256 06937df89aadb121fd43645ee3002a978c06abdfd7fd4a2f0b813f2a0a2c3ec4 EBUILD xorg-server-1.9.5-r1.ebuild 7850 RMD160 e2c14bf529edbafa9452855ca893a45e510d8625 SHA1 c52c0d51c61452fb83ea92cf20978cc2374ab23e SHA256 270f6563b0cf3b96b86e94a5d428ebf1b20be22bfe2a33b76a4463c79c6120c3 -MISC ChangeLog 25445 RMD160 55253d3ca178a96c885a9adff8710aa02c3cef09 SHA1 ebd165f03a766e1d79f9733b5ec5fa062528353c SHA256 01093d7d39995900c674820f68f2556212831e5afb91adde083b2486e8a3d2ab +MISC ChangeLog 25802 RMD160 8831f9293bf717cda580e40ec951b9a72a86234c SHA1 8db3fb9a816f9799f2361121a24aaf23d0484539 SHA256 ae5c52879df1fec1529bd1c61989862a0a03cf57cbfd26604cab9ab30c8620e7 MISC ChangeLog-2009 109242 RMD160 49689c8b1497d684a401769d514b6878f3630361 SHA1 aba977db6bc09bec3d0cafdefc2f0e480beabc8e SHA256 76119bd85f64b74b4f8129911eef944e8f1baa3ae38bbfb65bcd6197a6f58c88 MISC metadata.xml 537 RMD160 36f5ed1e9869e06c50c882193aad04d9553fbab9 SHA1 505782abd459abe3ba35969cc190675e00c65408 SHA256 38cd6ed34cf5447cbc3e0a9c4a9e24d5af12e2a12b80b106821bb19e69d2281f ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) - -iQIcBAEBCgAGBQJPAX0HAAoJEEb+UGWnxTyHp7sP/ia1oG2mzeEw5kChOTS5tgBJ -4XhtrvfAZrJCE/U1bEKHnxaTmVJjQGqr67q95TSnehibD5c1GJRrjB2A4GYfoZAW -og7wT57+sIWHekhbkbuVKfskDRzZDCVBHevgrbXhyNnlHkD5PkwlAqkObkJH1Ba3 -GEBuc7cKLXPsm8sRv7LgApC5jA3fU9Nh652PezT/2do9iuX8haPpDvI6Qukh/9aO -aca/wKmwPRIo+SjGt+DWLJLs20jyzWWbkWWP+VSdtbEFHDa38Hl4Tk4+/2JQTGwH -UMdaboQRvYsxgtHykad+iv3tXYbGVwGTjGSEUKePm4branQn1ef7ujnfogSqoJYi -D+7oRDX0ExcdojAtSjEpLpc4EO3iXEDwfbSX8o682SuO7NJqRARK5eK5KbOfBv6Q -xfGDjEH4VQqIhKYnRZmLPxANeImLu3piVZe4eCCxk/MwiUZSRzcadOpAWfCH1np5 -MTg9U1g/15rSTbfpniTNeID/IQXYv5bwDgfHuFYKIZX6tw24C2nGHh27tTkjVbXc -wmGOhpOs8mvW8GX5E9jECaG9scTcnXZWb3njbHhZeASUyKfGzTXtvR9vnBAqiX8r -O8fCJkTeJhevMXsTY8qAKzNBuKpeY/wGaLuq+4tzagPxgf+0va+AFbMeiX4fC0og -eTeT/gbEVw+NTv6NxXvE -=CREm ------END PGP SIGNATURE----- diff --git a/x11-base/xorg-server/files/xorg-server-1.11-disable-tests-without-ddx.patch b/x11-base/xorg-server/files/xorg-server-1.11-disable-tests-without-ddx.patch new file mode 100644 index 000000000000..facb9727a7d2 --- /dev/null +++ b/x11-base/xorg-server/files/xorg-server-1.11-disable-tests-without-ddx.patch @@ -0,0 +1,64 @@ +diff -ur a/test/Makefile.am b/test/Makefile.am +--- a/test/Makefile.am 2011-07-15 15:26:40.000000000 +0200 ++++ b/test/Makefile.am 2012-01-02 01:03:15.232740535 +0100 +@@ -1,21 +1,32 @@ + if ENABLE_UNIT_TESTS + if HAVE_LD_WRAP +-SUBDIRS= . xi2 +-noinst_PROGRAMS = xkb input xtest list misc fixes ++SUBDIRS= . ++noinst_PROGRAMS = list ++if XORG ++# Tests that require at least some DDX functions in order to fully link ++# For now, requires xf86 ddx, could be adjusted to use another ++SUBDIRS += xi2 ++noinst_PROGRAMS += xkb input xtest misc fixes ++endif + check_LTLIBRARIES = libxservertest.la + + TESTS=$(noinst_PROGRAMS) + + AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@ +-INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser \ +- -I$(top_srcdir)/miext/cw -I$(top_srcdir)/hw/xfree86/ddc \ ++INCLUDES = $(XORG_INCS) -I$(top_srcdir)/miext/cw ++if XORG ++INCLUDES += -I$(top_srcdir)/hw/xfree86/parser \ ++ -I$(top_srcdir)/hw/xfree86/ddc \ + -I$(top_srcdir)/hw/xfree86/i2c -I$(top_srcdir)/hw/xfree86/modes \ + -I$(top_srcdir)/hw/xfree86/ramdac ++endif + TEST_LDADD=libxservertest.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) + ++if XORG + if SPECIAL_DTRACE_OBJECTS + TEST_LDADD += $(OS_LIB) $(DIX_LIB) + endif ++endif + + xkb_LDADD=$(TEST_LDADD) + input_LDADD=$(TEST_LDADD) +@@ -24,9 +35,10 @@ + misc_LDADD=$(TEST_LDADD) + fixes_LDADD=$(TEST_LDADD) + ++libxservertest_la_LIBADD = $(XSERVER_LIBS) ++if XORG + nodist_libxservertest_la_SOURCES = $(top_builddir)/hw/xfree86/sdksyms.c +-libxservertest_la_LIBADD = \ +- $(XSERVER_LIBS) \ ++libxservertest_la_LIBADD += \ + $(top_builddir)/hw/xfree86/loader/libloader.la \ + $(top_builddir)/hw/xfree86/os-support/libxorgos.la \ + $(top_builddir)/hw/xfree86/common/libcommon.la \ +@@ -36,7 +48,9 @@ + $(top_builddir)/hw/xfree86/ramdac/libramdac.la \ + $(top_builddir)/hw/xfree86/ddc/libddc.la \ + $(top_builddir)/hw/xfree86/i2c/libi2c.la \ +- $(top_builddir)/hw/xfree86/dixmods/libxorgxkb.la \ ++ $(top_builddir)/hw/xfree86/dixmods/libxorgxkb.la ++endif ++libxservertest_la_LIBADD += \ + $(top_builddir)/mi/libmi.la \ + $(top_builddir)/os/libos.la \ + @XORG_LIBS@ diff --git a/x11-base/xorg-server/files/xorg-server-1.11-pointer-to-int-cast.patch b/x11-base/xorg-server/files/xorg-server-1.11-pointer-to-int-cast.patch new file mode 100644 index 000000000000..beb94a9d2f8a --- /dev/null +++ b/x11-base/xorg-server/files/xorg-server-1.11-pointer-to-int-cast.patch @@ -0,0 +1,87 @@ +From b2a4c09507b267495ea5e4c2e05373b323c80edf Mon Sep 17 00:00:00 2001 +From: Jeremy Huddleston <jeremyhu@apple.com> +Date: Sat, 17 Dec 2011 20:56:59 +0000 +Subject: kdrive/linux: Fix compilation with -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast + +Reported-by: Arkadiusz Miśkiewicz <arekm@maven.pl> +Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> +Reviewed-by: Jamey Sharp <jamey@minilop.net> +(cherry picked from commit 1deede3c48d5ac91f50774c79f02afc6e036614e) +--- +diff --git a/hw/kdrive/linux/keyboard.c b/hw/kdrive/linux/keyboard.c +index f5f9d9b..ba2637b 100644 +--- a/hw/kdrive/linux/keyboard.c ++++ b/hw/kdrive/linux/keyboard.c +@@ -692,7 +692,7 @@ LinuxKeyboardEnable (KdKeyboardInfo *ki) + return !Success; + + fd = LinuxConsoleFd; +- ki->driverPrivate = (void *) fd; ++ ki->driverPrivate = (void *) (intptr_t) fd; + + ioctl (fd, KDGKBMODE, &LinuxKbdTrans); + tcgetattr (fd, &LinuxTermios); +@@ -724,7 +724,7 @@ LinuxKeyboardDisable (KdKeyboardInfo *ki) + if (!ki) + return; + +- fd = (int) ki->driverPrivate; ++ fd = (int) (intptr_t) ki->driverPrivate; + + KdUnregisterFd(ki, fd, FALSE); + ioctl(fd, KDSKBMODE, LinuxKbdTrans); +@@ -753,7 +753,7 @@ LinuxKeyboardLeds (KdKeyboardInfo *ki, int leds) + if (!ki) + return; + +- ioctl ((int)ki->driverPrivate, KDSETLED, leds & 7); ++ ioctl ((int)(intptr_t)ki->driverPrivate, KDSETLED, leds & 7); + } + + KdKeyboardDriver LinuxKeyboardDriver = { +diff --git a/hw/kdrive/linux/ms.c b/hw/kdrive/linux/ms.c +index b6151cd..176e125 100644 +--- a/hw/kdrive/linux/ms.c ++++ b/hw/kdrive/linux/ms.c +@@ -152,7 +152,7 @@ MsEnable (KdPointerInfo *pi) + } + if (KdRegisterFd (port, MsRead, pi)) + return TRUE; +- pi->driverPrivate = (void *)port; ++ pi->driverPrivate = (void *)(intptr_t)port; + + return Success; + +@@ -164,7 +164,7 @@ MsEnable (KdPointerInfo *pi) + static void + MsDisable (KdPointerInfo *pi) + { +- KdUnregisterFd (pi, (int)pi->driverPrivate, TRUE); ++ KdUnregisterFd (pi, (int)(intptr_t)pi->driverPrivate, TRUE); + } + + static void +diff --git a/hw/kdrive/linux/ps2.c b/hw/kdrive/linux/ps2.c +index 465b963..b62d769 100644 +--- a/hw/kdrive/linux/ps2.c ++++ b/hw/kdrive/linux/ps2.c +@@ -159,7 +159,7 @@ Ps2Enable (KdPointerInfo *pi) + return BadAlloc; + } + +- pi->driverPrivate = (void *)fd; ++ pi->driverPrivate = (void *)(intptr_t)fd; + + return Success; + } +@@ -168,7 +168,7 @@ Ps2Enable (KdPointerInfo *pi) + static void + Ps2Disable (KdPointerInfo *pi) + { +- KdUnregisterFd (pi, (int)pi->driverPrivate, TRUE); ++ KdUnregisterFd (pi, (int)(intptr_t)pi->driverPrivate, TRUE); + } + + static void +-- +cgit v0.9.0.2-2-gbebe diff --git a/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild b/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild index 19d01161bb60..095f2648f9dc 100644 --- a/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild +++ b/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild @@ -1,10 +1,11 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 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.11.2-r2.ebuild,v 1.5 2011/12/27 21:01:04 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild,v 1.6 2012/01/16 00:43:38 chithanh Exp $ EAPI=4 XORG_DOC=doc +XORG_EAUTORECONF=yes inherit xorg-2 multilib versionator EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver" @@ -111,6 +112,8 @@ PATCHES=( "${UPSTREAMED_PATCHES[@]}" "${FILESDIR}"/${PN}-disable-acpi.patch "${FILESDIR}"/${PN}-1.9-nouveau-default.patch + "${FILESDIR}"/${PN}-1.11-disable-tests-without-ddx.patch + "${FILESDIR}"/${PN}-1.11-pointer-to-int-cast.patch ) pkg_pretend() { diff --git a/x11-base/xorg-server/xorg-server-1.11.3.ebuild b/x11-base/xorg-server/xorg-server-1.11.3.ebuild index 1dee776ef416..dfb040d2154a 100644 --- a/x11-base/xorg-server/xorg-server-1.11.3.ebuild +++ b/x11-base/xorg-server/xorg-server-1.11.3.ebuild @@ -1,10 +1,11 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 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.11.3.ebuild,v 1.1 2011/12/19 01:40:00 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild,v 1.2 2012/01/16 00:43:38 chithanh Exp $ EAPI=4 XORG_DOC=doc +XORG_EAUTORECONF=yes inherit xorg-2 multilib versionator EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver" @@ -111,6 +112,8 @@ PATCHES=( "${UPSTREAMED_PATCHES[@]}" "${FILESDIR}"/${PN}-disable-acpi.patch "${FILESDIR}"/${PN}-1.9-nouveau-default.patch + "${FILESDIR}"/${PN}-1.11-disable-tests-without-ddx.patch + "${FILESDIR}"/${PN}-1.11-pointer-to-int-cast.patch ) pkg_pretend() { |