|
@@ -8,78 +8,11 @@ pip install --user cpp-coveralls
|
|
|
pip install --user sphinx
|
|
|
pip install --user sphinx_rtd_theme
|
|
|
|
|
|
-# Increase the environment version to force a rebuild of the packages
|
|
|
-# The version is writen to the cache file after every build of the dependencies
|
|
|
-ENV_VERSION="1"
|
|
|
-ENV_INSTALLED=""
|
|
|
-if [ -e $LOCAL_PKG/.build_env ]; then
|
|
|
- echo "=== No cached build environment ==="
|
|
|
- read -r ENV_INSTALLED < $LOCAL_PKG/.build_env
|
|
|
-fi
|
|
|
+wget https://launchpad.net/~lttng/+archive/ubuntu/ppa/+build/11525342/+files/liburcu-dev_0.9.x+stable+bzr1192+pack30+201612060302~ubuntu14.04.1_amd64.deb
|
|
|
+wget https://launchpad.net/~lttng/+archive/ubuntu/ppa/+build/11525342/+files/liburcu4_0.9.x+stable+bzr1192+pack30+201612060302~ubuntu14.04.1_amd64.deb
|
|
|
+sudo dpkg -i *.deb
|
|
|
+rm *.deb
|
|
|
|
|
|
-# travis caches the $LOCAL_PKG dir. If it is loaded, we don't need to reinstall the packages
|
|
|
-if [ "$ENV_VERSION" = "$ENV_INSTALLED" ]; then
|
|
|
- echo "=== The build environment is current ==="
|
|
|
- # Print version numbers
|
|
|
- clang --version
|
|
|
- g++ --version
|
|
|
- cppcheck --version
|
|
|
- valgrind --version
|
|
|
- exit 0
|
|
|
-fi
|
|
|
-
|
|
|
-echo "=== The build environment is outdated ==="
|
|
|
-
|
|
|
-# Clean up
|
|
|
-rm -rf $LOCAL_PKG/*
|
|
|
-
|
|
|
-# Install newer valgrind
|
|
|
-echo "=== Installing valgrind ==="
|
|
|
-wget http://valgrind.org/downloads/valgrind-3.11.0.tar.bz2
|
|
|
-tar xf valgrind-3.11.0.tar.bz2
|
|
|
-cd valgrind-3.11.0
|
|
|
-./configure --prefix=$LOCAL_PKG
|
|
|
-make -s -j8 install
|
|
|
-cd ..
|
|
|
-
|
|
|
-# Install specific check version which is not yet in the apt package
|
|
|
-echo "=== Installing check ==="
|
|
|
-mkdir tmp_check
|
|
|
-wget http://ftp.de.debian.org/debian/pool/main/c/check/check_0.10.0-3+b1_amd64.deb
|
|
|
-dpkg -x check_0.10.0-3+b1_amd64.deb ./tmp_check
|
|
|
-# change pkg-config file path
|
|
|
-sed -i "s|prefix=/usr|prefix=${LOCAL_PKG}|g" ./tmp_check/usr/lib/x86_64-linux-gnu/pkgconfig/check.pc
|
|
|
-sed -i 's|libdir=.*|libdir=${prefix}/lib|g' ./tmp_check/usr/lib/x86_64-linux-gnu/pkgconfig/check.pc
|
|
|
-# move files to globally included dirs
|
|
|
-cp -R ./tmp_check/usr/lib/x86_64-linux-gnu/* $LOCAL_PKG/lib/
|
|
|
-cp -R ./tmp_check/usr/include/* $LOCAL_PKG/include/
|
|
|
-cp -R ./tmp_check/usr/bin/* $LOCAL_PKG/
|
|
|
-
|
|
|
-# Install specific liburcu version which is not yet in the apt package
|
|
|
-echo "=== Installing liburcu ==="
|
|
|
-mkdir tmp_liburcu
|
|
|
-wget https://launchpad.net/ubuntu/+source/liburcu/0.8.5-1ubuntu1/+build/6513813/+files/liburcu2_0.8.5-1ubuntu1_amd64.deb
|
|
|
-wget https://launchpad.net/ubuntu/+source/liburcu/0.8.5-1ubuntu1/+build/6513813/+files/liburcu-dev_0.8.5-1ubuntu1_amd64.deb
|
|
|
-dpkg -x liburcu2_0.8.5-1ubuntu1_amd64.deb ./tmp_liburcu
|
|
|
-dpkg -x liburcu-dev_0.8.5-1ubuntu1_amd64.deb ./tmp_liburcu
|
|
|
-# move files to globally included dirs
|
|
|
-cp -R ./tmp_liburcu/usr/lib/x86_64-linux-gnu/* $LOCAL_PKG/lib/
|
|
|
-cp -R ./tmp_liburcu/usr/include/* $LOCAL_PKG/include/
|
|
|
-
|
|
|
-# Install newer cppcheck
|
|
|
-echo "=== Installing cppcheck ==="
|
|
|
-wget https://github.com/danmar/cppcheck/archive/1.73.tar.gz -O cppcheck-1.73.tar.gz
|
|
|
-tar xf cppcheck-1.73.tar.gz
|
|
|
-cd cppcheck-1.73
|
|
|
-make PREFIX="$LOCAL_PKG" SRCDIR=build CFGDIR="$LOCAL_PKG/cppcheck-cfg" HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function" -j8
|
|
|
-make PREFIX="$LOCAL_PKG" SRCDIR=build CFGDIR="$LOCAL_PKG/cppcheck-cfg" HAVE_RULES=yes install
|
|
|
-cd ..
|
|
|
-
|
|
|
-# create cached flag
|
|
|
-echo "=== Store cache flag ==="
|
|
|
-echo $ENV_VERSION > $LOCAL_PKG/.build_env
|
|
|
-
|
|
|
-# Print version numbers
|
|
|
echo "=== Installed versions are ==="
|
|
|
clang --version
|
|
|
g++ --version
|