diff options
author | Andrew Savchenko <bircoph@gentoo.org> | 2016-07-24 01:01:12 +0300 |
---|---|---|
committer | Andrew Savchenko <bircoph@gentoo.org> | 2016-07-24 01:01:12 +0300 |
commit | 9f5d55330376720469143aea26540e4e37be1143 (patch) | |
tree | b0a78bda83c15ba150809c575a51a62b4cdb9a29 /net-fs/openafs-kernel | |
parent | net-p2p/syncthing: remove old (diff) | |
download | gentoo-9f5d55330376720469143aea26540e4e37be1143.tar.gz gentoo-9f5d55330376720469143aea26540e4e37be1143.tar.bz2 gentoo-9f5d55330376720469143aea26540e4e37be1143.zip |
net-fs/openafs-kernel: fix bug 589490
Package-Manager: portage-2.3.0
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'net-fs/openafs-kernel')
-rw-r--r-- | net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild index 9d1e5d134c81..03426dd4b551 100644 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild +++ b/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild @@ -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 } |