Gentoo Archives: gentoo-commits

From: "Donnie Berkholz (dberkholz)" <dberkholz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-base/xorg-server: ChangeLog xorg-server-1.3.0.0-r1.ebuild
Date: Sun, 30 Sep 2007 07:49:18
Message-Id: E1IbtPg-0008NC-4e@stork.gentoo.org
1 dberkholz 07/09/30 07:40:28
2
3 Modified: ChangeLog
4 Added: xorg-server-1.3.0.0-r1.ebuild
5 Log:
6 (#191964) Security bump for local exploit in the Composite extension, which is disabled by default.
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.276 x11-base/xorg-server/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.276&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.276&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.275&r2=1.276
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v
19 retrieving revision 1.275
20 retrieving revision 1.276
21 diff -u -r1.275 -r1.276
22 --- ChangeLog 28 Sep 2007 05:03:32 -0000 1.275
23 +++ ChangeLog 30 Sep 2007 07:40:27 -0000 1.276
24 @@ -1,6 +1,14 @@
25 # ChangeLog for x11-base/xorg-server
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.275 2007/09/28 05:03:32 kumba Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.276 2007/09/30 07:40:27 dberkholz Exp $
29 +
30 +*xorg-server-1.3.0.0-r1 (30 Sep 2007)
31 +
32 + 30 Sep 2007; Donnie Berkholz <dberkholz@g.o>;
33 + +files/use-composite-for-unequal-depths.patch,
34 + +xorg-server-1.3.0.0-r1.ebuild:
35 + (#191964) Security bump for local exploit in the Composite extension, which
36 + is disabled by default.
37
38 28 Sep 2007; Joshua Kinard <kumba@g.o> xorg-server-1.3.0.0.ebuild:
39 Stable on mips, per #191615.
40
41
42
43 1.1 x11-base/xorg-server/xorg-server-1.3.0.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.3.0.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.3.0.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: xorg-server-1.3.0.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.3.0.0-r1.ebuild,v 1.1 2007/09/30 07:40:27 dberkholz Exp $
53
54 # Must be before x-modular eclass is inherited
55 SNAPSHOT="yes"
56
57 inherit x-modular multilib
58
59 OPENGL_DIR="xorg-x11"
60
61 MESA_PN="Mesa"
62 MESA_PV="6.5.2"
63 MESA_P="${MESA_PN}-${MESA_PV}"
64 MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
65
66 SRC_URI="${SRC_URI}
67 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
68 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2"
69 DESCRIPTION="X.Org X servers"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
71 IUSE_INPUT_DEVICES="
72 input_devices_acecad
73 input_devices_aiptek
74 input_devices_calcomp
75 input_devices_citron
76 input_devices_digitaledge
77 input_devices_dmc
78 input_devices_dynapro
79 input_devices_elo2300
80 input_devices_elographics
81 input_devices_evdev
82 input_devices_fpit
83 input_devices_hyperpen
84 input_devices_jamstudio
85 input_devices_joystick
86 input_devices_keyboard
87 input_devices_magellan
88 input_devices_microtouch
89 input_devices_mouse
90 input_devices_mutouch
91 input_devices_palmax
92 input_devices_penmount
93 input_devices_spaceorb
94 input_devices_summa
95 input_devices_tek4957
96 input_devices_ur98
97 input_devices_vmmouse
98 input_devices_void
99
100 input_devices_synaptics
101 input_devices_wacom"
102 IUSE_VIDEO_CARDS="
103 video_cards_apm
104 video_cards_ark
105 video_cards_chips
106 video_cards_cirrus
107 video_cards_cyrix
108 video_cards_dummy
109 video_cards_epson
110 video_cards_fbdev
111 video_cards_glint
112 video_cards_i128
113 video_cards_i740
114 video_cards_i810
115 video_cards_impact
116 video_cards_imstt
117 video_cards_mach64
118 video_cards_mga
119 video_cards_neomagic
120 video_cards_newport
121 video_cards_nsc
122 video_cards_nv
123 video_cards_r128
124 video_cards_radeon
125 video_cards_rendition
126 video_cards_s3
127 video_cards_s3virge
128 video_cards_savage
129 video_cards_siliconmotion
130 video_cards_sis
131 video_cards_sisusb
132 video_cards_sunbw2
133 video_cards_suncg14
134 video_cards_suncg3
135 video_cards_suncg6
136 video_cards_sunffb
137 video_cards_sunleo
138 video_cards_suntcx
139 video_cards_tdfx
140 video_cards_tga
141 video_cards_trident
142 video_cards_tseng
143 video_cards_v4l
144 video_cards_vesa
145 video_cards_vga
146 video_cards_via
147 video_cards_vmware
148 video_cards_voodoo
149 video_cards_fglrx
150 video_cards_nvidia"
151 IUSE_SERVERS="dmx kdrive xorg"
152 IUSE="${IUSE_VIDEO_CARDS}
153 ${IUSE_INPUT_DEVICES}
154 ${IUSE_SERVERS}
155 3dfx
156 dri ipv6 minimal nptl sdl xprint"
157 RDEPEND=">=x11-libs/libXfont-1.2.5
158 x11-libs/xtrans
159 x11-libs/libXau
160 x11-libs/libXext
161 x11-libs/libX11
162 x11-libs/libxkbfile
163 x11-libs/libXdmcp
164 x11-libs/libXmu
165 x11-libs/libXrender
166 x11-libs/libXi
167 media-libs/freetype
168 >=media-libs/mesa-6.5.2
169 media-fonts/font-adobe-75dpi
170 media-fonts/font-misc-misc
171 media-fonts/font-cursor-misc
172 x11-misc/xbitmaps
173 || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
174 x11-apps/iceauth
175 x11-apps/rgb
176 x11-apps/xauth
177 x11-apps/xinit
178 app-admin/eselect-opengl
179 x11-libs/libXaw
180 x11-libs/libXpm
181 x11-libs/libXxf86misc
182 x11-libs/libXxf86vm
183 dmx? ( x11-libs/libdmx
184 x11-libs/libXfixes )
185 !minimal? ( x11-libs/libXtst
186 x11-libs/libXres )
187 >=x11-libs/libxkbui-1.0.2
188 x11-libs/liblbxutil
189 kdrive? ( sdl? ( media-libs/libsdl ) )"
190 # Xres is dmx-dependent, xkbui is xorgcfg-dependent
191 # Xaw is dmx- and xorgcfg-dependent
192 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
193 # Xxf86misc and Xxf86vm are xorgcfg-dependent
194 # liblbxutil is lbx- dependent
195 DEPEND="${RDEPEND}
196 >=x11-proto/randrproto-1.2.1
197 <x11-proto/renderproto-0.9.3
198 >=x11-proto/fixesproto-4
199 >=x11-proto/damageproto-1.1
200 x11-proto/xextproto
201 x11-proto/xproto
202 x11-proto/xf86dgaproto
203 x11-proto/xf86miscproto
204 x11-proto/xf86rushproto
205 x11-proto/xf86vidmodeproto
206 x11-proto/xf86bigfontproto
207 >=x11-proto/compositeproto-0.3
208 x11-proto/recordproto
209 x11-proto/resourceproto
210 x11-proto/videoproto
211 >=x11-proto/scrnsaverproto-1.1.0
212 x11-proto/evieext
213 x11-proto/trapproto
214 >=x11-proto/xineramaproto-1.1-r1
215 x11-proto/fontsproto
216 >=x11-proto/kbproto-1.0.3
217 x11-proto/inputproto
218 x11-proto/bigreqsproto
219 x11-proto/xcmiscproto
220 >=x11-proto/glproto-1.4.8
221 dmx? ( x11-proto/dmxproto )
222 dri? ( x11-proto/xf86driproto
223 >=x11-libs/libdrm-2.3 )
224 xprint? ( x11-proto/printproto
225 x11-apps/mkfontdir
226 x11-apps/mkfontscale
227 x11-apps/xplsprinters )"
228
229 # Drivers
230 PDEPEND="
231 xorg? (
232 input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.1.0 )
233 input_devices_aiptek? ( >=x11-drivers/xf86-input-aiptek-1.0.1 )
234 input_devices_calcomp? ( >=x11-drivers/xf86-input-calcomp-1.1.0 )
235 input_devices_citron? ( >=x11-drivers/xf86-input-citron-2.2.0 )
236 input_devices_digitaledge? ( >=x11-drivers/xf86-input-digitaledge-1.1.0 )
237 input_devices_dmc? ( >=x11-drivers/xf86-input-dmc-1.1.0 )
238 input_devices_dynapro? ( >=x11-drivers/xf86-input-dynapro-1.1.0 )
239 input_devices_elo2300? ( >=x11-drivers/xf86-input-elo2300-1.1.0 )
240 input_devices_elographics? ( >=x11-drivers/xf86-input-elographics-1.1.0 )
241 input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-1.1.1 )
242 input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.1.0 )
243 input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.1.0 )
244 input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.1.0 )
245 input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.1.0 )
246 input_devices_keyboard? ( =x11-drivers/xf86-input-keyboard-1.1* )
247 input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.1.0 )
248 input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.1.0 )
249 input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.1.0 )
250 input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.1.0 )
251 input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.1.0 )
252 input_devices_penmount? ( >=x11-drivers/xf86-input-penmount-1.1.0 )
253 input_devices_spaceorb? ( >=x11-drivers/xf86-input-spaceorb-1.1.0 )
254 input_devices_summa? ( >=x11-drivers/xf86-input-summa-1.1.0 )
255 input_devices_tek4957? ( >=x11-drivers/xf86-input-tek4957-1.1.0 )
256 input_devices_ur98? ( >=x11-drivers/xf86-input-ur98-1.1.0 )
257 input_devices_vmmouse? ( >=x11-drivers/xf86-input-vmmouse-12.4.0 )
258 input_devices_void? ( >=x11-drivers/xf86-input-void-1.1.0 )
259
260 input_devices_synaptics? ( x11-drivers/synaptics )
261 input_devices_wacom? ( x11-drivers/linuxwacom )
262
263 video_cards_apm? ( >=x11-drivers/xf86-video-apm-1.1.1 )
264 video_cards_ark? ( >=x11-drivers/xf86-video-ark-0.6.0 )
265 video_cards_chips? ( >=x11-drivers/xf86-video-chips-1.1.1 )
266 video_cards_cirrus? ( >=x11-drivers/xf86-video-cirrus-1.1.0 )
267 video_cards_cyrix? ( >=x11-drivers/xf86-video-cyrix-1.1.0 )
268 video_cards_dummy? ( >=x11-drivers/xf86-video-dummy-0.2.0 )
269 video_cards_fbdev? ( >=x11-drivers/xf86-video-fbdev-0.2.0 )
270 video_cards_glint? ( >=x11-drivers/xf86-video-glint-1.1.1 )
271 video_cards_i128? ( >=x11-drivers/xf86-video-i128-1.2.0 )
272 video_cards_i740? ( >=x11-drivers/xf86-video-i740-1.1.0 )
273 video_cards_i810? ( >=x11-drivers/xf86-video-i810-1.6.0 )
274 video_cards_impact? ( >=x11-drivers/xf86-video-impact-0.2.0 )
275 video_cards_imstt? ( >=x11-drivers/xf86-video-imstt-1.1.0 )
276 video_cards_mach64? ( >=x11-drivers/xf86-video-ati-6.6.0 )
277 video_cards_mga? ( >=x11-drivers/xf86-video-mga-1.4.1 )
278 video_cards_neomagic? ( >=x11-drivers/xf86-video-neomagic-1.1.1 )
279 video_cards_newport? ( >=x11-drivers/xf86-video-newport-0.2.0 )
280 video_cards_nsc? ( >=x11-drivers/xf86-video-nsc-2.8.1 )
281 video_cards_nv? ( >=x11-drivers/xf86-video-nv-1.1.1 )
282 video_cards_r128? ( >=x11-drivers/xf86-video-ati-6.6.0 )
283 video_cards_radeon? ( >=x11-drivers/xf86-video-ati-6.6.0 )
284 video_cards_rendition? ( >=x11-drivers/xf86-video-rendition-4.1.0 )
285 video_cards_s3? ( >=x11-drivers/xf86-video-s3-0.4.1 )
286 video_cards_s3virge? ( >=x11-drivers/xf86-video-s3virge-1.9.1 )
287 video_cards_savage? ( >=x11-drivers/xf86-video-savage-2.1.1 )
288 video_cards_siliconmotion? ( >=x11-drivers/xf86-video-siliconmotion-1.4.1 )
289 video_cards_sis? ( >=x11-drivers/xf86-video-sis-0.9.1 )
290 video_cards_sisusb? ( >=x11-drivers/xf86-video-sisusb-0.8.1 )
291 video_cards_sunbw2? ( >=x11-drivers/xf86-video-sunbw2-1.1.0 )
292 video_cards_suncg14? ( >=x11-drivers/xf86-video-suncg14-1.1.0 )
293 video_cards_suncg3? ( >=x11-drivers/xf86-video-suncg3-1.1.0 )
294 video_cards_suncg6? ( >=x11-drivers/xf86-video-suncg6-1.1.0 )
295 video_cards_sunffb? ( >=x11-drivers/xf86-video-sunffb-1.1.0 )
296 video_cards_sunleo? ( >=x11-drivers/xf86-video-sunleo-1.1.0 )
297 video_cards_suntcx? ( >=x11-drivers/xf86-video-suntcx-1.1.0 )
298 video_cards_tdfx? ( >=x11-drivers/xf86-video-tdfx-1.2.1 )
299 video_cards_tga? ( >=x11-drivers/xf86-video-tga-1.1.0 )
300 video_cards_trident? ( >=x11-drivers/xf86-video-trident-1.2.1 )
301 video_cards_tseng? ( >=x11-drivers/xf86-video-tseng-1.1.0 )
302 video_cards_v4l? ( >=x11-drivers/xf86-video-v4l-0.1.1 )
303 video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-1.1.0 )
304 video_cards_vga? ( >=x11-drivers/xf86-video-vga-4.1.0 )
305 video_cards_via? ( >=x11-drivers/xf86-video-via-0.2.1 )
306 video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.13.0 )
307 video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.1.0 )
308 video_cards_tdfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) )
309 video_cards_nvidia? ( x11-drivers/nvidia-drivers )
310 video_cards_fglrx? ( >=x11-drivers/ati-drivers-8.37.6 )
311 )"
312 LICENSE="${LICENSE} MIT"
313
314 PATCHES="
315 ${FILESDIR}/use-composite-for-unequal-depths.patch
316 ${FILESDIR}/1.2.0-fix-amd-cpu-detection.patch
317 ${FILESDIR}/1.2.0-properly-free-device-devprivates-memory-leak-fix.patch
318 ${FILESDIR}/1.2.0-typo-fix.patch
319 ${FILESDIR}/1.2.0-zero-out-client-devprivates-on-allocation.patch
320 ${FILESDIR}/1.3.0.0-use-proc-instead-of-sys.patch
321 ${FILESDIR}/avoid-crash-on-minimized-xv-window.patch
322 ${FILESDIR}/xorg-server-sam225bw-quirks.patch
323 ${FILESDIR}/1.3-alpha-build-fix.patch
324 ${FILESDIR}/1.3.0.0-xephyr_crash_at_exit.patch
325 ${FILESDIR}/xorg-x11-server-1.0.1-fpic-libxf86config.patch
326 "
327
328 pkg_setup() {
329 use minimal || ensure_a_server_is_building
330
331 # SDL only available in kdrive build
332 if use kdrive && use sdl; then
333 conf_opts="${conf_opts} --enable-xsdl"
334 else
335 conf_opts="${conf_opts} --disable-xsdl"
336 fi
337
338 # Only Xorg and Xgl support this, and we won't build Xgl
339 # until it merges to trunk
340 if use xorg; then
341 conf_opts="${conf_opts} --with-mesa-source=${WORKDIR}/${MESA_P}"
342 fi
343
344 # localstatedir is used for the log location; we need to override the default
345 # from ebuild.sh
346 # sysconfdir is used for the xorg.conf location; same applies
347 # --enable-install-setuid needed because sparcs default off
348 CONFIGURE_OPTIONS="
349 $(use_enable ipv6)
350 $(use_enable dmx)
351 $(use_enable kdrive)
352 $(use_enable !minimal xvfb)
353 $(use_enable !minimal xnest)
354 $(use_enable !minimal install-libxf86config)
355 $(use_enable dri)
356 $(use_enable xorg)
357 $(use_enable xprint)
358 $(use_enable nptl glx-tls)
359 $(use_enable !minimal xorgcfg)
360 --sysconfdir=/etc/X11
361 --localstatedir=/var
362 --enable-install-setuid
363 --with-fontdir=/usr/share/fonts
364 ${conf_opts}"
365
366 local diemsg="You must build xorg-server and mesa with the same nptl USE setting."
367 if built_with_use media-libs/mesa nptl; then
368 use nptl || die "${diemsg}"
369 else
370 use nptl && die "${diemsg}"
371 fi
372
373 # (#121394) Causes window corruption
374 filter-flags -fweb
375
376 # Nothing else provides new enough glxtokens.h
377 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
378 OLD_IMPLEM="$(eselect opengl show)"
379 eselect opengl set --impl-headers ${OPENGL_DIR}
380 }
381
382 src_unpack() {
383 x-modular_specs_check
384 x-modular_dri_check
385 x-modular_unpack_source
386 x-modular_patch_source
387
388 # Set up kdrive servers to build
389 if use kdrive; then
390 kdrive_setup
391 fi
392
393 # Make sure eautoreconf gets run if we need the autoconf/make
394 # changes.
395 if [[ ${SNAPSHOT} != "yes" ]]; then
396 if use kdrive; then
397 eautoreconf
398 fi
399 fi
400 x-modular_reconf_source
401 }
402
403 src_install() {
404 x-modular_src_install
405
406 dynamic_libgl_install
407
408 server_based_install
409
410 # Install video mode files for system-config-display
411 insinto /usr/share/xorg
412 doins hw/xfree86/common/{extra,vesa}modes \
413 || die "couldn't install extra modes"
414
415 # Bug #151421 - this file is not built with USE="minimal"
416 # Bug #151670 - this file is also not build if USE="-xorg"
417 if ! use minimal && use xorg; then
418 # Install xorg.conf.example
419 insinto /etc/X11
420 doins hw/xfree86/xorg.conf.example \
421 || die "couldn't install xorg.conf.example"
422 fi
423 }
424
425 pkg_postinst() {
426 switch_opengl_implem
427
428 # Bug #135544
429 ewarn "Users of reduced blanking now need:"
430 ewarn " Option \"ReducedBlanking\""
431 ewarn "In the relevant Monitor section(s)."
432 ewarn "Make sure your reduced blanking modelines are safe!"
433 }
434
435 pkg_postrm() {
436 # Get rid of module dir to ensure opengl-update works properly
437 if ! has_version x11-base/xorg-server; then
438 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
439 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
440 fi
441 fi
442 }
443
444 kdrive_setup() {
445 local card real_card disable_card kdrive_fbdev kdrive_vesa
446
447 einfo "Removing unused kdrive drivers ..."
448
449 # Some kdrive servers require fbdev and vesa
450 kdrive_fbdev="radeon neomagic sis siliconmotion"
451 # Some kdrive servers require just vesa
452 kdrive_vesa="chips mach64 mga nv glint r128 via"
453
454 for card in ${IUSE_VIDEO_CARDS}; do
455 real_card=${card#video_cards_}
456
457 # Differences between VIDEO_CARDS name and kdrive server name
458 real_card=${real_card/glint/pm2}
459 real_card=${real_card/radeon/ati}
460 real_card=${real_card/%nv/nvidia}
461 real_card=${real_card/siliconmotion/smi}
462 real_card=${real_card/%sis/sis300}
463
464 disable_card=0
465
466 # Check whether it's a valid kdrive server before we waste time
467 # on the rest of this
468 if ! grep -q -o "\b${real_card}\b" ${S}/hw/kdrive/Makefile.am; then
469 continue
470 fi
471
472 if ! use ${card}; then
473 if use x86; then
474 # Some kdrive servers require fbdev and vesa
475 for i in ${kdrive_fbdev}; do
476 if use video_cards_${i}; then
477 if [[ ${real_card} = fbdev ]] \
478 || [[ ${real_card} = vesa ]]; then
479 continue 2 # Don't disable
480 fi
481 fi
482 done
483
484 # Some kdrive servers require just vesa
485 for i in ${kdrive_vesa}; do
486 if use video_cards_${i}; then
487 if [[ ${real_card} = vesa ]]; then
488 continue 2 # Don't disable
489 fi
490 fi
491 done
492 fi
493 disable_card=1
494 # Bug #150052
495 # fbdev is the only VIDEO_CARDS setting that works on non-x86
496 elif ! use x86 \
497 && [[ ${real_card} != fbdev ]]; then
498 ewarn " $real_card does not work on your architecture; disabling."
499 disable_card=1
500 fi
501
502 if [[ $disable_card = 1 ]]; then
503 ebegin " ${real_card}"
504 sed -i \
505 -e "s:\b${real_card}\b::g" \
506 ${S}/hw/kdrive/Makefile.am \
507 || die "sed of ${real_card} failed"
508 eend
509 fi
510
511 done
512
513 # smi and via are the only things on line 2. If line 2 ends up blank,
514 # we need to get rid of the backslash at the end of line 1.
515 if ! use video_cards_siliconmotion && ! use video_cards_via; then
516 sed -i \
517 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
518 ${S}/hw/kdrive/Makefile.am
519 fi
520 }
521
522 dynamic_libgl_install() {
523 # next section is to setup the dynamic libGL stuff
524 ebegin "Moving GL files for dynamic switching"
525 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
526 local x=""
527 for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
528 if [ -f ${x} -o -L ${x} ]; then
529 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
530 fi
531 done
532 eend 0
533 }
534
535 server_based_install() {
536 use xprint && xprint_src_install
537
538 if ! use xorg; then
539 rm ${D}/usr/share/man/man1/Xserver.1x \
540 ${D}/usr/$(get_libdir)/xserver/SecurityPolicy \
541 ${D}/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
542 ${D}/usr/share/man/man1/Xserver.1x
543 fi
544 }
545
546 switch_opengl_implem() {
547 # Switch to the xorg implementation.
548 # Use new opengl-update that will not reset user selected
549 # OpenGL interface ...
550 echo
551 # eselect opengl set --use-old ${OPENGL_DIR}
552 eselect opengl set ${OLD_IMPLEM}
553 }
554
555 xprint_src_install() {
556 # RH-style init script, we provide a wrapper
557 exeinto /usr/$(get_libdir)/misc
558 doexe ${S}/hw/xprint/etc/init.d/xprint
559 # Install the wrapper
560 newinitd ${FILESDIR}/xprint.init xprint
561 # Install profile scripts
562 insinto /etc/profile.d
563 doins ${S}/hw/xprint/etc/profile.d/xprint*
564 insinto /etc/X11/xinit/xinitrc.d
565 doins ${S}/hw/xprint/etc/Xsession.d/92xprint-xpserverlist
566 # Patch profile scripts
567 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
568 get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \
569 ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist
570 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
571 dodoc ${D}/etc/profile.d/xprint*
572 rm -f ${D}/etc/profile.d/xprint*
573 }
574
575 ensure_a_server_is_building() {
576 for server in ${IUSE_SERVERS}; do
577 use ${server} && return;
578 done
579 eerror "You need to specify at least one server to build."
580 eerror "Valid servers are: ${IUSE_SERVERS}."
581 die "No servers were specified to build."
582 }
583
584
585
586 --
587 gentoo-commits@g.o mailing list