From f7050dee8b708417cd1a2264545db95d35970801 Mon Sep 17 00:00:00 2001 From: wangmy Date: Mon, 29 Nov 2021 23:00:54 +0800 Subject: patchelf: upgrade 0.13 -> 0.14.1 refresh handle-read-only-files.patch (From OE-Core rev: 978f04fc520938b231c236c00582360aea63b364) Signed-off-by: Wang Mingyu Signed-off-by: Richard Purdie --- .../patchelf/patchelf/handle-read-only-files.patch | 15 +++++++++------ meta/recipes-devtools/patchelf/patchelf_0.13.bb | 18 ------------------ meta/recipes-devtools/patchelf/patchelf_0.14.1.bb | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 24 deletions(-) delete mode 100644 meta/recipes-devtools/patchelf/patchelf_0.13.bb create mode 100644 meta/recipes-devtools/patchelf/patchelf_0.14.1.bb diff --git a/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch b/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch index 63080a42d4..8d9a50a697 100644 --- a/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch +++ b/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch @@ -15,10 +15,10 @@ Signed-off-by: Fabio Berton 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/patchelf.cc b/src/patchelf.cc -index fd1e7b7..a941da1 100644 +index 1aeae88..6b77afe 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc -@@ -527,9 +527,19 @@ void ElfFile::sortShdrs() +@@ -534,9 +534,19 @@ void ElfFile::sortShdrs() static void writeFile(const std::string & fileName, const FileContents & contents) { @@ -39,10 +39,10 @@ index fd1e7b7..a941da1 100644 if (fd == -1) error("open"); -@@ -543,6 +553,10 @@ static void writeFile(const std::string & fileName, const FileContents & content - - if (close(fd) != 0) - error("close"); +@@ -564,6 +574,10 @@ static void writeFile(const std::string & fileName, const FileContents & content + if (errno == EINTR) + return; + error("close"); + + if (chmod(fileName.c_str(), st.st_mode) != 0) + error("chmod"); @@ -50,3 +50,6 @@ index fd1e7b7..a941da1 100644 } +-- +2.25.1 + diff --git a/meta/recipes-devtools/patchelf/patchelf_0.13.bb b/meta/recipes-devtools/patchelf/patchelf_0.13.bb deleted file mode 100644 index b24c74a149..0000000000 --- a/meta/recipes-devtools/patchelf/patchelf_0.13.bb +++ /dev/null @@ -1,18 +0,0 @@ -SUMMARY = "Tool to allow editing of RPATH and interpreter fields in ELF binaries" -DESCRIPTION = "PatchELF is a simple utility for modifying existing ELF executables and libraries." -HOMEPAGE = "https://github.com/NixOS/patchelf" - -LICENSE = "GPLv3" - -SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master \ - file://handle-read-only-files.patch \ - " -SRCREV = "a949ff23315bbb5863627c4655fe216ecbf341a2" - -S = "${WORKDIR}/git" - -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" - -inherit autotools - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-devtools/patchelf/patchelf_0.14.1.bb b/meta/recipes-devtools/patchelf/patchelf_0.14.1.bb new file mode 100644 index 0000000000..2b63fbfbc3 --- /dev/null +++ b/meta/recipes-devtools/patchelf/patchelf_0.14.1.bb @@ -0,0 +1,18 @@ +SUMMARY = "Tool to allow editing of RPATH and interpreter fields in ELF binaries" +DESCRIPTION = "PatchELF is a simple utility for modifying existing ELF executables and libraries." +HOMEPAGE = "https://github.com/NixOS/patchelf" + +LICENSE = "GPLv3" + +SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master \ + file://handle-read-only-files.patch \ + " +SRCREV = "8f7b4a7a3648970fe55824cfee2afd3808626a3f" + +S = "${WORKDIR}/git" + +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +inherit autotools + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf