| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.61 2006/06/28 02:20:31 joshuabaergen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.66 2006/06/30 16:21:38 spyderous Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is designed to reduce code duplication in the modularized X11 |
7 | # This eclass is designed to reduce code duplication in the modularized X11 |
| 8 | # ebuilds. |
8 | # ebuilds. |
| … | |
… | |
| 175 | msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}." |
175 | msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}." |
| 176 | eerror "$msg" |
176 | eerror "$msg" |
| 177 | die "$msg" |
177 | die "$msg" |
| 178 | fi |
178 | fi |
| 179 | |
179 | |
|
|
180 | append-ldflags -Wl,-z,lazy |
| 180 | # (#116698) breaks loading |
181 | # (#116698) breaks loading |
| 181 | filter-ldflags -Wl,-z,now |
182 | filter-ldflags -Wl,-z,now |
| 182 | fi |
183 | fi |
| 183 | } |
184 | } |
| 184 | |
185 | |
| … | |
… | |
| 197 | |
198 | |
| 198 | x-modular_server_supports_drivers_check() { |
199 | x-modular_server_supports_drivers_check() { |
| 199 | # (#135873) Only certain servers will actually use or be capable of |
200 | # (#135873) Only certain servers will actually use or be capable of |
| 200 | # building external drivers, including binary drivers. |
201 | # building external drivers, including binary drivers. |
| 201 | if [[ -n "${DRIVER}" ]]; then |
202 | if [[ -n "${DRIVER}" ]]; then |
|
|
203 | if has_version >=x11-base/xorg-server-1.1; then |
| 202 | if ! built_with_use x11-base/xorg-server xorg; then |
204 | if ! built_with_use x11-base/xorg-server xorg; then |
| 203 | eerror "x11-base/xorg-server is not built with support for external drivers." |
205 | eerror "x11-base/xorg-server is not built with support for external drivers." |
| 204 | die "You must build x11-base/xorg-server with USE=xorg." |
206 | die "You must build x11-base/xorg-server with USE=xorg." |
|
|
207 | fi |
| 205 | fi |
208 | fi |
| 206 | fi |
209 | fi |
| 207 | } |
210 | } |
| 208 | |
211 | |
| 209 | x-modular_unpack_source() { |
212 | x-modular_unpack_source() { |