Created attachment 443732 [details]
Verified for chromium ebuilds chromium-46.0.2490.42 chromium-47.0.2526.16 and chromium-53.0.2785.34 built with python 3.5 (probably exists in python 2.7 also) using doman as installed by portage-2.3.0.
Builds are using unusual PORTAGE_TMPDIR via /etc/portage/package.env:
to work around fixed-size tmpfs /var/tmp/portage. Apparently doman mangles the resulting build tree pathnames.
Excerpt from failed build log: (whole thing is megs, available on request.)
+ doins -r out/Release/locales
+ doins -r out/Release/resources
+ newman out/Release/chrome.1 chromium.1
install: cannot create regular file ‘/var/tmp/portage.no.tmpfs/portage/www-client/chromium-46.0.2490.42/image//usr/share/man/no/man1/portage.tmpfs/portage/www-client/chromium-46.0.2490.42/temp/.newins_tmp_tmVA6r/chromium.1’: No such file or directory
* ERROR: www-client/chromium-46.0.2490.42::gentoo failed (install phase):
* doman failed
Changing the regex in /usr/lib/portage/python*/ebuild-helpers/doman from:
Solves the problem.
Discussion and other context available at: https://forums.gentoo.org/viewtopic-p-7820972.html