Last active
September 18, 2021 09:16
-
-
Save Jamesits/6a46fdc5c8c5815517158448895a9332 to your computer and use it in GitHub Desktop.
OpenLava 4.0 compile script for vanilla Debian 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| apt-get update -y | |
| apt-get install -y build-essential libncurses-dev tcl-dev autoconf automake | |
| patch --strip=1 --forward < lim.patch | |
| aclocal | |
| automake | |
| ./configure --prefix=/usr/local | |
| make -j | |
| make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GPLv2 or later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lsf/lim/lim.h b/lsf/lim/lim.h | |
| index f877696..8903eac 100644 | |
| --- a/lsf/lim/lim.h | |
| +++ b/lsf/lim/lim.h | |
| @@ -204,8 +204,8 @@ struct liStruct { | |
| float satvalue; | |
| float value; | |
| }; | |
| -int li_len; | |
| -struct liStruct *li; | |
| +extern int li_len; | |
| +extern struct liStruct *li; | |
| #define SEND_NO_INFO 0x00 | |
| #define SEND_CONF_INFO 0x01 | |
| diff --git a/lsf/lim/lim.main.c b/lsf/lim/lim.main.c | |
| index 1f35cb0..39d9a2c 100644 | |
| --- a/lsf/lim/lim.main.c | |
| +++ b/lsf/lim/lim.main.c | |
| @@ -22,6 +22,9 @@ | |
| extern char *argvmsg_(int argc, char **argv); | |
| +int li_len; | |
| +struct liStruct *li; | |
| + | |
| int limSock = -1; | |
| int limTcpSock = -1; | |
| uint16_t lim_port; | |
| diff --git a/lsf/res/res.c b/lsf/res/res.c | |
| index a73320b..d65a372 100644 | |
| --- a/lsf/res/res.c | |
| +++ b/lsf/res/res.c | |
| @@ -216,7 +216,7 @@ main(int argc, char **argv) | |
| resParams[LSF_LOGDIR].paramValue = sp; | |
| ls_openlog("res", resParams[LSF_LOGDIR].paramValue, (debug > 1), | |
| resParams[LSF_LOG_MASK].paramValue); | |
| - ls_syslog(LOG_ERR, "%s: failed in initenv_(%s)", pathname); | |
| + ls_syslog(LOG_ERR, "%s: failed in initenv_(%s)", argv[0], pathname); | |
| ls_syslog(LOG_ERR, "res: exiting"); | |
| return -1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment