Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Add separate libstdc++6_5.4.0, need for Hugo extended version
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kuznetsov committed Sep 7, 2018
1 parent 80daccf commit 7d5fa85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Expand Up @@ -326,6 +326,11 @@ RUN binrc install spf13/hugo 0.17 -c /opt/buildhome/.binrc | xargs -n 1 -I{} ln
binrc install spf13/hugo 0.48 -c /opt/buildhome/.binrc | xargs -n 1 -I{} ln -s {} /usr/local/bin/hugo_0.48 && \
ln -s /usr/local/bin/hugo_0.17 /usr/local/bin/hugo

RUN mkdir /opt/buildhome/stdc++6 && \
wget -q -O libstdc++6.deb http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb && \
dpkg -x libstdc++6.deb /opt/buildhome/stdc++6 && \
rm -fr libstdc++6.deb

################################################################################
#
# Clojure
Expand Down
4 changes: 4 additions & 0 deletions run-build-functions.sh
Expand Up @@ -440,6 +440,10 @@ install_dependencies() {
if [ $? -eq 0 ]
then
export PATH=$(dirname $hugoOut):$PATH
if [ $(awk 'BEGIN {print ("'$HUGO_VERSION'" >= "'0.43'")}') -eq 1 ] ; then
grep "hugo=" /opt/buildhome/.bashrc || \
echo "alias hugo='LD_LIBRARY_PATH=/opt/buildhome/stdc++6/usr/lib/x86_64-linux-gnu hugo'" >> /opt/buildhome/.bashrc
fi
else
echo "Error during Hugo $HUGO_VERSION install: $hugoOut"
exit 1
Expand Down

0 comments on commit 7d5fa85

Please sign in to comment.