1 |
commit: 3ee13140db47e37adf0a0c7fb88c094a39cf1a83 |
2 |
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 23 09:20:32 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 23 09:21:11 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ee13140 |
7 |
|
8 |
x11-drivers/ati-drivers: revbump required to ati-drivers-15.9-r1 |
9 |
|
10 |
of the ati-drivers-15.9.ebuild prepared by fernando-rodriguez |
11 |
in /gentoo/pull/98 |
12 |
|
13 |
Package-Manager: portage-2.2.20.1 |
14 |
|
15 |
...vers-15.9.ebuild => ati-drivers-15.9-r1.ebuild} | 0 |
16 |
x11-drivers/ati-drivers/ati-drivers-15.9.ebuild | 56 +++++++--------------- |
17 |
2 files changed, 17 insertions(+), 39 deletions(-) |
18 |
|
19 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-15.9.ebuild b/x11-drivers/ati-drivers/ati-drivers-15.9-r1.ebuild |
20 |
similarity index 100% |
21 |
copy from x11-drivers/ati-drivers/ati-drivers-15.9.ebuild |
22 |
copy to x11-drivers/ati-drivers/ati-drivers-15.9-r1.ebuild |
23 |
|
24 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-15.9.ebuild b/x11-drivers/ati-drivers/ati-drivers-15.9.ebuild |
25 |
index 9bc5788..0d90755 100644 |
26 |
--- a/x11-drivers/ati-drivers/ati-drivers-15.9.ebuild |
27 |
+++ b/x11-drivers/ati-drivers/ati-drivers-15.9.ebuild |
28 |
@@ -13,10 +13,8 @@ RUN="${WORKDIR}/AMD-Catalyst-15.9-Linux-installer-15.201.1151-x86.x86_64.run" |
29 |
SLOT="1" |
30 |
# Uses javascript for download YESSSS |
31 |
#DRIVERS_URI="http://www2.ati.com/drivers/linux/amd-catalyst-13.12-linux-x86.x86_64.zip" |
32 |
-DRV_VER="amd-catalyst-${PV}-linux-installer-15.201.1151-x86.x86_64.zip" |
33 |
-DRIVERS_URI="mirror://gentoo/${DRV_VER}" |
34 |
-SDK_VER="xvba-sdk-0.74-404001.tar.gz" |
35 |
-XVBA_SDK_URI="http://developer.amd.com/wordpress/media/2012/10/${SDK_VER}" |
36 |
+DRIVERS_URI="mirror://gentoo/amd-catalyst-${PV}-linux-installer-15.201.1151-x86.x86_64.zip" |
37 |
+XVBA_SDK_URI="http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz" |
38 |
SRC_URI="${DRIVERS_URI} ${XVBA_SDK_URI}" |
39 |
FOLDER_PREFIX="common/" |
40 |
IUSE="debug +modules qt4 static-libs pax_kernel gdm-hack" |
41 |
@@ -151,21 +149,19 @@ pkg_nofetch() { |
42 |
einfo "The driver packages" |
43 |
einfo ${A} |
44 |
einfo "need to be downloaded manually from" |
45 |
- einfo "http://support.amd.com/en-us/download/desktop?os=Linux+x86" |
46 |
+ einfo "http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64" |
47 |
einfo "and ${XVBA_SDK_URI}" |
48 |
} |
49 |
|
50 |
pkg_pretend() { |
51 |
- local CONFIG_CHECK="~MTRR ~!DRM ACPI PCI_MSI \ |
52 |
- !LOCKDEP !PAX_KERNEXEC_PLUGIN_METHOD_OR" |
53 |
+ local CONFIG_CHECK="~MTRR ~!DRM ACPI PCI_MSI !LOCKDEP !PAX_KERNEXEC_PLUGIN_METHOD_OR" |
54 |
use amd64 && CONFIG_CHECK+=" COMPAT" |
55 |
|
56 |
local ERROR_MTRR="CONFIG_MTRR required for direct rendering." |
57 |
- local ERROR_DRM="CONFIG_DRM must be disabled or compiled as a |
58 |
- module and not loaded for direct rendering to work." |
59 |
- local ERROR_LOCKDEP="CONFIG_LOCKDEP (lock tracking) exports |
60 |
- the symbol lock_acquire as GPL-only. This prevents ${P} from |
61 |
- compiling with an error like this: |
62 |
+ local ERROR_DRM="CONFIG_DRM must be disabled or compiled as a module and not loaded for direct |
63 |
+ rendering to work." |
64 |
+ local ERROR_LOCKDEP="CONFIG_LOCKDEP (lock tracking) exports the symbol lock_acquire |
65 |
+ as GPL-only. This prevents ${P} from compiling with an error like this: |
66 |
FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'" |
67 |
local ERROR_PAX_KERNEXEC_PLUGIN_METHOD_OR="This config option will cause |
68 |
kernel to reject loading the fglrx module with |
69 |
@@ -195,18 +191,15 @@ pkg_pretend() { |
70 |
|
71 |
pkg_setup() { |
72 |
if use modules; then |
73 |
- MODULE_PATH="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x" |
74 |
- MODULE_NAMES="fglrx(video:${MODULE_PATH})" |
75 |
+ MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" |
76 |
BUILD_TARGETS="kmod_build" |
77 |
linux-mod_pkg_setup |
78 |
BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_OUT_DIR}" |
79 |
BUILD_PARAMS="${BUILD_PARAMS} CFLAGS_MODULE+=\"-DMODULE -DATI -DFGL\"" |
80 |
if grep -q arch_compat_alloc_user_space ${KV_DIR}/arch/x86/include/asm/compat.h ; then |
81 |
- BUILD_PARAMS="${BUILD_PARAMS} \ |
82 |
- CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space" |
83 |
+ BUILD_PARAMS="${BUILD_PARAMS} CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space" |
84 |
else |
85 |
- BUILD_PARAMS="${BUILD_PARAMS} \ |
86 |
- CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=compat_alloc_user_space" |
87 |
+ BUILD_PARAMS="${BUILD_PARAMS} CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=compat_alloc_user_space" |
88 |
fi |
89 |
fi |
90 |
# Define module dir. |
91 |
@@ -317,16 +310,6 @@ src_prepare() { |
92 |
# Compile fix, #526602 |
93 |
epatch "${FILESDIR}/use-kernel_fpu_begin.patch" |
94 |
|
95 |
- # Fix #542320 |
96 |
- epatch "${FILESDIR}/15.9-preempt.patch" |
97 |
- |
98 |
- # Compile fixes, #548118 |
99 |
- epatch "${FILESDIR}/15.9-remove-gpl-symbols.patch" |
100 |
- epatch "${FILESDIR}/15.9-fpu.patch" |
101 |
- epatch "${FILESDIR}/15.9-kcl_str.patch" |
102 |
- epatch "${FILESDIR}/15.9-sep_printf.patch" |
103 |
- epatch "${FILESDIR}/15.9-mtrr.patch" |
104 |
- |
105 |
epatch_user |
106 |
|
107 |
cd "${MODULE_DIR}" |
108 |
@@ -410,9 +393,7 @@ src_install() { |
109 |
|
110 |
#516816 |
111 |
if use gdm-hack; then |
112 |
- sed -i 's#/proc/%i/fd/0#/etc/ati/xvrn#g' \ |
113 |
- "${D}/usr/$(get_libdir)/xorg/modules/drivers/fglrx_drv.so" || \ |
114 |
- die "Applying gdm-hack failed" |
115 |
+ sed -i 's#/proc/%i/fd/0#/etc/ati/xvrn#g' "${D}/usr/$(get_libdir)/xorg/modules/drivers/fglrx_drv.so" || die "Applying gdm-hack failed" |
116 |
fi |
117 |
|
118 |
# Arch-specific files. |
119 |
@@ -519,9 +500,7 @@ src_install-libs() { |
120 |
|
121 |
#516816 |
122 |
if use gdm-hack; then |
123 |
- sed -i 's#/proc/%i/fd/0#/etc/ati/xvrn#g' \ |
124 |
- "${D}/${ATI_ROOT}/extensions/libglx.so" \ |
125 |
- || die "Applying gdm-hack failed" |
126 |
+ sed -i 's#/proc/%i/fd/0#/etc/ati/xvrn#g' "${D}/${ATI_ROOT}/extensions/libglx.so" || die "Applying gdm-hack failed" |
127 |
fi |
128 |
fi |
129 |
|
130 |
@@ -606,11 +585,10 @@ pkg_postinst() { |
131 |
"${ROOT}"/usr/bin/eselect opencl set --use-old amd |
132 |
|
133 |
if has_version "x11-drivers/xf86-video-intel[sna]"; then |
134 |
- ewarn "It is reported that xf86-video-intel built with USE=\"sna\"" |
135 |
- ewarn "causes the X server to crash on systems that use hybrid" |
136 |
- ewarn "AMD/Intel graphics. If you experience this crash, downgrade" |
137 |
- ewarn "to xf86-video-intel-2.20.2 or earlier or try disabling sna" |
138 |
- ewarn "for xf86-video-intel." |
139 |
+ ewarn "It is reported that xf86-video-intel built with USE=\"sna\" causes the X server" |
140 |
+ ewarn "to crash on systems that use hybrid AMD/Intel graphics. If you experience" |
141 |
+ ewarn "this crash, downgrade to xf86-video-intel-2.20.2 or earlier or" |
142 |
+ ewarn "try disabling sna for xf86-video-intel." |
143 |
ewarn "For details, see https://bugs.gentoo.org/show_bug.cgi?id=430000" |
144 |
fi |