Adding the following line will correct it: -e "/^mandir /s:=.*:= ${EPREFIX}/usr/share/man:" I had permission from chithead (x11 team) and radhermit (base-system team) to make this change to the ebuild before I discovered that it had been forked by the prefix team. The existing main tree ebuild already has some minor changes for prefix support. Is there any chance that we could merge the prefix overlay specific changes back into the main tree with this additional change and kill the prefix overlay version? Note that I am practicing filing bug reports with my iPad, so I will attach the actual build.log file from the failure in a follow-up post.
Created attachment 327554 [details] build.log
Fixed in prefix overlay. The merge of the ebuild in prefix and in gx86 should be a separate bug.