summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild')
-rw-r--r--x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild b/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild
index 64fe050..11bf281 100644
--- a/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild
+++ b/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild
@@ -17,7 +17,7 @@ else
SRC_URI="https://launchpad.net/ubuntu/natty/+source/fglrx-installer/2:${PV}-0ubuntu1/+files/fglrx-installer_${PV}.orig.tar.gz"
FOLDER_PREFIX=""
fi
-IUSE="debug +modules multilib opencl qt4"
+IUSE="debug +modules multilib opencl pax_kernel qt4"
LICENSE="AMD GPL-2 QPL-1.0 as-is"
KEYWORDS="~amd64 ~x86"
@@ -317,7 +317,11 @@ src_prepare() {
|| die "Replacing 'finger' with 'who' failed."
# Adjust paths in the script from /usr/X11R6/bin/ to /opt/bin/ and
# add function to detect default state.
- epatch "${FILESDIR}"/ati-powermode-opt-path-2.patch || die "Failed to epatch powermode-opt-path-2.patch"
+ epatch "${FILESDIR}"/ati-powermode-opt-path-2.patch
+
+ # fix needed for at least hardened-sources, see bug #392753
+ use pax_kernel && epatch "${FILESDIR}"/ati-drivers-redefine-WARN.patch
+
cd "${MODULE_DIR}"