Skip to content

Commit 5248a9e

Browse files
author
David Bigagli
committed
Don't install liblsfint.a there is no need to distribute it.
Create daemon log directory under prefix.
1 parent 27daf85 commit 5248a9e

28 files changed

+1045
-1653
lines changed

Diff for: .gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
rpms.sh export-ignore
4+
spec/* export-ignore

Diff for: ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2011-09-09 David Bigagli <[email protected]>
2+
3+
* openlava.spec Updated the spec file to reflect the changes in teh build system. The ownership of all files changed, no longer root, the entire installation tree is owned by the openlava user. The daemons to run in multi user mode must still be started at root which is guaranteed at boot by init.
4+
15
2011-08-27 David Bigagli <[email protected]>
26

37
* openlavaconfig.h Removed it from the top directory and merge its content into lsf.h which is the openlava master header file. In this way the repository is more GNU like as well.

Diff for: Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Copyright (C) openlava foundation
33
#
4-
SUBDIRS = lsf config lsbatch lsf/res eauth scripts
4+
SUBDIRS = lsf config lsbatch lsf/res eauth scripts chkpnt
55

66
MISSING_FILES = aclocal.m4
77

Diff for: chkpnt/Makefile

-69
This file was deleted.

Diff for: chkpnt/Makefile.am

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (C) openlava foundation
3+
#
4+
INCLUDES = -I../lsf
5+
6+
sbin_PROGRAMS = echkpnt erestart
7+
8+
echkpnt_SOURCES = echkpnt.c echkpnt.env.c echkpnt.lib.c echkpnt.lib.h echkpnt.env.h
9+
echkpnt_LDADD = ../lsf/lib/liblsf.a
10+
11+
erestart_SOURCES = erestart.c echkpnt.env.c echkpnt.lib.c echkpnt.lib.h echkpnt.env.h
12+
erestart_LDADD = ../lsf/lib/liblsf.a

Diff for: config/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ etc_DATA = openlava openlava.sh openlava.csh \
2424
# kept.
2525
install-data-local:
2626
mkdir -p $(prefix)/work/logdir
27+
mkdir -p $(prefix)/log
2728

2829
# Tell automake to install during distcheck the
2930
# configuration and etc files.

Diff for: config/lsf.conf

-32
This file was deleted.

Diff for: config/openlava

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ case "$opcode" in
4646
;;
4747

4848
'start')
49-
LSF_CONF=$OPENLAVA_TOP/conf/lsf.conf
49+
LSF_CONF=$OPENLAVA_TOP/etc/lsf.conf
5050

5151
if [ -f $LSF_CONF ]
5252
then

Diff for: configure.ac

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ AC_PROG_INSTALL
1717
AC_PROG_RANLIB
1818
AC_PROG_YACC
1919
AC_PROG_LEX
20+
AC_PROG_LN_S
2021
AC_PROG_MAKE_SET
2122

2223
# Force warnings on for gcc
@@ -60,7 +61,8 @@ AC_CONFIG_FILES([
6061
lsbatch/man5/Makefile \
6162
lsbatch/man8/Makefile \
6263
eauth/Makefile \
63-
scripts/Makefile]
64+
scripts/Makefile \
65+
chkpnt/Makefile]
6466
)
6567

6668
AC_OUTPUT

Diff for: lsbatch/bhist/bhist.c

+5-8
Original file line numberDiff line numberDiff line change
@@ -1113,10 +1113,8 @@ logfile_check(struct bhistReq *Req)
11131113
int lineNum = 0, pos = 0;
11141114
LS_STAT_T statBuf;
11151115
struct eventRec *log;
1116-
11171116
static char *envdir;
11181117
static char *clusterName;
1119-
11201118
char ch, *sp;
11211119
struct eventLogFile eLogFile;
11221120
struct eventLogHandle eLogHandle;
@@ -1129,16 +1127,14 @@ logfile_check(struct bhistReq *Req)
11291127
exit(-1);
11301128
}
11311129

1132-
11331130
if (!(Req->options & OPT_ELOGFILE)) {
11341131
if ((clusterName = ls_getclustername()) == NULL ) {
11351132
ls_perror("ls_getclustername()");
11361133
exit(-1);
11371134
}
11381135

1139-
sprintf(workDir, "%s/%s/logdir", bhistParams[LSB_SHAREDIR].paramValue,
1140-
clusterName);
1141-
1136+
sprintf(workDir, "\
1137+
%s/logdir", bhistParams[LSB_SHAREDIR].paramValue);
11421138

11431139
readFromHeadFlag = 1;
11441140
readEventFromHead(workDir, Req);
@@ -1175,9 +1171,10 @@ logfile_check(struct bhistReq *Req)
11751171

11761172
maxEventFile = 0;
11771173
do {
1178-
sprintf(eventFileName, "%s/%s/logdir/lsb.events.%d",
1174+
sprintf(eventFileName, "\
1175+
%s/logdir/lsb.events.%d",
11791176
bhistParams[LSB_SHAREDIR].paramValue,
1180-
clusterName, ++maxEventFile);
1177+
++maxEventFile);
11811178
} while (stat(eventFileName, &statBuf) == 0);
11821179

11831180
if (Req->numLogFile >= maxEventFile) {

Diff for: lsbatch/cmd/Makefile.am

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ bswitch_LDADD = \
122122
../../lsf/lib/liblsf.a \
123123
../../lsf/intlib/liblsfint.a -lnsl -lm
124124

125+
install-data-local:
126+
cd "$(DESTDIR)$(bindir)" && ln -sf bkill bstop
127+
cd "$(DESTDIR)$(bindir)" && ln -sf bkill bresume
128+
cd "$(DESTDIR)$(bindir)" && ln -sf bkill bchkpnt
129+
cd "$(DESTDIR)$(bindir)" && ln -sf bmgroup bugroup
130+
125131
etags :
126132
etags *.[hc] ../*.h ../lib/*.[hc] ../../lsf/*.h ../../lib/*.[hc] \
127133
../../intlib/*.[hc]

Diff for: lsbatch/man1/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
man_MANS = bbot.1 bkill.1 bparams.1 brestart.1 bswitch.1 lsfbatch.1 \
55
bchkpnt.1 bmgroup.1 bpeek.1 bresume.1 btop.1 \
66
bhosts.1 bmig.1 bqueues.1 bstop.1 bugroup.1 \
7-
bjobs.1 bmod.1 brequeue.1 bsub.1 busers.1
7+
bjobs.1 bmod.1 brequeue.1 bsub.1 busers.1
88
#
99
EXTRA_DIST = $(man_MANS)

Diff for: lsf/intlib/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
INCLUDES = -I../
66

7-
lib_LIBRARIES = liblsfint.a
7+
noinst_LIBRARIES = liblsfint.a
88

99
liblsfint_a_SOURCES = admin.c cmdtime.c jidx.c lsftcl.c resreq.c timers.c wait.c \
1010
bitset.c conf.c list.c misc.c userok.c window.c \

0 commit comments

Comments
 (0)