diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-08-11 21:58:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-14 08:13:32 +0100 |
commit | fd65379613ad0ee7b1077ba95399884727095a75 (patch) | |
tree | c4b763378e43b3b082cd409756d26f4967fbea4a /meta/classes-global | |
parent | 51aa1c66ddedf3a6b915a464fe3f70924fd5a480 (diff) | |
download | poky-fd65379613ad0ee7b1077ba95399884727095a75.tar.gz |
patchelf: replace a rejected patch with an equivalent uninative.bbclass tweak
This was the original reason to add the patch:
https://git.openembedded.org/openembedded-core/commit/?id=18efcbcb896239c64fedd009ce57f3f0c668cbc0
and this is the upstream discussion which suggests handling
read-only files explicitly outside of patchelf:
https://github.com/NixOS/patchelf/pull/89
(From OE-Core rev: 728775c87a7e35a03408675ce1c7a8cd061b2fda)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-rw-r--r-- | meta/classes-global/uninative.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-global/uninative.bbclass b/meta/classes-global/uninative.bbclass index 4b7fb36449..42c5f8fdf2 100644 --- a/meta/classes-global/uninative.bbclass +++ b/meta/classes-global/uninative.bbclass | |||
@@ -173,5 +173,7 @@ python uninative_changeinterp () { | |||
173 | if not elf.isDynamic(): | 173 | if not elf.isDynamic(): |
174 | continue | 174 | continue |
175 | 175 | ||
176 | os.chmod(f, s[stat.ST_MODE] | stat.S_IWUSR) | ||
176 | subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT) | 177 | subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT) |
178 | os.chmod(f, s[stat.ST_MODE]) | ||
177 | } | 179 | } |