diff options
Diffstat (limited to 'meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch')
-rw-r--r-- | meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch | 17 |
1 files changed, 7 insertions, 10 deletions
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 9fafec4b59..03b0d18a89 100644 --- a/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch +++ b/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch | |||
@@ -1,26 +1,26 @@ | |||
1 | From 2a603acb65993698c21f1c6eb7664f93ad830d52 Mon Sep 17 00:00:00 2001 | 1 | From 7f1fd10cfebd5ea2f3e1938abe1bd1c4828164a7 Mon Sep 17 00:00:00 2001 |
2 | From: Fabio Berton <fabio.berton@ossystems.com.br> | 2 | From: Fabio Berton <fabio.berton@ossystems.com.br> |
3 | Date: Fri, 9 Sep 2016 16:00:42 -0300 | 3 | Date: Fri, 9 Sep 2016 16:00:42 -0300 |
4 | Subject: [PATCH] handle read-only files | 4 | Subject: [PATCH] handle read-only files |
5 | Organization: O.S. Systems Software LTDA. | ||
6 | 5 | ||
7 | Patch from: | 6 | Patch from: |
8 | https://github.com/darealshinji/patchelf/commit/40e66392bc4b96e9b4eda496827d26348a503509 | 7 | https://github.com/darealshinji/patchelf/commit/40e66392bc4b96e9b4eda496827d26348a503509 |
9 | 8 | ||
10 | Upstream-Status: Pending | 9 | Upstream-Status: Denied [https://github.com/NixOS/patchelf/pull/89] |
11 | 10 | ||
12 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> | 11 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> |
12 | |||
13 | --- | 13 | --- |
14 | src/patchelf.cc | 16 +++++++++++++++- | 14 | src/patchelf.cc | 16 +++++++++++++++- |
15 | 1 file changed, 15 insertions(+), 1 deletion(-) | 15 | 1 file changed, 15 insertions(+), 1 deletion(-) |
16 | 16 | ||
17 | diff --git a/src/patchelf.cc b/src/patchelf.cc | 17 | diff --git a/src/patchelf.cc b/src/patchelf.cc |
18 | index 136098f..aea360e 100644 | 18 | index 0b4965adff83..b5db2aef0e8a 100644 |
19 | --- a/src/patchelf.cc | 19 | --- a/src/patchelf.cc |
20 | +++ b/src/patchelf.cc | 20 | +++ b/src/patchelf.cc |
21 | @@ -388,7 +388,17 @@ void ElfFile<ElfFileParamNames>::sortShdrs() | 21 | @@ -497,7 +497,17 @@ void ElfFile<ElfFileParamNames>::sortShdrs() |
22 | 22 | ||
23 | static void writeFile(string fileName) | 23 | static void writeFile(std::string fileName, FileContents contents) |
24 | { | 24 | { |
25 | - int fd = open(fileName.c_str(), O_TRUNC | O_WRONLY); | 25 | - int fd = open(fileName.c_str(), O_TRUNC | O_WRONLY); |
26 | + struct stat st; | 26 | + struct stat st; |
@@ -37,7 +37,7 @@ index 136098f..aea360e 100644 | |||
37 | if (fd == -1) | 37 | if (fd == -1) |
38 | error("open"); | 38 | error("open"); |
39 | 39 | ||
40 | @@ -397,6 +407,10 @@ static void writeFile(string fileName) | 40 | @@ -511,6 +521,10 @@ static void writeFile(std::string fileName, FileContents contents) |
41 | 41 | ||
42 | if (close(fd) != 0) | 42 | if (close(fd) != 0) |
43 | error("close"); | 43 | error("close"); |
@@ -48,6 +48,3 @@ index 136098f..aea360e 100644 | |||
48 | } | 48 | } |
49 | 49 | ||
50 | 50 | ||
51 | -- | ||
52 | 2.1.4 | ||
53 | |||