package.bbclass: Clear umask when using os.mkdir
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Sep 2013 12:36:46 +0000 (12:36 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Sep 2013 15:37:56 +0000 (16:37 +0100)
commit91fdb8158136cef27c01906b3d85920c5dd5568a
tree4c35ea855a396f4f3b8c5858016caba70af74336
parentc8d0305b42f10691765d86a3d49b54f4aa6d3fdd
package.bbclass: Clear umask when using os.mkdir

We switched to using os.mkdir with the file creation mode specified as the
second parameter. Python masks this with umask behind the scenes which isn't
what we want, we really want the permissions we specify.

To avoid this we zero the umask beforehand and restore afterwards. Other
solutions are possible but would not perform as well which is why
we're using os.mkdir in the first place.

Martin Jansa deserves the credit for debugging where the problem was.

(From OE-Core rev: f91226553e39439bfd17ab2b06c56cb8bf41061b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass