Allan McRae wrote:
I think these are really the same issue. makepkg extracts files with the system umask, which if not sane can cause problems if file are then installed poorly. I've added a comment in FS#9242 showing that I think the opera install.sh uses "cp" to install files.
The only justification I can think of to fix this is if for some reason extracting with such permissions causes a package not to actually build. Then we should probably set the umask earlier. Can this happen other than with a really stupid umask? Otherwise, a check of the current umask could be added and a warning printed if not 0022.
Ah yes, indeed, that's it. I couldn't figure that out alone :) Well, attaching a patch to set the umask earlier. That seems to work fine.