bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Race condition during ncurses installation


From: Bystricky, Juro
Subject: Race condition during ncurses installation
Date: Fri, 11 Mar 2016 23:20:25 +0000

Hello ncurses maintainers,

 

There is a race condition using parallel make installing ncurses when installing explicit targets:

 

make install.libs install.includes

 

Both targets install identicall files, often resulting in an error such as :

/usr/bin/install: cannot create regular file '/data/master-ab/poky/build-ab/tmp/work/core2-64-poky-linux/ncurses/6.0+20160213-r0/image/usr/include/termcap.h': File exists

 

The race is relatively easy to fix, i.e. add statement such as

 

.NOTPARALLEL install.libs install.includes

 

in the file mk-hdr.awk

While this would prevent the race, several identical files would be still

installed twice (still assuming installing via “make install.libs install.includes “).

 

Is it fair to assume install.libs is a superset of install.includes?

In other words, is

 

make install.libs

 

meant to be an equivalent to:

 

make install.libs install.includes

 

BTW, I should mention that “make install.libs install.includes” has been used in Yocto ncurses recipes

for years (instead of a generic “make install”) in order to better granulate installed ncurses components.

 

Thanks

 

Juro Bystricky

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]