emerging dev-vcs/git with USE=-safe-directory fails with the following error: >patch -p1 failed with /var/tmp/portage/dev-vcs/git-2.46.2/files/git-2.37.2-unsafe-directory.patch Here's a patch that fixes it: https://github.com/gentoo/gentoo/pull/38802
*** This bug has been marked as a duplicate of bug 939895 ***