mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
patchelf: upgrade 0.13 -> 0.14.1
refresh handle-read-only-files.patch (From OE-Core rev: 978f04fc520938b231c236c00582360aea63b364) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -15,10 +15,10 @@ Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
|||||||
1 file changed, 15 insertions(+), 1 deletion(-)
|
1 file changed, 15 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/src/patchelf.cc b/src/patchelf.cc
|
diff --git a/src/patchelf.cc b/src/patchelf.cc
|
||||||
index fd1e7b7..a941da1 100644
|
index 1aeae88..6b77afe 100644
|
||||||
--- a/src/patchelf.cc
|
--- a/src/patchelf.cc
|
||||||
+++ b/src/patchelf.cc
|
+++ b/src/patchelf.cc
|
||||||
@@ -527,9 +527,19 @@ void ElfFile<ElfFileParamNames>::sortShdrs()
|
@@ -534,9 +534,19 @@ void ElfFile<ElfFileParamNames>::sortShdrs()
|
||||||
|
|
||||||
static void writeFile(const std::string & fileName, const FileContents & contents)
|
static void writeFile(const std::string & fileName, const FileContents & contents)
|
||||||
{
|
{
|
||||||
@@ -39,10 +39,10 @@ index fd1e7b7..a941da1 100644
|
|||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
error("open");
|
error("open");
|
||||||
|
|
||||||
@@ -543,6 +553,10 @@ static void writeFile(const std::string & fileName, const FileContents & content
|
@@ -564,6 +574,10 @@ static void writeFile(const std::string & fileName, const FileContents & content
|
||||||
|
if (errno == EINTR)
|
||||||
if (close(fd) != 0)
|
return;
|
||||||
error("close");
|
error("close");
|
||||||
+
|
+
|
||||||
+ if (chmod(fileName.c_str(), st.st_mode) != 0)
|
+ if (chmod(fileName.c_str(), st.st_mode) != 0)
|
||||||
+ error("chmod");
|
+ error("chmod");
|
||||||
@@ -50,3 +50,6 @@ index fd1e7b7..a941da1 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ LICENSE = "GPLv3"
|
|||||||
SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master \
|
SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master \
|
||||||
file://handle-read-only-files.patch \
|
file://handle-read-only-files.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "a949ff23315bbb5863627c4655fe216ecbf341a2"
|
SRCREV = "8f7b4a7a3648970fe55824cfee2afd3808626a3f"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
Reference in New Issue
Block a user