View Issue Details

IDProjectCategoryView StatusLast Update
0000940OpenFOAMBugpublic2013-08-02 16:50
Reporteruser526Assigned Touser4 
PrioritylowSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSOtherOS Version(please specify)
Summary0000940: wmakeScheduler hangs if the lockfile binary is not installed
DescriptionwmakeScheduler 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 InformationThe 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
TagsNo tags attached.

Activities

user4

2013-08-02 16:50

  ~0002364

c81253703b6eaa895bac703b7eca40eab5cb4ebd

Thanks.

Issue History

Date Modified Username Field Change
2013-08-02 14:50 user526 New Issue
2013-08-02 16:50 user4 Note Added: 0002364
2013-08-02 16:50 user4 Status new => resolved
2013-08-02 16:50 user4 Fixed in Version => 2.2.x
2013-08-02 16:50 user4 Resolution open => fixed
2013-08-02 16:50 user4 Assigned To => user4