summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_deb.bbclass4
-rw-r--r--meta/classes/package_ipk.bbclass2
-rw-r--r--meta/classes/package_rpm.bbclass6
-rw-r--r--meta/classes/sanity.bbclass4
-rw-r--r--meta/classes/sstate.bbclass6
-rw-r--r--meta/classes/terminal.bbclass2
-rw-r--r--meta/lib/oe/package_manager.py4
-rw-r--r--meta/lib/oe/patch.py4
-rw-r--r--meta/lib/oe/sdk.py4
9 files changed, 18 insertions, 18 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index e1d05a74c2..bb5220ed00 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -117,7 +117,7 @@ python do_package_deb () {
117 117
118 controldir = os.path.join(root, 'DEBIAN') 118 controldir = os.path.join(root, 'DEBIAN')
119 bb.utils.mkdirhier(controldir) 119 bb.utils.mkdirhier(controldir)
120 os.chmod(controldir, 0755) 120 os.chmod(controldir, 0o755)
121 try: 121 try:
122 import codecs 122 import codecs
123 ctrlfile = codecs.open(os.path.join(controldir, 'control'), 'w', 'utf-8') 123 ctrlfile = codecs.open(os.path.join(controldir, 'control'), 'w', 'utf-8')
@@ -293,7 +293,7 @@ python do_package_deb () {
293 scriptfile.write(scriptvar[pos:]) 293 scriptfile.write(scriptvar[pos:])
294 scriptfile.write('\n') 294 scriptfile.write('\n')
295 scriptfile.close() 295 scriptfile.close()
296 os.chmod(os.path.join(controldir, script), 0755) 296 os.chmod(os.path.join(controldir, script), 0o755)
297 297
298 conffiles_str = ' '.join(get_conffiles(pkg, d)) 298 conffiles_str = ' '.join(get_conffiles(pkg, d))
299 if conffiles_str: 299 if conffiles_str:
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index f1ad1d5c17..08f7020a9e 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -225,7 +225,7 @@ python do_package_ipk () {
225 raise bb.build.FuncFailed("unable to open %s script file for writing." % script) 225 raise bb.build.FuncFailed("unable to open %s script file for writing." % script)
226 scriptfile.write(scriptvar) 226 scriptfile.write(scriptvar)
227 scriptfile.close() 227 scriptfile.close()
228 os.chmod(os.path.join(controldir, script), 0755) 228 os.chmod(os.path.join(controldir, script), 0o755)
229 229
230 conffiles_str = ' '.join(get_conffiles(pkg, d)) 230 conffiles_str = ' '.join(get_conffiles(pkg, d))
231 if conffiles_str: 231 if conffiles_str:
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 7d523a16f8..f9398a9522 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -63,7 +63,7 @@ def write_rpm_perfiledata(srcname, d):
63 dump_filerdeps('RDEPENDS', dependsfile, d) 63 dump_filerdeps('RDEPENDS', dependsfile, d)
64 64
65 dependsfile.close() 65 dependsfile.close()
66 os.chmod(outdepends, 0755) 66 os.chmod(outdepends, 0o755)
67 67
68 # OE-core / RPM Provides 68 # OE-core / RPM Provides
69 outprovides = workdir + "/" + srcname + ".provides" 69 outprovides = workdir + "/" + srcname + ".provides"
@@ -76,7 +76,7 @@ def write_rpm_perfiledata(srcname, d):
76 dump_filerdeps('RPROVIDES', providesfile, d) 76 dump_filerdeps('RPROVIDES', providesfile, d)
77 77
78 providesfile.close() 78 providesfile.close()
79 os.chmod(outprovides, 0755) 79 os.chmod(outprovides, 0o755)
80 80
81 return (outdepends, outprovides) 81 return (outdepends, outprovides)
82 82
@@ -702,7 +702,7 @@ python do_package_rpm () {
702 pkgarch = d.expand('${PACKAGE_ARCH_EXTEND}${HOST_VENDOR}-${HOST_OS}') 702 pkgarch = d.expand('${PACKAGE_ARCH_EXTEND}${HOST_VENDOR}-${HOST_OS}')
703 magicfile = d.expand('${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc') 703 magicfile = d.expand('${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc')
704 bb.utils.mkdirhier(pkgwritedir) 704 bb.utils.mkdirhier(pkgwritedir)
705 os.chmod(pkgwritedir, 0755) 705 os.chmod(pkgwritedir, 0o755)
706 706
707 cmd = rpmbuild 707 cmd = rpmbuild
708 cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + " --buildroot " + pkgd 708 cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + " --buildroot " + pkgd
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index a392bc29d1..addeab66c5 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -841,8 +841,8 @@ def check_sanity_everybuild(status, d):
841 841
842 check_supported_distro(d) 842 check_supported_distro(d)
843 843
844 omask = os.umask(022) 844 omask = os.umask(0o022)
845 if omask & 0755: 845 if omask & 0o755:
846 status.addresult("Please use a umask which allows a+rx and u+rwx\n") 846 status.addresult("Please use a umask which allows a+rx and u+rwx\n")
847 os.umask(omask) 847 os.umask(omask)
848 848
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6bf94b0ec7..994eae6eaa 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -655,9 +655,9 @@ python sstate_task_postfunc () {
655 sstate_install(shared_state, d) 655 sstate_install(shared_state, d)
656 for intercept in shared_state['interceptfuncs']: 656 for intercept in shared_state['interceptfuncs']:
657 bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),)) 657 bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),))
658 omask = os.umask(002) 658 omask = os.umask(0o002)
659 if omask != 002: 659 if omask != 0o002:
660 bb.note("Using umask 002 (not %0o) for sstate packaging" % omask) 660 bb.note("Using umask 0o002 (not %0o) for sstate packaging" % omask)
661 sstate_package(shared_state, d) 661 sstate_package(shared_state, d)
662 os.umask(omask) 662 os.umask(omask)
663} 663}
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index 9f4c24e906..a94f755a40 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -29,7 +29,7 @@ def emit_terminal_func(command, envdata, d):
29 bb.data.emit_func(cmd_func, script, envdata) 29 bb.data.emit_func(cmd_func, script, envdata)
30 script.write(cmd_func) 30 script.write(cmd_func)
31 script.write("\n") 31 script.write("\n")
32 os.chmod(runfile, 0755) 32 os.chmod(runfile, 0o755)
33 33
34 return runfile 34 return runfile
35 35
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 79b3206621..3bc4ebf5b4 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1090,8 +1090,8 @@ class RpmPM(PackageManager):
1090 native_root) 1090 native_root)
1091 open(self.scriptlet_wrapper, 'w+').write(scriptlet_content) 1091 open(self.scriptlet_wrapper, 'w+').write(scriptlet_content)
1092 1092
1093 bb.note("Configuring RPM cross-install scriptlet_wrapper") 1093 bb.note("configuring RPM cross-install scriptlet_wrapper")
1094 os.chmod(self.scriptlet_wrapper, 0755) 1094 os.chmod(self.scriptlet_wrapper, 0o755)
1095 cmd = 'config --set rpm-extra-macros._cross_scriptlet_wrapper=%s' % \ 1095 cmd = 'config --set rpm-extra-macros._cross_scriptlet_wrapper=%s' % \
1096 self.scriptlet_wrapper 1096 self.scriptlet_wrapper
1097 self._invoke_smart(cmd) 1097 self._invoke_smart(cmd)
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 9d36172909..a25fd527f6 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -434,7 +434,7 @@ class GitApplyTree(PatchTree):
434 # change other places which read it back 434 # change other places which read it back
435 f.write('echo >> $1\n') 435 f.write('echo >> $1\n')
436 f.write('echo "%s: $PATCHFILE" >> $1\n' % GitApplyTree.patch_line_prefix) 436 f.write('echo "%s: $PATCHFILE" >> $1\n' % GitApplyTree.patch_line_prefix)
437 os.chmod(commithook, 0755) 437 os.chmod(commithook, 0o755)
438 shutil.copy2(commithook, applyhook) 438 shutil.copy2(commithook, applyhook)
439 try: 439 try:
440 patchfilevar = 'PATCHFILE="%s"' % os.path.basename(patch['file']) 440 patchfilevar = 'PATCHFILE="%s"' % os.path.basename(patch['file'])
@@ -672,7 +672,7 @@ class UserResolver(Resolver):
672 f.write("echo 'Run \"quilt refresh\" when patch is corrected, press CTRL+D to exit.'\n") 672 f.write("echo 'Run \"quilt refresh\" when patch is corrected, press CTRL+D to exit.'\n")
673 f.write("echo ''\n") 673 f.write("echo ''\n")
674 f.write(" ".join(patchcmd) + "\n") 674 f.write(" ".join(patchcmd) + "\n")
675 os.chmod(rcfile, 0775) 675 os.chmod(rcfile, 0o775)
676 676
677 self.terminal("bash --rcfile " + rcfile, 'Patch Rejects: Please fix patch rejects manually', self.patchset.d) 677 self.terminal("bash --rcfile " + rcfile, 'Patch Rejects: Please fix patch rejects manually', self.patchset.d)
678 678
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index f1bbef6f58..4786cc5aac 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -251,12 +251,12 @@ class OpkgSdk(Sdk):
251 self.mkdirhier(target_sysconfdir) 251 self.mkdirhier(target_sysconfdir)
252 shutil.copy(self.target_conf, target_sysconfdir) 252 shutil.copy(self.target_conf, target_sysconfdir)
253 os.chmod(os.path.join(target_sysconfdir, 253 os.chmod(os.path.join(target_sysconfdir,
254 os.path.basename(self.target_conf)), 0644) 254 os.path.basename(self.target_conf)), 0o644)
255 255
256 self.mkdirhier(host_sysconfdir) 256 self.mkdirhier(host_sysconfdir)
257 shutil.copy(self.host_conf, host_sysconfdir) 257 shutil.copy(self.host_conf, host_sysconfdir)
258 os.chmod(os.path.join(host_sysconfdir, 258 os.chmod(os.path.join(host_sysconfdir,
259 os.path.basename(self.host_conf)), 0644) 259 os.path.basename(self.host_conf)), 0o644)
260 260
261 native_opkg_state_dir = os.path.join(self.sdk_output, self.sdk_native_path, 261 native_opkg_state_dir = os.path.join(self.sdk_output, self.sdk_native_path,
262 self.d.getVar('localstatedir_nativesdk', True).strip('/'), 262 self.d.getVar('localstatedir_nativesdk', True).strip('/'),