app-emulation/virtualbox-modules: CONFIG_TRIM_UNUSED_KSYMS breaks modules.
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 26 Aug 2016 05:47:09 +0000 (07:47 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 26 Aug 2016 05:47:23 +0000 (07:47 +0200)
See bug #592138.

Package-Manager: portage-2.3.0
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-emulation/virtualbox-modules/virtualbox-modules-4.3.40.ebuild
app-emulation/virtualbox-modules/virtualbox-modules-5.1.4.ebuild

index a90623b999c17eb6bcc30b03b7f027930ce8a1c5..1d589413554be2faa82fc311ed44e6ac86f7e0d8 100644 (file)
@@ -32,6 +32,10 @@ pkg_setup() {
 
        BUILD_PARAMS="KERN_DIR=${KV_DIR} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
        enewgroup vboxusers
+
+       CONFIG_CHECK="!TRIM_UNUSED_KSYMS"
+       ERROR_TRIM_UNUSED_KSYMS="This option removed kernel symbols that are needed by ${PN} to load correctly."
+
 }
 
 src_prepare() {
index 7da1a80f0c24cd123a8ce123e8f741b1e14ce9b8..5a8bf08db66ffd22c3926f9878fc9b48b966dcf3 100644 (file)
@@ -32,6 +32,10 @@ pkg_setup() {
 
        BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
        enewgroup vboxusers
+
+       CONFIG_CHECK="!TRIM_UNUSED_KSYMS"
+       ERROR_TRIM_UNUSED_KSYMS="This option removed kernel symbols that are needed by ${PN} to load correctly."
+
 }
 
 src_prepare() {