--- ati-drivers-9.8.ebuild.orig 2009-08-29 18:06:53.000000000 +0200 +++ ati-drivers-9.8.ebuild 2009-08-31 09:15:29.000000000 +0200 @@ -125,10 +125,24 @@ eerror " Bus options (PCI etc.) --->" eerror " [*] Message Signaled Interrupts (MSI and MSI-X)" eerror "in the kernel config." die "CONFIG_PCI_MSI disabled" fi + + if linux_chkconfig_present LOCKDEP; then + eerror "You've enabled LOCKDEP -- lock tracking -- in the kernel." + eerror "Unfortunately, this option exports the symbol lock_acquire as GPL-only." + eerror "This prevents ${P} from compiling with an error like this:" + eerror "FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'" + eerror "Please make sure the following options have been unset:" + eerror " Kernel hacking --->" + eerror " [ ] Lock debugging: detect incorrect freeing of live locks" + eerror " [ ] Lock debugging: prove locking correctness" + eerror " [ ] Lock usage statistics" + eerror "in 'menuconfig'" + die "LOCKDEP enabled" + fi } pkg_setup() { # Define module dir. MODULE_DIR="${S}/common/lib/modules/fglrx/build_mod"