Skip to content
Snippets Groups Projects
Commit 4c7781e1 authored by Lennart Kramer's avatar Lennart Kramer
Browse files

change buildscript to use github mirror

Sourceforge can be unreliable at times and gives
weird errors, and since we already depend on github
anyway for the sbcl source, we might as well change
the sourceforge dependency from maxima to a github
mirror.
parent d05444e0
No related branches found
No related tags found
No related merge requests found
...@@ -7,10 +7,9 @@ echo ${MAXIMA_VERSION?Error \$MAXIMA_VERSION is not defined} \ ...@@ -7,10 +7,9 @@ echo ${MAXIMA_VERSION?Error \$MAXIMA_VERSION is not defined} \
${SBCL_VERSION?Error \$SBCL_VERSION is not defined} ${SBCL_VERSION?Error \$SBCL_VERSION is not defined}
apt-get update apt-get update
apt-get install -y bzip2 make wget python3 gcc texinfo curl libcap2-bin apt-get install -y bzip2 make wget python3 gcc texinfo curl libcap2-bin git autoconf
mkdir -p ${SRC} mkdir -p ${SRC}
wget "https://sourceforge.net/projects/maxima/files/Maxima-source/${MAXIMA_VERSION}-source/maxima-${MAXIMA_VERSION}.tar.gz" -O "${SRC}/maxima-${MAXIMA_VERSION}.tar.gz"
wget "https://github.com/sbcl/sbcl/archive/refs/tags/sbcl-${SBCL_VERSION}.tar.gz" -O "${SRC}/sbcl-${SBCL_VERSION}.tar.gz" wget "https://github.com/sbcl/sbcl/archive/refs/tags/sbcl-${SBCL_VERSION}.tar.gz" -O "${SRC}/sbcl-${SBCL_VERSION}.tar.gz"
# Compile sbcl (installs and removes debian sbcl for bootstrapping) # Compile sbcl (installs and removes debian sbcl for bootstrapping)
...@@ -24,11 +23,11 @@ echo "\"$SBCL_VERSION\"" > version.lisp-expr ...@@ -24,11 +23,11 @@ echo "\"$SBCL_VERSION\"" > version.lisp-expr
apt remove -y sbcl apt remove -y sbcl
./install.sh ./install.sh
# Compile maxima
cd ${SRC} cd ${SRC}
tar -xf maxima-${MAXIMA_VERSION}.tar.gz git clone --depth 1 --branch "$MAXIMA_VERSION" "https://github.com/mathinstitut/maxima-mirror" maxima
rm maxima-${MAXIMA_VERSION}.tar.gz # Compile maxima
cd maxima-${MAXIMA_VERSION} cd maxima
autoreconf -i
./configure ./configure
make make
make install make install
...@@ -43,5 +42,5 @@ gcc -shared maxima_fork.c -lbsd -fPIC -Wall -Wextra -DN_SLOT="${MAX_USER}" -o li ...@@ -43,5 +42,5 @@ gcc -shared maxima_fork.c -lbsd -fPIC -Wall -Wextra -DN_SLOT="${MAX_USER}" -o li
mv libmaximafork.so /usr/lib mv libmaximafork.so /usr/lib
rm -r ${SRC} /maxima_fork.c rm -r ${SRC} /maxima_fork.c
mkdir -p ${LIB} ${LOG} ${TMP} ${PLOT} ${ASSETS} ${BIN} mkdir -p ${LIB} ${LOG} ${TMP} ${PLOT} ${ASSETS} ${BIN}
apt-get purge -y bzip2 make wget python3 gcc texinfo apt-get purge -y bzip2 make wget python3 gcc texinfo libcap2-bin git autoconf
apt-get autoremove -y apt-get autoremove -y
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment