Function names git-r3_pkg_needrebuild and pkg_needrebuild are reserved names and must not be used. Policy reference: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17
After the PMS update from bug 843779, this will no longer be an issue. Closing.