net-fs/openafs-kernel: fix bug 589490
authorAndrew Savchenko <bircoph@gentoo.org>
Sat, 23 Jul 2016 22:01:12 +0000 (01:01 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Sat, 23 Jul 2016 22:01:12 +0000 (01:01 +0300)
Package-Manager: portage-2.3.0
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild

index 9d1e5d134c81f7f9cb62a115ac12709eeb3ce795..03426dd4b55149ad6f73b2cd6347ce8f6b6a06f7 100644 (file)
@@ -114,11 +114,17 @@ pkg_postinst() {
        use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
        use kernel_linux && linux-mod_pkg_postinst
 
-       if use kernel_linux && ! version_is_at_least 1.6.18.2 ${REPLACING_VERSIONS}; then
-               ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
-               ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
-               ewarn "If you only turned this option off for OpenAFS, please re-enable"
-               ewarn "it, as keeping it turned off is a security risk."
+       if use kernel_linux; then
+               local v
+               for v in ${REPLACING_VERSIONS}; do
+                       if ! version_is_at_least 1.6.18.2 ${v}; then
+                               ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
+                               ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
+                               ewarn "If you only turned this option off for OpenAFS, please re-enable"
+                               ewarn "it, as keeping it turned off is a security risk."
+                               break
+                       fi
+               done
        fi
 }