diff options
Diffstat (limited to 'meta/recipes-core/ncurses/files/fix-include-files-race.patch')
-rw-r--r-- | meta/recipes-core/ncurses/files/fix-include-files-race.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/files/fix-include-files-race.patch b/meta/recipes-core/ncurses/files/fix-include-files-race.patch new file mode 100644 index 0000000000..6f22e98332 --- /dev/null +++ b/meta/recipes-core/ncurses/files/fix-include-files-race.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | There is a race condition when running | ||
2 | |||
3 | $ make install.libs install.includes | ||
4 | |||
5 | As both targets install identical files. The remedy is to either prevent | ||
6 | parallel make of install.libs and install.includes, or ensure only one | ||
7 | target installs the files. | ||
8 | The second approch will only work if we always install both libs and | ||
9 | includes (which we do). | ||
10 | |||
11 | |||
12 | Upstream-Status: Inappropriate [configuration] | ||
13 | |||
14 | Index: git/mk-hdr.awk | ||
15 | =================================================================== | ||
16 | --- a/mk-hdr.awk | ||
17 | +++ b/mk-hdr.awk | ||
18 | @@ -73,11 +73,13 @@ BEGIN { | ||
19 | END { | ||
20 | if ( count > 0 ) | ||
21 | { | ||
22 | + print" # patched here: Removed install.libs due the race " | ||
23 | print "${INCLUDEDIR} :" | ||
24 | print " mkdir -p $@" | ||
25 | print "" | ||
26 | + print "install.libs :: ;" | ||
27 | + print "" | ||
28 | print "install \\" | ||
29 | - print "install.libs \\" | ||
30 | print "install.includes :: ${AUTO_SRC} ${INCLUDEDIR} \\" | ||
31 | |||
32 | for (i = 0; i < count - 1; ++i) { | ||