update minimum boost to 1.58, using xenial in travis

This commit is contained in:
Alden Torres 2019-01-06 19:12:55 -05:00 committed by Arvid Norberg
parent 6b04c4f642
commit c128afeebf
6 changed files with 14 additions and 56 deletions

View File

@ -1,5 +1,5 @@
language: cpp language: cpp
dist: trusty dist: xenial
matrix: matrix:
fast_finish: true fast_finish: true
@ -9,13 +9,10 @@ matrix:
- env: variant=debug toolset=gcc lint=1 pylint=1 clang_tidy=1 - env: variant=debug toolset=gcc lint=1 pylint=1 clang_tidy=1
addons: addons:
apt: apt:
sources:
- ubuntu-toolchain-r-test
packages: packages:
- libc++-dev
- python3-pip - python3-pip
- libboost1.55-all-dev - libboost1.58-all-dev
- libboost1.55-tools-dev - libboost1.58-tools-dev
- env: variant=test_debug tests=1 toolset=gcc-sanitizer - env: variant=test_debug tests=1 toolset=gcc-sanitizer
- env: variant=test_debug sim=1 crypto=openssl toolset=gcc-sanitizer - env: variant=test_debug sim=1 crypto=openssl toolset=gcc-sanitizer
- env: variant=test_release coverage=1 tests=1 toolset=gcc-coverage python=1 - env: variant=test_release coverage=1 tests=1 toolset=gcc-coverage python=1
@ -47,15 +44,12 @@ cache:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
addons: addons:
apt: apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:dluxen/cmake-backports'
packages: packages:
- libboost1.55-all-dev - libboost1.58-all-dev
- libboost1.55-tools-dev - libboost1.58-tools-dev
- python2.7-dev - python2.7-dev
- g++-5 - g++-5
- [cmake3, ninja-build] - ninja-build
before_install: before_install:
@ -120,7 +114,7 @@ install:
<linkflags>-static-libgcc ;" >> ~/user-config.jam; <linkflags>-static-libgcc ;" >> ~/user-config.jam;
fi;' fi;'
- 'if [ $clang_tidy == "1" ]; then - 'if [ $clang_tidy == "1" ]; then
echo "using clang_tidy : : clang-tidy "-checks=-clang-analyzer-core.*" : <cxxflags>-std=c++11 <cxxflags>-stdlib=libc++ <linkflags>-stdlib=libc++ ;" >> ~/user-config.jam; echo "using clang_tidy : : clang-tidy "-checks=-clang-analyzer-core.*" : <cxxflags>-std=c++11 <cxxflags>-I/usr/local/clang-7.0.0/include/c++/v1 <cxxflags>-stdlib=libc++ <linkflags>-stdlib=libc++ ;" >> ~/user-config.jam;
fi' fi'
- 'echo "using darwin : : ccache clang++ : <cxxflags>-std=c++11 ;" >> ~/user-config.jam' - 'echo "using darwin : : ccache clang++ : <cxxflags>-std=c++11 ;" >> ~/user-config.jam'
- 'echo "using darwin : ios_sim : ccache clang++ : <cflags>-std=c11 <cxxflags>-std=c++11 <compileflags>-Wno-deprecated-declarations - 'echo "using darwin : ios_sim : ccache clang++ : <cflags>-std=c11 <cxxflags>-std=c++11 <compileflags>-Wno-deprecated-declarations
@ -166,9 +160,9 @@ install:
tar xf gcc-linaro.tar.xz; tar xf gcc-linaro.tar.xz;
export PATH=${PWD}/gcc-linaro-5.3.1-2016.05-x86_64_armv8l-linux-gnueabihf/bin:${PATH}; export PATH=${PWD}/gcc-linaro-5.3.1-2016.05-x86_64_armv8l-linux-gnueabihf/bin:${PATH};
armv8l-linux-gnueabihf-g++ --version; armv8l-linux-gnueabihf-g++ --version;
wget -O boost.zip http://pilotfiber.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.zip; wget -O boost.zip http://pilotfiber.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.zip;
unzip -qq boost.zip; unzip -qq boost.zip;
export BOOST_ROOT=$PWD/boost_1_55_0; export BOOST_ROOT=$PWD/boost_1_58_0;
travis_retry sudo apt-get install -y qemu-user-static; travis_retry sudo apt-get install -y qemu-user-static;
wget -O ubuntu-base.tar.gz http://cdimage.ubuntu.com/ubuntu-base/releases/14.04/release/ubuntu-base-14.04.5-base-armhf.tar.gz; wget -O ubuntu-base.tar.gz http://cdimage.ubuntu.com/ubuntu-base/releases/14.04/release/ubuntu-base-14.04.5-base-armhf.tar.gz;
sudo mkdir rootfs; sudo mkdir rootfs;
@ -179,13 +173,7 @@ install:
fi' fi'
- which python2 - which python2
- |
if [[ $TRAVIS_OS_NAME == "linux" ]] ; then
# There is an outdated cmake in /usr/local/cmake-<version> which we don't want to use
# but /usr/local/cmake-<version>/bin is in $PATH, therefore
# remove all paths containing 'cmake' to use the executable from /usr/bin
export PATH=`echo ${PATH} | awk -v RS=: -v ORS=: '/cmake/ {next} {print}'`
fi
- if [[ "$cmake" == "1" ]]; then - if [[ "$cmake" == "1" ]]; then
which cmake; which cmake;
cmake --version; cmake --version;

