This has undesireable side effects, that result in a broken binary and also stage3's if there is a compile error going on. This is the case for musl at the moment, but there might be other arches affected. The reason for this fix are related to bug #330631, they have been solved by upstream recently. this must go, leaving only emake: src_compile() { # peekfd is a fragile crap hack #330631 nonfatal emake -C src peekfd || touch src/peekfd{.o,} emake } and this too, as it removes peekfd regardless of errors: [[ -s ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/bin/peekfd [[ -e ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/share/man/man1/peekfd.1
this is the fix for old hack: https://gitlab.com/psmisc/psmisc/commit/d14bc4620a59e2d9a162611e6f1d922487f9c8ed
fixed via: https://github.com/gentoo/gentoo/commit/07017c65f32711111ce3184112f22409aa2af0ac