1 |
commit: ccfa356656150ffb38f7aa970977c4e0e6a85ffa |
2 |
Author: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 9 14:16:16 2012 +0000 |
4 |
Commit: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jul 9 14:16:16 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=ccfa3566 |
7 |
|
8 |
x11-drivers/ati-drivers: bump legacy driver |
9 |
|
10 |
version bump to the lastest beta of the legacy branch |
11 |
watermark is disabled sedding the xorg DDX. This fixes |
12 |
bug #425198. |
13 |
the pax_kernel USE is dropped, it should not be needed |
14 |
anymore as reported in bug #420689 comment #4 |
15 |
|
16 |
--- |
17 |
x11-drivers/ati-drivers/ati-drivers-12.4.ebuild | 10 ++-- |
18 |
....ebuild => ati-drivers-12.6_beta_pre897.ebuild} | 60 ++++++++++---------- |
19 |
2 files changed, 34 insertions(+), 36 deletions(-) |
20 |
|
21 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-12.4.ebuild b/x11-drivers/ati-drivers/ati-drivers-12.4.ebuild |
22 |
index fd3d1e1..dee9be0 100644 |
23 |
--- a/x11-drivers/ati-drivers/ati-drivers-12.4.ebuild |
24 |
+++ b/x11-drivers/ati-drivers/ati-drivers-12.4.ebuild |
25 |
@@ -162,7 +162,7 @@ _check_kernel_config() { |
26 |
eerror " CONFIG_ACPI=y" |
27 |
eerror "in /usr/src/linux/.config or" |
28 |
eerror " Power management and ACPI options --->" |
29 |
- eerror " [*] Power Management support" |
30 |
+ eerror " [*] Power Management support" |
31 |
eerror "in the 'menuconfig'" |
32 |
error+=" CONFIG_ACPI disabled;" |
33 |
failed=1 |
34 |
@@ -174,7 +174,7 @@ _check_kernel_config() { |
35 |
eerror " CONFIG_PCI_MSI=y" |
36 |
eerror "in /usr/src/linux/.config or" |
37 |
eerror " Bus options (PCI etc.) --->" |
38 |
- eerror " [*] Message Signaled Interrupts (MSI and MSI-X)" |
39 |
+ eerror " [*] Message Signaled Interrupts (MSI and MSI-X)" |
40 |
eerror "in the kernel config." |
41 |
error+=" CONFIG_PCI_MSI disabled;" |
42 |
failed=1 |
43 |
@@ -187,9 +187,9 @@ _check_kernel_config() { |
44 |
eerror "FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'" |
45 |
eerror "Please make sure the following options have been unset:" |
46 |
eerror " Kernel hacking --->" |
47 |
- eerror " [ ] Lock debugging: detect incorrect freeing of live locks" |
48 |
- eerror " [ ] Lock debugging: prove locking correctness" |
49 |
- eerror " [ ] Lock usage statistics" |
50 |
+ eerror " [ ] Lock debugging: detect incorrect freeing of live locks" |
51 |
+ eerror " [ ] Lock debugging: prove locking correctness" |
52 |
+ eerror " [ ] Lock usage statistics" |
53 |
eerror "in 'menuconfig'" |
54 |
error+=" LOCKDEP enabled;" |
55 |
failed=1 |
56 |
|
57 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-12.4.ebuild b/x11-drivers/ati-drivers/ati-drivers-12.6_beta_pre897.ebuild |
58 |
similarity index 92% |
59 |
copy from x11-drivers/ati-drivers/ati-drivers-12.4.ebuild |
60 |
copy to x11-drivers/ati-drivers/ati-drivers-12.6_beta_pre897.ebuild |
61 |
index fd3d1e1..1ec2e81 100644 |
62 |
--- a/x11-drivers/ati-drivers/ati-drivers-12.4.ebuild |
63 |
+++ b/x11-drivers/ati-drivers/ati-drivers-12.6_beta_pre897.ebuild |
64 |
@@ -8,23 +8,24 @@ inherit eutils multilib linux-info linux-mod toolchain-funcs versionator |
65 |
|
66 |
DESCRIPTION="Ati precompiled drivers for radeon r600 (HD Series) and newer chipsets" |
67 |
HOMEPAGE="http://www.amd.com" |
68 |
-# 8.ble will be used for beta releases. |
69 |
-if [[ $(get_major_version) -gt 8 ]]; then |
70 |
+MY_V=( $(get_version_components) ) |
71 |
+if [[ ${MY_V[2]} != beta ]]; then |
72 |
ATI_URL="http://www2.ati.com/drivers/linux/" |
73 |
SRC_URI="${ATI_URL}/amd-driver-installer-${PV/./-}-x86.x86_64.run" |
74 |
FOLDER_PREFIX="common/" |
75 |
else |
76 |
- SRC_URI="https://launchpad.net/ubuntu/natty/+source/fglrx-installer/2:${PV}-0ubuntu1/+files/fglrx-installer_${PV}.orig.tar.gz" |
77 |
- FOLDER_PREFIX="" |
78 |
+ #SRC_URI="https://launchpad.net/ubuntu/natty/+source/fglrx-installer/2:${PV}-0ubuntu1/+files/fglrx-installer_${PV}.orig.tar.gz" |
79 |
+ SRC_URI="http://www2.ati.com/drivers/legacy/amd-driver-installer-12.6-legacy-x86.x86_64.zip" |
80 |
+ FOLDER_PREFIX="common/" |
81 |
fi |
82 |
-IUSE="debug +modules multilib pax_kernel qt4 static-libs" |
83 |
+IUSE="debug +modules multilib qt4 static-libs" |
84 |
|
85 |
LICENSE="AMD GPL-2 QPL-1.0 as-is" |
86 |
KEYWORDS="~amd64 ~x86" |
87 |
SLOT="1" |
88 |
|
89 |
RDEPEND=" |
90 |
- <=x11-base/xorg-server-1.11.49[-minimal] |
91 |
+ <=x11-base/xorg-server-1.12.49[-minimal] |
92 |
>=app-admin/eselect-opengl-1.0.7 |
93 |
app-admin/eselect-opencl |
94 |
sys-power/acpid |
95 |
@@ -162,7 +163,7 @@ _check_kernel_config() { |
96 |
eerror " CONFIG_ACPI=y" |
97 |
eerror "in /usr/src/linux/.config or" |
98 |
eerror " Power management and ACPI options --->" |
99 |
- eerror " [*] Power Management support" |
100 |
+ eerror " [*] Power Management support" |
101 |
eerror "in the 'menuconfig'" |
102 |
error+=" CONFIG_ACPI disabled;" |
103 |
failed=1 |
104 |
@@ -174,7 +175,7 @@ _check_kernel_config() { |
105 |
eerror " CONFIG_PCI_MSI=y" |
106 |
eerror "in /usr/src/linux/.config or" |
107 |
eerror " Bus options (PCI etc.) --->" |
108 |
- eerror " [*] Message Signaled Interrupts (MSI and MSI-X)" |
109 |
+ eerror " [*] Message Signaled Interrupts (MSI and MSI-X)" |
110 |
eerror "in the kernel config." |
111 |
error+=" CONFIG_PCI_MSI disabled;" |
112 |
failed=1 |
113 |
@@ -187,9 +188,9 @@ _check_kernel_config() { |
114 |
eerror "FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'" |
115 |
eerror "Please make sure the following options have been unset:" |
116 |
eerror " Kernel hacking --->" |
117 |
- eerror " [ ] Lock debugging: detect incorrect freeing of live locks" |
118 |
- eerror " [ ] Lock debugging: prove locking correctness" |
119 |
- eerror " [ ] Lock usage statistics" |
120 |
+ eerror " [ ] Lock debugging: detect incorrect freeing of live locks" |
121 |
+ eerror " [ ] Lock debugging: prove locking correctness" |
122 |
+ eerror " [ ] Lock usage statistics" |
123 |
eerror "in 'menuconfig'" |
124 |
error+=" LOCKDEP enabled;" |
125 |
failed=1 |
126 |
@@ -274,14 +275,14 @@ pkg_setup() { |
127 |
} |
128 |
|
129 |
src_unpack() { |
130 |
- if [[ $(get_major_version) -gt 8 ]]; then |
131 |
- # Switching to a standard way to extract the files since otherwise no signature file |
132 |
- # would be created |
133 |
- local src="${DISTDIR}/${A}" |
134 |
- sh "${src}" --extract "${S}" 2&>1 /dev/null |
135 |
- else |
136 |
+ if [[ ${MY_V[2]} == beta ]]; then |
137 |
unpack ${A} |
138 |
+ RUN=${A/%.zip/.run} |
139 |
+ else |
140 |
+ RUN=${A} |
141 |
fi |
142 |
+ sh "${S}"/${RUN} --extract "${S}" 2>&1 > /dev/null || die \ |
143 |
+ 'unpack failed' |
144 |
} |
145 |
|
146 |
src_prepare() { |
147 |
@@ -320,20 +321,8 @@ src_prepare() { |
148 |
# add function to detect default state. |
149 |
epatch "${FILESDIR}"/ati-powermode-opt-path-2.patch |
150 |
|
151 |
- # fix needed for at least hardened-sources, see bug #392753 |
152 |
- use pax_kernel && epatch "${FILESDIR}"/ati-drivers-12.2-redefine-WARN.patch |
153 |
- |
154 |
- # fixed fgrlx compilation error on 32-bit x86 arch with kernel 3.3-rc4 due to commit: |
155 |
- # https://github.com/torvalds/linux/commit/f94edacf998516ac9d849f7bc6949a703977a7f3 |
156 |
- # later modified (in 3.3-rc5) by commit: |
157 |
- # https://github.com/torvalds/linux/commit/7e16838d94b566a17b65231073d179bc04d590c8#diff-1 |
158 |
- # and finally backported to kernel 3.2.8. |
159 |
- epatch "${FILESDIR}"/amd-drivers-3.2.7.1.patch |
160 |
- |
161 |
- # see http://ati.cchtml.com/show_bug.cgi?id=495 |
162 |
- epatch "${FILESDIR}"/ati-drivers-old_rsp.patch |
163 |
- #fixes bug #420751 |
164 |
- epatch "${FILESDIR}"/ati-drivers-do_mmap.patch |
165 |
+# # fix needed for at least hardened-sources, see bug #392753 |
166 |
+# use pax_kernel && epatch "${FILESDIR}"/ati-drivers-12.2-redefine-WARN.patch |
167 |
|
168 |
cd "${MODULE_DIR}" |
169 |
|
170 |
@@ -355,6 +344,15 @@ src_prepare() { |
171 |
mkdir extra || die "mkdir failed" |
172 |
cd extra |
173 |
unpack ./../${FOLDER_PREFIX}usr/src/ati/fglrx_sample_source.tgz |
174 |
+ |
175 |
+ # Get rid of watermark. Oldest known reference: |
176 |
+ # http://phoronix.com/forums/showthread.php?19875-Unsupported-Hardware-watermark |
177 |
+ ebegin "Disabling watermark" |
178 |
+ driver="${MY_BASE_DIR}"/usr/X11R6/${PKG_LIBDIR}/modules/drivers/fglrx_drv.so |
179 |
+ for x in $(objdump -d ${driver}|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do |
180 |
+ sed -i "s/${x}/\x90\x90\x90\x90\x90/g" ${driver} || break 1 |
181 |
+ done |
182 |
+ eend $? || die "Disabling watermark failed" |
183 |
} |
184 |
|
185 |
src_compile() { |