1 |
commit: aa96f8b070cb1b0215f49881c5684be6ff4b074b |
2 |
Author: Emil Karlson <jekarlson <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 4 09:47:33 2014 +0000 |
4 |
Commit: Emil Karlson <jekarlson <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Feb 4 09:47:33 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=aa96f8b0 |
7 |
|
8 |
x11-drivers/ati-drivers: beta version bump |
9 |
|
10 |
-atiogl.xml was removed, needs to be checked, whether it can just be |
11 |
omitted. |
12 |
-distfile needs to be mirrored again |
13 |
-there are rumours of xorg-server-1.15 support, untested |
14 |
-masked for now |
15 |
|
16 |
--- |
17 |
profiles/package.mask | 3 + |
18 |
...10_beta.ebuild => ati-drivers-14.1_beta.ebuild} | 73 +++++++++++----------- |
19 |
2 files changed, 40 insertions(+), 36 deletions(-) |
20 |
|
21 |
diff --git a/profiles/package.mask b/profiles/package.mask |
22 |
index 87cf4a1..6db1e8d 100644 |
23 |
--- a/profiles/package.mask |
24 |
+++ b/profiles/package.mask |
25 |
@@ -130,3 +130,6 @@ |
26 |
#mask until new multilib is enabled |
27 |
=x11-drivers/ati-drivers-13.9-r1 |
28 |
=x11-drivers/ati-drivers-13.12-r1 |
29 |
+ |
30 |
+# missing distfile, untested xorg-dependency, missing atiogl.xml |
31 |
+=x11-drivers/ati-drivers-14.1_beta |
32 |
|
33 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-13.10_beta.ebuild b/x11-drivers/ati-drivers/ati-drivers-14.1_beta.ebuild |
34 |
similarity index 90% |
35 |
rename from x11-drivers/ati-drivers/ati-drivers-13.10_beta.ebuild |
36 |
rename to x11-drivers/ati-drivers/ati-drivers-14.1_beta.ebuild |
37 |
index 70138dd..a1d5364 100644 |
38 |
--- a/x11-drivers/ati-drivers/ati-drivers-13.10_beta.ebuild |
39 |
+++ b/x11-drivers/ati-drivers/ati-drivers-14.1_beta.ebuild |
40 |
@@ -8,9 +8,11 @@ inherit eutils multilib linux-info linux-mod toolchain-funcs versionator pax-uti |
41 |
|
42 |
DESCRIPTION="Ati precompiled drivers for Radeon Evergreen (HD5000 Series) and newer chipsets" |
43 |
HOMEPAGE="http://www.amd.com" |
44 |
-#RUN="${WORKDIR}/amd-driver-installer-9.00-x86.x86_64.run" |
45 |
+RUN="${WORKDIR}/amd-driver-installer-13.35.1005-x86.x86_64.run" |
46 |
SLOT="1" |
47 |
-DRIVERS_URI="http://www2.ati.com/drivers/beta/amd-catalyst-13.10-beta2-linux-x86.x86_64.zip" |
48 |
+# Uses javascript for download YESSSS |
49 |
+#DRIVERS_URI="http://www2.ati.com/drivers/linux/amd-catalyst-13.12-linux-x86.x86_64.zip" |
50 |
+DRIVERS_URI="http://dev.gentooexperimental.org/~scarabeus/amd-catalyst-14.1-betav1.3-linux-x86.x86_64.zip" |
51 |
XVBA_SDK_URI="http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz" |
52 |
SRC_URI="${DRIVERS_URI} ${XVBA_SDK_URI}" |
53 |
FOLDER_PREFIX="common/" |
54 |
@@ -22,7 +24,7 @@ KEYWORDS="-* ~amd64 ~x86" |
55 |
RESTRICT="bindist test" |
56 |
|
57 |
RDEPEND=" |
58 |
- <=x11-base/xorg-server-1.14.49[-minimal] |
59 |
+ <=x11-base/xorg-server-1.15.49[-minimal] |
60 |
>=app-admin/eselect-opengl-1.0.7 |
61 |
app-admin/eselect-opencl |
62 |
sys-power/acpid |
63 |
@@ -148,40 +150,33 @@ QA_DT_HASH=" |
64 |
usr/lib\(32\|64\)\?/OpenCL/vendors/amd/libOpenCL.so.1 |
65 |
" |
66 |
|
67 |
-CONFIG_CHECK="~MTRR ~!DRM ACPI PCI_MSI !LOCKDEP !PAX_KERNEXEC_PLUGIN_METHOD_OR" |
68 |
-ERROR_MTRR="CONFIG_MTRR required for direct rendering." |
69 |
-ERROR_DRM="CONFIG_DRM must be disabled or compiled as a module and not loaded for direct |
70 |
- rendering to work." |
71 |
-ERROR_LOCKDEP="CONFIG_LOCKDEP (lock tracking) exports the symbol lock_acquire |
72 |
- as GPL-only. This prevents ${P} from compiling with an error like this: |
73 |
- FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'" |
74 |
-ERROR_PAX_KERNEXEC_PLUGIN_METHOD_OR="This config option will cause |
75 |
- kernel to reject loading the fglrx module with |
76 |
- \"ERROR: could not insert 'fglrx': Exec format error.\" |
77 |
- You may want to try CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_BTS instead." |
78 |
- |
79 |
-_check_kernel_config() { |
80 |
- if ! linux_chkconfig_present AGP && \ |
81 |
- ! linux_chkconfig_present PCIEPORTBUS; then |
82 |
- ewarn "You don't have AGP and/or PCIe support enabled in the kernel" |
83 |
- ewarn "Direct rendering will not work." |
84 |
- fi |
85 |
- |
86 |
- kernel_is ge 2 6 37 && kernel_is le 2 6 38 && if ! linux_chkconfig_present BKL ; then |
87 |
- die "CONFIG_BKL must be enabled for kernels 2.6.37-2.6.38." |
88 |
- fi |
89 |
- |
90 |
- if use amd64 && ! linux_chkconfig_present COMPAT; then |
91 |
- die "CONFIG_COMPAT must be enabled for amd64 kernels." |
92 |
- fi |
93 |
-} |
94 |
- |
95 |
pkg_pretend() { |
96 |
+ local CONFIG_CHECK="~MTRR ~!DRM ACPI PCI_MSI !LOCKDEP !PAX_KERNEXEC_PLUGIN_METHOD_OR" |
97 |
+ use amd64 && CONFIG_CHECK+=" COMPAT" |
98 |
+ |
99 |
+ local ERROR_MTRR="CONFIG_MTRR required for direct rendering." |
100 |
+ local ERROR_DRM="CONFIG_DRM must be disabled or compiled as a module and not loaded for direct |
101 |
+ rendering to work." |
102 |
+ local ERROR_LOCKDEP="CONFIG_LOCKDEP (lock tracking) exports the symbol lock_acquire |
103 |
+ as GPL-only. This prevents ${P} from compiling with an error like this: |
104 |
+ FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'" |
105 |
+ local ERROR_PAX_KERNEXEC_PLUGIN_METHOD_OR="This config option will cause |
106 |
+ kernel to reject loading the fglrx module with |
107 |
+ \"ERROR: could not insert 'fglrx': Exec format error.\" |
108 |
+ You may want to try CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_BTS instead." |
109 |
+ local ERROR_BKL="CONFIG_BKL must be enabled for kernels 2.6.37-2.6.38." |
110 |
+ |
111 |
# workaround until bug 365543 is solved |
112 |
if use modules; then |
113 |
linux-info_pkg_setup |
114 |
require_configured_kernel |
115 |
- _check_kernel_config |
116 |
+ kernel_is ge 2 6 37 && kernel_is le 2 6 38 && CONFIG_CHECK+=" BKL" |
117 |
+ check_extra_config |
118 |
+ if ! linux_chkconfig_present AGP && \ |
119 |
+ ! linux_chkconfig_present PCIEPORTBUS; then |
120 |
+ ewarn "You don't have AGP and/or PCIe support enabled in the kernel" |
121 |
+ ewarn "Direct rendering will not work." |
122 |
+ fi |
123 |
fi |
124 |
|
125 |
if ! has XT ${PAX_MARKINGS} && use pax_kernel; then |
126 |
@@ -246,7 +241,7 @@ src_unpack() { |
127 |
else |
128 |
RUN="${DISTDIR}/${DRIVERS_DISTFILE}" |
129 |
fi |
130 |
- sh ${RUN} --extract "${S}" 2>&1 > /dev/null || die |
131 |
+ sh "${RUN}" --extract "${S}" 2>&1 > /dev/null || die |
132 |
fi |
133 |
|
134 |
mkdir xvba_sdk |
135 |
@@ -300,15 +295,21 @@ src_prepare() { |
136 |
epatch "${FILESDIR}"/ati-drivers-12.9-KCL_AGP_FindCapsRegisters-stub.patch |
137 |
|
138 |
# Compile fix for kernel typesafe uid types #469160 |
139 |
- epatch "${FILESDIR}/typesafe-kuid.diff" |
140 |
+ #epatch "${FILESDIR}/typesafe-kuid.diff" |
141 |
|
142 |
- epatch "${FILESDIR}/ati-drivers-13.8-beta-include-seq_file.patch" |
143 |
+ #epatch "${FILESDIR}/ati-drivers-13.8-beta-include-seq_file.patch" |
144 |
|
145 |
epatch "${FILESDIR}/check-for-iommu-only-if-iommu-is-supported.patch" |
146 |
|
147 |
# Fix #483400 |
148 |
epatch "${FILESDIR}/fgl_glxgears-do-not-include-glATI.patch" |
149 |
|
150 |
+ # Fix build on new kernels |
151 |
+ #epatch "${FILESDIR}/ati-drivers-13.12-acpi.patch" |
152 |
+ |
153 |
+ # Add support for linux-3.13. See #498766 |
154 |
+ #epatch "${FILESDIR}/ati-drivers-linux-3.13-acpi-handle.patch" |
155 |
+ |
156 |
# Compile fix, https://bugs.gentoo.org/show_bug.cgi?id=454870 |
157 |
use pax_kernel && epatch "${FILESDIR}/const-notifier-block.patch" |
158 |
|
159 |
@@ -419,7 +420,7 @@ src_install() { |
160 |
insinto /etc/ati |
161 |
exeinto /etc/ati |
162 |
# Everything except for the authatieventsd.sh script. |
163 |
- doins ${FOLDER_PREFIX}etc/ati/{logo*,control,atiogl.xml,signature,amdpcsdb.default} |
164 |
+ doins ${FOLDER_PREFIX}etc/ati/{logo*,control,signature,amdpcsdb.default} |
165 |
doexe ${FOLDER_PREFIX}etc/ati/authatieventsd.sh |
166 |
|
167 |
# include. |