View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000940 | OpenFOAM | Bug | public | 2013-08-02 14:50 | 2013-08-02 16:50 |
Reporter | Assigned To | ||||
Priority | low | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Other | OS Version | (please specify) |
Summary | 0000940: wmakeScheduler hangs if the lockfile binary is not installed | ||||
Description | wmakeScheduler has an undeclared dependency on the lockfile program from the procmail project. If the lockfile program is not present on the OpenFOAM compilation host and wmakeScheduler is used (as it is for parallel builds), then wmakeScheduler never schedules any jobs and hangs forever. The wmakeScheduler script should include a check to make sure that the lockfile binary is included | ||||
Additional Information | The procmail requirement should be added to the lists of required packages at: http://www.openfoam.org/download/git.php http://www.openfoam.org/download/source.php The following patch adds a check to wmakeScheduler which causes the program to terminate if lockfile is not present: diff --git a/wmake/wmakeScheduler b/wmake/wmakeScheduler index f614e73..2bffa0b 100755 --- a/wmake/wmakeScheduler +++ b/wmake/wmakeScheduler @@ -170,6 +170,11 @@ colourPipe() colourIndex=0 +if ! type -p lockfile 2>/dev/null; then + echo "Could not find executable 'lockfile'" + exit 1; +fi + while : do for slotGroup in $WM_HOSTS | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-08-02 14:50 |
|
New Issue | |
2013-08-02 16:50 |
|
Note Added: 0002364 | |
2013-08-02 16:50 |
|
Status | new => resolved |
2013-08-02 16:50 |
|
Fixed in Version | => 2.2.x |
2013-08-02 16:50 |
|
Resolution | open => fixed |
2013-08-02 16:50 |
|
Assigned To | => user4 |