Browse Source

Re-add support for G++ 4.8 and configure travis to use it

This makes tests work again!

Gbp-Dch: ignore
tags/debian/1.1.exp9
Julian Andres Klode 5 years ago
parent
commit
3dddcdf243
5 changed files with 10 additions and 8 deletions
  1. +5
    -3
      .travis.yml
  2. +2
    -2
      apt-pkg/cacheset.h
  3. +1
    -1
      apt-private/private-cachefile.cc
  4. +1
    -1
      apt-private/private-cacheset.cc
  5. +1
    -1
      debian/control

+ 5
- 3
.travis.yml View File

@@ -4,6 +4,8 @@ before_install:
- sudo apt-get update -q
install:
- sudo ./prepare-release travis-ci
- export CC=gcc-5
- export CXX=g++-5
script: make -j1 && make test && test/integration/run-tests
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get -qq install g++-4.8
- export CXX=g++-4.8
script: make && make test && test/integration/run-tests

+ 2
- 2
apt-pkg/cacheset.h View File

@@ -407,7 +407,7 @@ public: /*{{{*/
bool empty() const APT_OVERRIDE { return _cont.empty(); }
void clear() APT_OVERRIDE { return _cont.clear(); }
size_t size() const APT_OVERRIDE { return _cont.size(); }
#if __cplusplus >= 201103L
#if __GNUC__ >= 5 || (__GNUC_MINOR__ >= 9 && __GNUC__ >= 4)
iterator erase( const_iterator pos ) { return iterator(_cont.erase(pos._iter)); }
iterator erase( const_iterator first, const_iterator last ) { return iterator(_cont.erase(first._iter, last._iter)); }
#else
@@ -897,7 +897,7 @@ public: /*{{{*/
bool empty() const APT_OVERRIDE { return _cont.empty(); }
void clear() APT_OVERRIDE { return _cont.clear(); }
size_t size() const APT_OVERRIDE { return _cont.size(); }
#if __cplusplus >= 201103L
#if __GNUC__ >= 5 || (__GNUC_MINOR__ >= 9 && __GNUC__ >= 4)
iterator erase( const_iterator pos ) { return iterator(_cont.erase(pos._iter)); }
iterator erase( const_iterator first, const_iterator last ) { return iterator(_cont.erase(first._iter, last._iter)); }
#else


+ 1
- 1
apt-private/private-cachefile.cc View File

@@ -33,7 +33,7 @@ static bool SortPackagesByName(pkgCache * const Owner,
return strcmp(Owner->StrP + GA->Name, Owner->StrP + GB->Name) <= 0;
}
SortedPackageUniverse::SortedPackageUniverse(CacheFile &Cache) :
PackageUniverse{Cache}, List{Cache.UniverseList}
PackageUniverse{Cache}, List(Cache.UniverseList)
{
}
void SortedPackageUniverse::LazyInit() const


+ 1
- 1
apt-private/private-cacheset.cc View File

@@ -118,7 +118,7 @@ CacheSetHelperVirtuals::CacheSetHelperVirtuals(bool const ShowErrors, GlobalErro

// CacheSetHelperAPTGet - responsible for message telling from the CacheSets/*{{{*/
CacheSetHelperAPTGet::CacheSetHelperAPTGet(std::ostream &out) :
APT::CacheSetHelper{true}, out{out}
APT::CacheSetHelper{true}, out(out)
{
explicitlyNamed = true;
}


+ 1
- 1
debian/control View File

@@ -10,7 +10,7 @@ Build-Depends: dpkg-dev (>= 1.15.8), debhelper (>= 8.1.3~), libdb-dev,
zlib1g-dev, libbz2-dev, liblzma-dev,
xsltproc, docbook-xsl, docbook-xml, po4a (>= 0.34-2),
autotools-dev, autoconf, automake, libgtest-dev,
g++-5 (>= 5.1.1-20)
g++ (>= 4:5.2)
Build-Depends-Indep: doxygen, w3m, graphviz
Build-Conflicts: autoconf2.13, automake1.4
Vcs-Git: git://anonscm.debian.org/apt/apt.git


Loading…
Cancel
Save