Created attachment 664900 [details, diff] Patch against syncthing-1.10.0.ebuild net-p2p/syncthing lists two acct-*/* in RDEPEND, and needs the corresponding user/group in an fowners call in src_install(). The trouble is that EAPI 7 PMS Section 8 states only BDEPEND and DEPEND dependencies are guaranteed at src_install() time, and so it's possible to attempt src_install when the syncthing user and group do not exist. For instance, trying to build a syncthing binpkg with: emerge -o --onlydeps-with-rdeps=n net-p2p/syncthing && emerge -B net-p2p/syncthing fails in the final src_install(). The attached patch (moving acct-*/* from RDEPEND to DEPEND) resolves the problem.
You are half-right here. On the one hand, it is indeed correct that a package listed in RDEPEND is not guaranteed to be present at build time - thanks for having spotted this! On the other, removing from RDEPEND a package which very much IS used at run time - the OpenRC init script for syncthing uses this user to run the daemon - would be a rather bad idea. Anyway this was fixed with commit bc8427ffe1279b73d2b86427cf2e820ee4cd62dc but I accidentally forgot to tag it with the bug number.