CONFIG_NF_NAT_IPV4 and CONFIG_NF_NAT_IPV6 were merged into CONFIG_NF_NAT on:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=
3bf195ae6037e310d693ff3313401cfaf1261b71
CONFIG_NF_NAT_MASQUERADE_IPV4 and CONFIG_NF_NAT_MASQUERADE_IPV6 were merged into CONFIG_NF_NAT_MASQUERADE on:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=
d1aca8ab3104aa7131f5ab144c6f586b54df084b
Closes: https://bugs.gentoo.org/691140
Closes: https://github.com/gentoo/gentoo/pull/12559
Signed-off-by: Rodrigo Saboya <saboya@gmail.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
pkg_setup() {
if use connection-sharing; then
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
+ if kernel_is lt 5 1; then
+ CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
+ else
+ CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
+ fi
linux-info_pkg_setup
fi
if use introspection || use test; then
pkg_setup() {
if use connection-sharing; then
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
+ if kernel_is lt 5 1; then
+ CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
+ else
+ CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
+ fi
linux-info_pkg_setup
fi
if use introspection || use test; then