sys-fs/zfs: Only check kernel sources with USE=test-suite
authorRichard Yao <ryao@gentoo.org>
Fri, 9 Oct 2015 15:30:30 +0000 (11:30 -0400)
committerRichard Yao <ryao@gentoo.org>
Fri, 9 Oct 2015 15:31:55 +0000 (11:31 -0400)
Package-Manager: portage-2.2.20.1
Reported-by: Yixun Lan <dlan@gentoo.org>
Signed-off-by: Richard Yao <ryao@gentoo.org>
sys-fs/zfs/zfs-0.6.5.2-r1.ebuild
sys-fs/zfs/zfs-9999.ebuild

index 83049e7f4ec05b97562d85c85cf68e178962509a..d8d2c6426e34a82567648f8fd70bbf5cf06afe26 100644 (file)
@@ -63,7 +63,7 @@ RDEPEND="${COMMON_DEPEND}
 "
 
 pkg_setup() {
-       if use kernel_linux; then
+       if use kernel_linux && use test-suite; then
                linux-info_pkg_setup
                if  ! linux_config_exists; then
                        ewarn "Cannot check the linux kernel configuration."
index 54dd3410ffc3902d8d31ca9c3edf442067f68fd3..8bb60aa0c4545c7751fe5e63dc200c1686472239 100644 (file)
@@ -63,7 +63,7 @@ RDEPEND="${COMMON_DEPEND}
 "
 
 pkg_setup() {
-       if use kernel_linux; then
+       if use kernel_linux && use test-suite; then
                linux-info_pkg_setup
                if  ! linux_config_exists; then
                        ewarn "Cannot check the linux kernel configuration."