Please revert https://github.com/gentoo/gentoo/commit/f569763b63e3d0159bfb297d295d970e4a890d3c#diff-b1b9511eb9f3dec90a803ea4dccb84fd, version 1.4.2 already includes the fix. The patch was only needed for <1.4.2.
>>> Emerging (1 of 1) sys-cluster/keepalived-1.4.2::gentoo * keepalived-1.4.2.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking keepalived-1.4.2.tar.gz to /var/tmp/portage/sys-cluster/keepalived-1.4.2/work >>> Source unpacked in /var/tmp/portage/sys-cluster/keepalived-1.4.2/work >>> Preparing source in /var/tmp/portage/sys-cluster/keepalived-1.4.2/work/keepalived-1.4.2 ... * Applying keepalived-fix-building-with-linux-headers-4.15.patch ... 1 out of 1 hunk FAILED -- saving rejects to file keepalived/include/vrrp_arp.h.rej [ !! ] * ERROR: sys-cluster/keepalived-1.4.2::gentoo failed (prepare phase): * patch -p1 failed with /var/tmp/portage/sys-cluster/keepalived-1.4.2/files/keepalived-fix-building-with-linux-headers-4.15.patch * * Call stack: * ebuild.sh, line 124: Called src_prepare * environment, line 1323: Called default * phase-functions.sh, line 866: Called default_src_prepare * phase-functions.sh, line 931: Called __eapi6_src_prepare * environment, line 210: Called eapply '/var/tmp/portage/sys-cluster/keepalived-1.4.2/files/keepalived-fix-building-with-linux-headers-4.15.patch' * environment, line 594: Called _eapply_patch '/var/tmp/portage/sys-cluster/keepalived-1.4.2/files/keepalived-fix-building-with-linux-headers-4.15.patch' * environment, line 532: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/sys-cluster/keepalived-1.4.2/files/keepalived-fix-building-with-linux-headers-4.15.patch' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=sys-cluster/keepalived-1.4.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-cluster/keepalived-1.4.2::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-cluster/keepalived-1.4.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/keepalived-1.4.2/temp/environment'. * Working directory: '/var/tmp/portage/sys-cluster/keepalived-1.4.2/work/keepalived-1.4.2' * S: '/var/tmp/portage/sys-cluster/keepalived-1.4.2/work/keepalived-1.4.2' >>> Failed to emerge sys-cluster/keepalived-1.4.2, Log file:
https://github.com/gentoo/gentoo/commit/c62ee8ee6a3c9741e43dcac41439d5f90ce19b47#diff-523473b42d4dfda6f48cdeaa712a6565