View File

@ -1,5 +1,6 @@
1.2 release 1.2 release
* requires boost >= 1.58 to build
* tweak heuristic of how to interpret url seeds in multi-file torrents * tweak heuristic of how to interpret url seeds in multi-file torrents
* support &ipv4= tracker argument for private torrents * support &ipv4= tracker argument for private torrents
* renamed debug_notification to connect_notification * renamed debug_notification to connect_notification

View File

@ -11,19 +11,6 @@
using namespace boost::python; using namespace boost::python;
#if BOOST_VERSION < 103400
// From Boost 1.34
object import(str name)
{
// should be 'char const *' but older python versions don't use 'const' yet.
char *n = extract<char *>(name);
handle<> module(borrowed(PyImport_ImportModule(n)));
return object(module);
}
#endif
object datetime_timedelta; object datetime_timedelta;
object datetime_datetime; object datetime_datetime;

View File

@ -396,7 +396,6 @@ void set_metadata(torrent_handle& handle, std::string const& buf)
} }
#if TORRENT_ABI_VERSION == 1 #if TORRENT_ABI_VERSION == 1
#if BOOST_VERSION > 104200
std::shared_ptr<const torrent_info> get_torrent_info(torrent_handle const& h) std::shared_ptr<const torrent_info> get_torrent_info(torrent_handle const& h)
{ {
@ -404,20 +403,7 @@ std::shared_ptr<const torrent_info> get_torrent_info(torrent_handle const& h)
return h.torrent_file(); return h.torrent_file();
} }
#else #endif // TORRENT_ABI_VERSION
std::shared_ptr<torrent_info> get_torrent_info(torrent_handle const& h)
{
// I can't figure out how to expose shared_ptr<const torrent_info>
// as well as supporting mutable instances. So, this hack is better
// than compilation errors. It seems to work on newer versions of boost though
allow_threading_guard guard;
return std::const_pointer_cast<torrent_info>(h.torrent_file());
}
#endif
#endif // TORRENT_NO_DEPRECAE
void add_piece(torrent_handle& th, piece_index_t piece, char const *data void add_piece(torrent_handle& th, piece_index_t piece, char const *data
, add_piece_flags_t const flags) , add_piece_flags_t const flags)

View File

@ -79,8 +79,8 @@ You'll find boost here__.
__ https://www.boost.org/users/download/#live __ https://www.boost.org/users/download/#live
Extract the archive to some directory where you want it. For the sake of this Extract the archive to some directory where you want it. For the sake of this
guide, let's assume you extract the package to ``c:\boost_1_68_0``. You'll guide, let's assume you extract the package to ``c:\boost_1_69_0``. You'll
need at least version 1.56 of the boost library in order to build libtorrent. need at least version 1.58 of the boost library in order to build libtorrent.
Step 2: Setup BBv2 Step 2: Setup BBv2

View File

@ -52,11 +52,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <chrono> #include <chrono>
#if BOOST_ASIO_DYN_LINK #if BOOST_ASIO_DYN_LINK
#if BOOST_VERSION >= 104500
#include <boost/asio/impl/src.hpp> #include <boost/asio/impl/src.hpp>
#elif BOOST_VERSION >= 104400
#include <boost/asio/impl/src.cpp>
#endif
#endif #endif
using namespace lt; using namespace lt;