mirror of
https://git.yoctoproject.org/poky
synced 2026-09-18 15:49:32 +02:00
package.bbclass: If files are unreadable, add read access for stripping
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -192,9 +192,9 @@ def runstrip(file, d):
|
|||||||
return os.system("%s'%s' --strip-debug --remove-section=.comment --remove-section=.note --preserve-dates '%s'" % (pathprefix, strip, file))
|
return os.system("%s'%s' --strip-debug --remove-section=.comment --remove-section=.note --preserve-dates '%s'" % (pathprefix, strip, file))
|
||||||
|
|
||||||
newmode = None
|
newmode = None
|
||||||
if not os.access(file, os.W_OK):
|
if not os.access(file, os.W_OK) or os.access(file, os.R_OK):
|
||||||
origmode = os.stat(file)[stat.ST_MODE]
|
origmode = os.stat(file)[stat.ST_MODE]
|
||||||
newmode = origmode | stat.S_IWRITE
|
newmode = origmode | stat.S_IWRITE | stat.S_IREAD
|
||||||
os.chmod(file, newmode)
|
os.chmod(file, newmode)
|
||||||
|
|
||||||
extraflags = ""
|
extraflags = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user