summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses/files/fix-include-files-race.patch
blob: 6f22e983325c3fc00113fdbf4ba56ae8408cea81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
There is a race condition when running 

    $ make install.libs install.includes
    
As both targets install identical files. The remedy is to either prevent
parallel make of install.libs and install.includes, or ensure only one 
target installs the files. 
The second approch will only work if we always install both libs and 
includes (which we do).


Upstream-Status: Inappropriate [configuration]

Index: git/mk-hdr.awk
===================================================================
--- a/mk-hdr.awk
+++ b/mk-hdr.awk
@@ -73,11 +73,13 @@ BEGIN	{
 END	{
 		if ( count > 0 )
 		{
+			print" # patched here: Removed install.libs due the race "
 			print "${INCLUDEDIR} :"
 			print "	mkdir -p $@"
 			print ""
+			print "install.libs :: ;"
+			print ""
 			print "install \\"
-			print "install.libs \\"
 			print "install.includes :: ${AUTO_SRC} ${INCLUDEDIR} \\"
 
 			for (i = 0; i < count - 1; ++i) {