Bug 157 - Patches for OS X 10.5.8
: Patches for OS X 10.5.8
Status: NEW
Product: TORQUE
pbs_server
: 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:


Attachments
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


Note

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:

u_threadpool.c:
* 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
pthread_cond_timedwait()

configure.ac:
* 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
clock_gettime().

pbs_mkdirs.in:
* "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
USDA-ARS
http://www.public.iastate.edu/~weeks
Comment 1 Nathan Weeks 2011-09-02 13:41:36 MDT
Created an attachment (id=94) [details]
patch
Comment 2 Nathan Weeks 2011-09-02 13:42:46 MDT
Created an attachment (id=95) [details]
u_threadpool.c.patch
Comment 3 Nathan Weeks 2011-09-02 13:43:24 MDT
Created an attachment (id=96) [details]
configure.ac.patch