When emerging passivetex the build fails because it cannot overwrite the Makefile in the work directory with the portage supplied Makefile. The Makefile in the work directory has perms "-r-xr-xr-x" and an ownership of "portage:portage". My guess is that the copy fails because I'm using userpriv and usersandbox features. Reproducible: Always Steps to Reproduce: 1. Make sure userpriv and usersandbox are in the FEATURES variable. 2. Run "emerge passivetex" Actual Results: setup unpack >>> Unpacking source... >>> Unpacking passivetex.zip to /var/tmp/portage/passivetex-1.4/work/passivetex cp: cannot create regular file `Makefile': Permission denied >>> Source unpacked. compile saxon passivetex.xml passivetex.xsl make: saxon: Command not found make: *** [index.html] Error 127 !!! ERROR: app-text/passivetex-1.4 failed. !!! Function src_compile, Line 24, Exitcode 2 !!! (no error message) Expected Results: The ebuild should of checked the permission on Makefile before trying to overwrite it.
Created attachment 19019 [details, diff] Patch to fix ebuild
the problem is 555 doesnt allow writing to the Makefile. fixed in portage now.