summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/patchelf/patchelf_0.18.0.bb
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2023-07-31 21:10:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-01 09:51:20 +0100
commitd505ab5ea561bf5c501e7417a17d72bacfe3dadf (patch)
treed890d95dc58b3d962aef166b61e1c86e79825db1 /meta/recipes-devtools/patchelf/patchelf_0.18.0.bb
parent57975742361c6ad36a51115145358db350ef650f (diff)
downloadpoky-d505ab5ea561bf5c501e7417a17d72bacfe3dadf.tar.gz
patchelf: add 3 fixes to optimize and fix uninative
* uninative-3.10 and 4.0 doesn't work on e.g. ubuntu-18.04, because patchelf-uninative makes the binaries unusable and e.g. mkfs.ext4 segfaults in loader, see: https://github.com/NixOS/patchelf/issues/492 * mke2fs.real, mkfs.ext2.real, mkfs.ext3.real, mkfs.ext4.real are indentical binary with multiple hardlinks and we end calling patchelf-uninative 4 times even when the interpreter is already set correctly from the build The issue was reported upstream with mkfs.ext4.real as possible reproducer: https://github.com/NixOS/patchelf/issues/492#issuecomment-1602862272 To fix uninative we need to first release new uninative tarball and then upgrade it in master, mickledore, kirkstone, dunfell * originally reported in: https://lists.openembedded.org/g/openembedded-core/message/182862 with temporary work around (applicable locally without waiting for new uninative release): https://lists.openembedded.org/g/openembedded-core/message/183314 (From OE-Core rev: f0499b58d1dd149300a349dde8f6664679df13e6) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/patchelf/patchelf_0.18.0.bb')
-rw-r--r--meta/recipes-devtools/patchelf/patchelf_0.18.0.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/patchelf/patchelf_0.18.0.bb b/meta/recipes-devtools/patchelf/patchelf_0.18.0.bb
index e8bc2ff83d..dece34240c 100644
--- a/meta/recipes-devtools/patchelf/patchelf_0.18.0.bb
+++ b/meta/recipes-devtools/patchelf/patchelf_0.18.0.bb
@@ -4,7 +4,11 @@ HOMEPAGE = "https://github.com/NixOS/patchelf"
4 4
5LICENSE = "GPL-3.0-only" 5LICENSE = "GPL-3.0-only"
6 6
7SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master" 7SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master \
8 file://0001-Set-interpreter-only-when-necessary.patch \
9 file://0002-align-startOffset-with-p_align-instead-of-pagesize-f.patch \
10 file://0003-make-LOAD-segment-extensions-based-on-p_align-instea.patch \
11"
8SRCREV = "99c24238981b7b1084313aca8f5c493bb46f302c" 12SRCREV = "99c24238981b7b1084313aca8f5c493bb46f302c"
9 13
10S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"