1 |
scarabeus 10/10/31 11:48:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xorg-server-1.9.1-r1.ebuild |
5 |
Removed: xorg-server-1.9.1.ebuild |
6 |
Log: |
7 |
Revbump to fix bug #339988. Thanks to Chris Coleman for the solution and problem investigation. |
8 |
|
9 |
(Portage version: 2.2_rc98/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.547 x11-base/xorg-server/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.547&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.547&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.546&r2=1.547 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v |
21 |
retrieving revision 1.546 |
22 |
retrieving revision 1.547 |
23 |
diff -u -r1.546 -r1.547 |
24 |
--- ChangeLog 26 Oct 2010 07:55:12 -0000 1.546 |
25 |
+++ ChangeLog 31 Oct 2010 11:48:28 -0000 1.547 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for x11-base/xorg-server |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.546 2010/10/26 07:55:12 wired Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.547 2010/10/31 11:48:28 scarabeus Exp $ |
31 |
+ |
32 |
+*xorg-server-1.9.1-r1 (31 Oct 2010) |
33 |
+ |
34 |
+ 31 Oct 2010; Tomáš Chvátal <scarabeus@g.o> |
35 |
+ -xorg-server-1.9.1.ebuild, +xorg-server-1.9.1-r1.ebuild: |
36 |
+ Revbump to fix bug #339988. Thanks to Chris Coleman for the solution and |
37 |
+ problem investigation. |
38 |
|
39 |
*xorg-server-1.9.1 (26 Oct 2010) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 x11-base/xorg-server/xorg-server-1.9.1-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.9.1-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.9.1-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: xorg-server-1.9.1-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.9.1-r1.ebuild,v 1.1 2010/10/31 11:48:28 scarabeus Exp $ |
54 |
|
55 |
EAPI=3 |
56 |
# They generate the configure.ac with wrong version of util-macros |
57 |
# see bug #339988 |
58 |
XORG_EAUTORECONF="yes" |
59 |
inherit xorg-2 multilib versionator |
60 |
|
61 |
EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver" |
62 |
|
63 |
OPENGL_DIR="xorg-x11" |
64 |
|
65 |
DESCRIPTION="X.Org X servers" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
67 |
|
68 |
IUSE_SERVERS="dmx kdrive xorg" |
69 |
IUSE="${IUSE_SERVERS} doc ipv6 minimal nptl tslib +udev" |
70 |
RDEPEND=">=app-admin/eselect-opengl-1.0.8 |
71 |
dev-libs/openssl |
72 |
media-libs/freetype |
73 |
>=x11-apps/iceauth-1.0.2 |
74 |
>=x11-apps/rgb-1.0.3 |
75 |
>=x11-apps/xauth-1.0.3 |
76 |
x11-apps/xkbcomp |
77 |
>=x11-libs/libpciaccess-0.10.3 |
78 |
>=x11-libs/libXau-1.0.4 |
79 |
>=x11-libs/libXdmcp-1.0.2 |
80 |
>=x11-libs/libXfont-1.4.2 |
81 |
>=x11-libs/libxkbfile-1.0.4 |
82 |
>=x11-libs/pixman-0.15.20 |
83 |
>=x11-libs/xtrans-1.2.2 |
84 |
>=x11-misc/xbitmaps-1.0.1 |
85 |
>=x11-misc/xkeyboard-config-1.4 |
86 |
dmx? ( |
87 |
x11-libs/libXt |
88 |
>=x11-libs/libdmx-1.0.99.1 |
89 |
>=x11-libs/libX11-1.1.5 |
90 |
>=x11-libs/libXaw-1.0.4 |
91 |
>=x11-libs/libXext-1.0.5 |
92 |
>=x11-libs/libXfixes-4.0.3 |
93 |
>=x11-libs/libXi-1.2.99.1 |
94 |
>=x11-libs/libXmu-1.0.3 |
95 |
>=x11-libs/libXres-1.0.3 |
96 |
>=x11-libs/libXtst-1.0.3 |
97 |
) |
98 |
kdrive? ( |
99 |
>=x11-libs/libXext-1.0.5 |
100 |
x11-libs/libXv |
101 |
) |
102 |
!minimal? ( |
103 |
>=x11-libs/libX11-1.1.5 |
104 |
>=x11-libs/libXext-1.0.5 |
105 |
>=media-libs/mesa-7.8_rc[nptl=] |
106 |
) |
107 |
tslib? ( >=x11-libs/tslib-1.0 x11-proto/xcalibrateproto ) |
108 |
udev? ( >=sys-fs/udev-150 )" |
109 |
|
110 |
DEPEND="${RDEPEND} |
111 |
sys-devel/flex |
112 |
>=x11-proto/bigreqsproto-1.1.0 |
113 |
>=x11-proto/compositeproto-0.4 |
114 |
>=x11-proto/damageproto-1.1 |
115 |
>=x11-proto/fixesproto-4.1 |
116 |
>=x11-proto/fontsproto-2.0.2 |
117 |
>=x11-proto/glproto-1.4.11 |
118 |
>=x11-proto/inputproto-1.9.99.902 |
119 |
>=x11-proto/kbproto-1.0.3 |
120 |
>=x11-proto/randrproto-1.2.99.3 |
121 |
>=x11-proto/recordproto-1.13.99.1 |
122 |
>=x11-proto/renderproto-0.11 |
123 |
>=x11-proto/resourceproto-1.0.2 |
124 |
>=x11-proto/scrnsaverproto-1.1 |
125 |
>=x11-proto/trapproto-3.4.3 |
126 |
>=x11-proto/videoproto-2.2.2 |
127 |
>=x11-proto/xcmiscproto-1.2.0 |
128 |
>=x11-proto/xextproto-7.0.99.3 |
129 |
>=x11-proto/xf86dgaproto-2.0.99.1 |
130 |
>=x11-proto/xf86rushproto-1.1.2 |
131 |
>=x11-proto/xf86vidmodeproto-2.2.99.1 |
132 |
>=x11-proto/xineramaproto-1.1.3 |
133 |
>=x11-proto/xproto-7.0.17 |
134 |
dmx? ( >=x11-proto/dmxproto-2.2.99.1 ) |
135 |
doc? ( |
136 |
>=app-doc/doxygen-1.6.1 |
137 |
app-text/xmlto |
138 |
) |
139 |
!minimal? ( |
140 |
>=x11-proto/xf86driproto-2.1.0 |
141 |
>=x11-proto/dri2proto-2.3 |
142 |
>=x11-libs/libdrm-2.4.20 |
143 |
)" |
144 |
|
145 |
PDEPEND=" |
146 |
>=x11-apps/xinit-1.2.1-r1 |
147 |
xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )" |
148 |
|
149 |
EPATCH_FORCE="yes" |
150 |
EPATCH_SUFFIX="patch" |
151 |
|
152 |
# These have been sent upstream |
153 |
UPSTREAMED_PATCHES=( |
154 |
# "${WORKDIR}/patches/" |
155 |
|
156 |
# http://lists.x.org/archives/xorg-devel/2010-October/014150.html |
157 |
"${FILESDIR}"/"${PN}"-1.9-xinerama-crash-fix.patch |
158 |
) |
159 |
|
160 |
PATCHES=( |
161 |
"${UPSTREAMED_PATCHES[@]}" |
162 |
"${FILESDIR}"/${PN}-disable-acpi.patch |
163 |
"${FILESDIR}"/${PN}-1.9-nouveau-default.patch |
164 |
|
165 |
# Fixes for bug #318609 |
166 |
"${FILESDIR}"/0001-Fix-tslib-check-fallback-to-set-TSLIB_LIBS.patch |
167 |
"${FILESDIR}"/0002-Fix-linking-with-tslib-with-Wl-as-needed.patch |
168 |
) |
169 |
|
170 |
pkg_setup() { |
171 |
xorg-2_pkg_setup |
172 |
|
173 |
use minimal || ensure_a_server_is_building |
174 |
|
175 |
# localstatedir is used for the log location; we need to override the default |
176 |
# from ebuild.sh |
177 |
# sysconfdir is used for the xorg.conf location; same applies |
178 |
# --enable-install-setuid needed because sparcs default off |
179 |
# NOTE: fop is used for doc generating ; and i have no idea if gentoo |
180 |
# package it somewhere |
181 |
CONFIGURE_OPTIONS=" |
182 |
$(use_enable ipv6) |
183 |
$(use_enable dmx) |
184 |
$(use_enable kdrive) |
185 |
$(use_enable kdrive kdrive-kbd) |
186 |
$(use_enable kdrive kdrive-mouse) |
187 |
$(use_enable kdrive kdrive-evdev) |
188 |
$(use_enable tslib) |
189 |
$(use_enable tslib xcalibrate) |
190 |
$(use_enable !minimal xvfb) |
191 |
$(use_enable !minimal xnest) |
192 |
$(use_enable !minimal record) |
193 |
$(use_enable !minimal xfree86-utils) |
194 |
$(use_enable !minimal install-libxf86config) |
195 |
$(use_enable !minimal dri) |
196 |
$(use_enable !minimal dri2) |
197 |
$(use_enable !minimal glx) |
198 |
$(use_enable xorg) |
199 |
$(use_enable nptl glx-tls) |
200 |
$(use_enable udev config-udev) |
201 |
$(use_with doc doxygen) |
202 |
$(use_with doc xmlto) |
203 |
--sysconfdir=/etc/X11 |
204 |
--localstatedir=/var |
205 |
--enable-install-setuid |
206 |
--with-fontrootdir=/usr/share/fonts |
207 |
--with-xkb-output=/var/lib/xkb |
208 |
--disable-config-hal |
209 |
--without-dtrace |
210 |
--without-fop |
211 |
--with-os-vendor=Gentoo |
212 |
${conf_opts}" |
213 |
|
214 |
# Xorg-server requires includes from OS mesa which are not visible for |
215 |
# users of binary drivers. |
216 |
# Due to the limitations of CONFIGURE_OPTIONS, we have to export this |
217 |
mkdir -p "${T}/mesa-symlinks/GL" |
218 |
for i in gl glx glxmd glxproto glxtokens; do |
219 |
ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die |
220 |
done |
221 |
for i in glext glxext; do |
222 |
ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die |
223 |
done |
224 |
append-cppflags "-I${T}/mesa-symlinks" |
225 |
|
226 |
# (#121394) Causes window corruption |
227 |
filter-flags -fweb |
228 |
|
229 |
# Incompatible with GCC 3.x SSP on x86, bug #244352 |
230 |
if use x86 ; then |
231 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
232 |
filter-flags -fstack-protector |
233 |
fi |
234 |
fi |
235 |
|
236 |
# Incompatible with GCC 3.x CPP, bug #314615 |
237 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
238 |
ewarn "GCC 3.x C preprocessor may cause build failures. Use GCC 4.x" |
239 |
ewarn "or set CPP=cpp-4.3.4 (replace with the actual installed version)" |
240 |
fi |
241 |
|
242 |
# detect if we should inform user about ebuild breakage |
243 |
if ! has_version "x11-base/xorg-server" || |
244 |
has_version "<x11-base/xorg-server-$(get_version_component_range 1-2)"; then |
245 |
INFO="yes" |
246 |
fi |
247 |
} |
248 |
|
249 |
src_install() { |
250 |
xorg-2_src_install |
251 |
|
252 |
dynamic_libgl_install |
253 |
|
254 |
server_based_install |
255 |
|
256 |
if ! use minimal && use xorg; then |
257 |
# Install xorg.conf.example into docs |
258 |
dodoc hw/xfree86/xorg.conf.example \ |
259 |
|| die "couldn't install xorg.conf.example" |
260 |
fi |
261 |
|
262 |
newinitd "${FILESDIR}"/xdm.initd-3 xdm || die "initd file install failed" |
263 |
newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup || die |
264 |
newconfd "${FILESDIR}"/xdm.confd-3 xdm || die |
265 |
|
266 |
# install the @x11-module-rebuild set for Portage |
267 |
insinto /usr/share/portage/config/sets |
268 |
newins "${FILESDIR}"/xorg-sets.conf xorg.conf || die |
269 |
} |
270 |
|
271 |
pkg_postinst() { |
272 |
# sets up libGL and DRI2 symlinks if needed (ie, on a fresh install) |
273 |
eselect opengl set --use-old xorg-x11 |
274 |
|
275 |
if [[ ${INFO} = yes ]]; then |
276 |
einfo "You should consider reading upgrade guide for this release:" |
277 |
einfo " http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-$(get_version_component_range 1-2)-upgrade-guide.xml" |
278 |
echo |
279 |
ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)" |
280 |
ewarn "because the ABI changed. If you cannot start X because" |
281 |
ewarn "of module version mismatch errors, this is your problem." |
282 |
|
283 |
echo |
284 |
ewarn "You can generate a list of all installed packages in the x11-drivers" |
285 |
ewarn "category using this command:" |
286 |
ewarn " emerge portage-utils; qlist -I -C x11-drivers/" |
287 |
fi |
288 |
} |
289 |
|
290 |
pkg_postrm() { |
291 |
# Get rid of module dir to ensure opengl-update works properly |
292 |
if ! has_version x11-base/xorg-server; then |
293 |
if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
294 |
rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules |
295 |
fi |
296 |
fi |
297 |
} |
298 |
|
299 |
dynamic_libgl_install() { |
300 |
# next section is to setup the dynamic libGL stuff |
301 |
ebegin "Moving GL files for dynamic switching" |
302 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
303 |
local x="" |
304 |
for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do |
305 |
if [ -f ${x} -o -L ${x} ]; then |
306 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
307 |
fi |
308 |
done |
309 |
eend 0 |
310 |
} |
311 |
|
312 |
server_based_install() { |
313 |
if ! use xorg; then |
314 |
rm "${D}"/usr/share/man/man1/Xserver.1x \ |
315 |
"${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
316 |
"${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
317 |
"${D}"/usr/share/man/man1/Xserver.1x |
318 |
fi |
319 |
} |
320 |
|
321 |
ensure_a_server_is_building() { |
322 |
for server in ${IUSE_SERVERS}; do |
323 |
use ${server} && return; |
324 |
done |
325 |
eerror "You need to specify at least one server to build." |
326 |
eerror "Valid servers are: ${IUSE_SERVERS}." |
327 |
die "No servers were specified to build." |
328 |
} |