summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2023-06-03 09:37:18 -1000
committerSteve Sakoman <steve@sakoman.com>2023-06-27 05:24:36 -1000
commit756bae9bf901474c1bb98d1b5603d22591652e21 (patch)
treefe873a6fa9f48bf7cd94965585e81057abfa3de0
parentec29356556e58c03c79f3b9a6900133f98cfeffe (diff)
downloadpoky-756bae9bf901474c1bb98d1b5603d22591652e21.tar.gz
uninative.bbclass: handle read only files outside of patchelf
We are seeing autobuilder failures with the latest uninative: patchelf: open: Permission denied See upstream discussion which suggests handling read-only files explicitly outside of patchelf: https://github.com/NixOS/patchelf/pull/89 (From OE-Core rev: 3680fcbf9ba327aedb32bb4eb647dd56fcccfd51) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/uninative.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 2940935dd7..4d4f53ad4d 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -169,5 +169,7 @@ python uninative_changeinterp () {
169 if not elf.isDynamic(): 169 if not elf.isDynamic():
170 continue 170 continue
171 171
172 os.chmod(f, s[stat.ST_MODE] | stat.S_IWUSR)
172 subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT) 173 subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT)
174 os.chmod(f, s[stat.ST_MODE])
173} 175}