From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][dunfell 10/14] uninative.bbclass: handle read only files outside of patchelf
Date: Thu, 22 Jun 2023 05:31:39 -1000 [thread overview]
Message-ID: <3680fcbf9ba327aedb32bb4eb647dd56fcccfd51.1687446532.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1687446532.git.steve@sakoman.com>
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
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
meta/classes/uninative.bbclass | 2 ++
1 file changed, 2 insertions(+)
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 () {
if not elf.isDynamic():
continue
+ os.chmod(f, s[stat.ST_MODE] | stat.S_IWUSR)
subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT)
+ os.chmod(f, s[stat.ST_MODE])
}
--
2.34.1
next prev parent reply other threads:[~2023-06-22 15:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-22 15:31 [OE-core][dunfell 00/14] Patch review Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 01/14] cups: Fix CVE-2023-32324 Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 02/14] openssl: CVE-2023-2650 Possible DoS translating ASN.1 object identifiers Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 03/14] cve-update-nvd2-native: new CVE database fetcher Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 04/14] cve-update-nvd2-native: added the missing http import Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 05/14] uninative: Ensure uninative is enabled in all cases for BuildStarted event Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 06/14] uninative: Upgrade to 3.8.1 to include libgcc Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 07/14] uninative: Upgrade to 3.9 to include glibc 2.37 Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 08/14] uninative: Upgrade to 3.10 to support gcc 13 Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 09/14] uninative: Upgrade to 4.0 to include latest gcc 13.1.1 Steve Sakoman
2023-06-22 15:31 ` Steve Sakoman [this message]
2023-06-22 15:31 ` [OE-core][dunfell 11/14] kernel-fitimage: adding support for Initramfs bundle and u-boot script Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 12/14] kernel-fitimage: use correct kernel image Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 13/14] systemd-systemctl: fix instance template WantedBy symlink construction Steve Sakoman
2023-06-22 15:31 ` [OE-core][dunfell 14/14] systemd-systemctl: support instance expansion in WantedBy Steve Sakoman
2023-08-02 12:05 ` [OE-core][dunfell 00/14] Patch review Marta Rybczynska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3680fcbf9ba327aedb32bb4eb647dd56fcccfd51.1687446532.git.steve@sakoman.com \
--to=steve@sakoman.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox