Bug 157 - Patches for OS X 10.5.8
: Patches for OS X 10.5.8
Status: NEW
Product: TORQUE
: 3.0.x
: Macintosh Mac OS
: P5 normal
Assigned To: David Beer
  Show dependency treegraph
Reported: 2011-09-02 13:40 MDT by Nathan Weeks
Modified: 2011-09-02 13:43 MDT (History)
1 user (show)

See Also:

pbs_mkdirs.in.patch (1.32 KB, patch)
2011-09-02 13:41 MDT, Nathan Weeks
Details | Diff
u_threadpool.c.patch (907 bytes, patch)
2011-09-02 13:42 MDT, Nathan Weeks
Details | Diff
configure.ac.patch (723 bytes, patch)
2011-09-02 13:43 MDT, Nathan Weeks
Details | Diff


You need to log in before you can comment on or make changes to this bug.

Description Nathan Weeks 2011-09-02 13:40:48 MDT
TORQUE 3.0.2 needed a few source-code modifications to compile and run on OS X
10.5.8; patches are attached. A brief summary of the issues fixed:

* All versions of OS X (through 10.7) lack clock_gettime(); this patch works
around this by detecting if clock_gettime() exists in configure.ac, and if not,
use gettimeofday() as suggested in the OS X 10.6/10.7 manual page for

* There is a compilation error when linking librt, as OS X doesn't have such a
library; the suggested workaround to link with librt only if  clock_gettime()
requires it (which it doesn't on some platforms, e.g., FreeBSD). This is in
addition to the previously-mentioned check for the  existence of

* "echo" is a bash builtin, and when bash is invoked as "/bin/sh", the "-e"
option loses its special meaning, causing an "-e" to appear at the beginning of
the first line in the default server_priv/nodes. 

Nathan Weeks
IT Specialist
Comment 1 Nathan Weeks 2011-09-02 13:41:36 MDT
Created an attachment (id=94) [details]
Comment 2 Nathan Weeks 2011-09-02 13:42:46 MDT
Created an attachment (id=95) [details]
Comment 3 Nathan Weeks 2011-09-02 13:43:24 MDT
Created an attachment (id=96) [details]