Project

General

Profile

Actions

Bug #9538

closed

rcapd make install fails due to race in subdirs

Added by Toomas Soome about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-05-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

usr/src/cmd/rcap/rcapd has subdirs built in parallel and every subdir is attempting to create link to isaexec. Unfortunately this can result in random order of the actions and the error:

/code/9267/usr/src/cmd/rcap/rcapd/i386
/usr/bin/rm -f /code/9267/proto/root_i386/usr/lib/rcap/i86/rcapd; /code/9267/usr
/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/install -s -m 0555 -f /code/926
7/proto/root_i386/usr/lib/rcap/i86 rcapd
/usr/bin/rm -f /code/9267/proto/root_i386/usr/lib/rcap/rcapd
ln /code/9267/proto/root_i386/usr/lib/isaexec /code/9267/proto/root_i386/usr/lib
/rcap/rcapd
/code/9267/usr/src/cmd/rcap/rcapd/amd64
/usr/bin/rm -f /code/9267/proto/root_i386/usr/lib/rcap/amd64/rcapd; /code/9267/u
sr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/install -s -m 0555 -f /code/9
267/proto/root_i386/usr/lib/rcap/amd64 rcapd
/usr/bin/rm -f /code/9267/proto/root_i386/usr/lib/rcap/rcapd
*** Error code 2 (ignored)
ln /code/9267/proto/root_i386/usr/lib/isaexec /code/9267/proto/root_i386/usr/lib/rcap/rcapd
ln: /code/9267/proto/root_i386/usr/lib/rcap/rcapd: File exists
*** Error code 2
dmake: Warning: Target `install' not remade because of errors
Current working directory /code/9267/usr/src/cmd/rcap/rcapd/amd64
*** Error code 1
The following command caused the error:
cd amd64; pwd; VERSION='illumos-gate' dmake install
dmake: Warning: Target `install' not remade because of errors

Since we only need to create one link to isaexec, the solution is to move this action out from subdirs build rules.

Actions

Also available in: Atom PDF