]> git.saurik.com Git - apt.git/commitdiff
g++ 4.7 fixes
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 2 Jan 2012 14:15:54 +0000 (15:15 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 2 Jan 2012 14:15:54 +0000 (15:15 +0100)
1  2 
apt-pkg/contrib/hashsum_template.h
cmdline/apt-mark.cc
debian/changelog

index 51e3b08620f3156e480a5e100a1932555e36cec0,d2d9f92edfef2439bd31f56cb0fd90e17035341e..9bf160b2be527b92e09d33b55c4b51906801af59
  #ifndef APTPKG_HASHSUM_TEMPLATE_H
  #define APTPKG_HASHSUM_TEMPLATE_H
  
 +#include <apt-pkg/fileutl.h>
 +
  #include <string>
  #include <cstring>
  #include <algorithm>
  #include <stdint.h>
  
+ #include <apt-pkg/strutl.h>
 +#ifndef APT_8_CLEANER_HEADERS
 +using std::string;
 +using std::min;
 +#endif
 +
  template<int N>
  class HashSumValue
  {
@@@ -110,7 -105,6 +112,7 @@@ class SummationImplementatio
     { return Add((const unsigned char *)Beg, End - Beg); };
  
     bool AddFD(int Fd, unsigned long long Size = 0);
 +   bool AddFD(FileFd &Fd, unsigned long long Size = 0);
  };
  
  #endif
diff --combined cmdline/apt-mark.cc
index dbbef5013128bb38136d9a87e76f9de21e3bdfbc,9a628d71499dedca6f264bde3acc8bfb35d1eae2..c7d9b6f6aeb06db4f03a0dd9a093381810103bc8
@@@ -16,6 -16,7 +16,7 @@@
  #include <apt-pkg/pkgsystem.h>
  
  #include <algorithm>
+ #include <unistd.h>
  
  #include <apti18n.h>
                                                                        /*}}}*/
@@@ -34,14 -35,14 +35,14 @@@ bool DoAuto(CommandLine &CmdL
     if (unlikely(Cache == NULL || DepCache == NULL))
        return false;
  
 -   APT::PackageSet pkgset = APT::PackageSet::FromCommandLine(CacheFile, CmdL.FileList + 1);
 +   APT::PackageList pkgset = APT::PackageList::FromCommandLine(CacheFile, CmdL.FileList + 1);
     if (pkgset.empty() == true)
        return _error->Error(_("No packages found"));
  
     bool MarkAuto = strcasecmp(CmdL.FileList[0],"auto") == 0;
     int AutoMarkChanged = 0;
  
 -   for (APT::PackageSet::const_iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
 +   for (APT::PackageList::const_iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
     {
        if (Pkg->CurrentVer == 0)
        {
@@@ -81,7 -82,7 +82,7 @@@ bool DoMarkAuto(CommandLine &CmdL
     if (unlikely(Cache == NULL || DepCache == NULL))
        return false;
  
 -   APT::PackageSet pkgset = APT::PackageSet::FromCommandLine(CacheFile, CmdL.FileList + 1);
 +   APT::PackageList pkgset = APT::PackageList::FromCommandLine(CacheFile, CmdL.FileList + 1);
     if (pkgset.empty() == true)
        return _error->Error(_("No packages found"));
  
@@@ -89,7 -90,7 +90,7 @@@
     bool const Verbose = _config->FindB("APT::MarkAuto::Verbose", false);
     int AutoMarkChanged = 0;
  
 -   for (APT::PackageSet::const_iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
 +   for (APT::PackageList::const_iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
     {
        if (Pkg->CurrentVer == 0 ||
          (((*DepCache)[Pkg].Flags & pkgCache::Flag::Auto) == pkgCache::Flag::Auto) == MarkAuto)
@@@ -157,13 -158,13 +158,13 @@@ bool DoHold(CommandLine &CmdL
     if (unlikely(Cache == NULL))
        return false;
  
 -   APT::PackageSet pkgset = APT::PackageSet::FromCommandLine(CacheFile, CmdL.FileList + 1);
 +   APT::PackageList pkgset = APT::PackageList::FromCommandLine(CacheFile, CmdL.FileList + 1);
     if (pkgset.empty() == true)
        return _error->Error(_("No packages found"));
  
     bool const MarkHold = strcasecmp(CmdL.FileList[0],"hold") == 0;
  
 -   for (APT::PackageSet::iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
 +   for (APT::PackageList::iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
     {
        if ((Pkg->SelectedState == pkgCache::State::Hold) == MarkHold)
        {
  
     if (_config->FindB("APT::Mark::Simulate", false) == true)
     {
 -      for (APT::PackageSet::iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
 +      for (APT::PackageList::iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
        {
         if (MarkHold == false)
            ioprintf(c1out,_("%s set on hold.\n"), Pkg.FullName(true).c_str());
     if (dpkg == NULL)
        return _error->Errno("DoHold", "fdopen on dpkg stdin failed");
  
 -   for (APT::PackageSet::iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
 +   for (APT::PackageList::iterator Pkg = pkgset.begin(); Pkg != pkgset.end(); ++Pkg)
     {
        if (MarkHold == true)
        {
diff --combined debian/changelog
index f6a6d38e7692d49eebdcc200a6d34b3939e3daf5,e6389dd06e88da9e66b7e2853eab210cb3b5b8a1..06c84f31c02d219e2d93b02003f1645c72f31b9e
@@@ -1,48 -1,6 +1,51 @@@
 +apt (0.8.16~exp9) UNRELEASED; urgency=low
 +
 +  [ Julian Andres Klode ]
 +  * apt-pkg/cdrom.cc:
 +    - Accept .bz2, .xz files in addition to .gz files (Closes: #649451)
 +
 +  [ Michael Vogt ]
 +  * apt-pkg/cdrom.cc:
 +    - use aptconfiguration to get the supported compression types
 +  * debian/control:
 +    - bump debhelper build-dep to debhelper (>= 8.1.3~)
 +    - set libapt-pkg-dev to multi-arch: same too
 +
 +  [ Colin Watson ]
 +  * Convert libapt-pkg4.12 and libapt-inst1.4 to Multi-Arch: same.
 +
 +  [ David Kalnischkies ]
 +  * apt-pkg/cacheset.cc:
 +    - make the cachesets real containers which can embedding any container
 +      to be able to use the same interface regardless of set or list usage
 +    - provide a {Package,Version}List similar to {Package,Version}Set
 +  * cmdline/apt-{get,cache,mark}.cc:
 +    - use Lists instead of Sets if input order should be preserved for
 +      commands accepting lists of packages, e.g. policy (Closes: #625960)
 +  * apt-pkg/depcache.cc:
 +    - prefer native providers over foreigns even if the chain is foreign
 +  * cmdline/apt-get.cc:
 +    - ignore foreign architectures if we check if a provides has only one
 +      resolver as it's basically the same for the user, so no need to choose
 +  * cmdline/apt-config.cc:
 +    - dump the APT::Compressor settings correctly and completely
 +  * apt-pkg/contrib/fileutl.{h,cc}:
 +    - implement a ModificationTime method for FileFd
 +    - add a ReadLine method
 +    - drop the explicit export of gz-compression handling
 +  * apt-pkg/cdrom.cc:
 +    - support InRelease files on cdrom
++  
++  [ Michael Vogt ]
++  * g++ 4.7 fixes
 +
 + -- David Kalnischkies <kalnischkies@gmail.com>  Sun, 11 Dec 2011 19:34:58 +0100
 +
  apt (0.8.16~exp8) experimental; urgency=low
  
    [ David Kalnischkies ]
 +  * algorithms.cc:
 +    - show a debug why a package was kept by ResolveByKeep()
    * apt-pkg/packagemanager.cc:
      - do not fail on unpacked packages in SmartUnPack, just don't
        shedule them for unpack, but do all checks and configure them
@@@ -51,6 -9,9 +54,6 @@@
      - use a pointer-union to peace gcc strict-aliasing warning
    * apt-pkg/deb/deblistparser.cc:
      - M-A: foreign packages provide for other archs, too
 -  
 -  [ Michael Vogt ]
 -  * g++ 4.7 fixes
  
   -- David Kalnischkies <kalnischkies@gmail.com>  Thu, 03 Nov 2011 09:40:29 -0500
  
@@@ -238,25 -199,13 +241,25 @@@ apt (0.8.16~exp1) experimental; urgency
  
   -- Michael Vogt <mvo@debian.org>  Wed, 29 Jun 2011 12:40:31 +0200
  
 -apt (1.8.15.9+nmu1) unstable; urgency=low
 +apt (0.8.15.10) UNRELEASEDunstable; urgency=low
  
    [ David Kalnischkies ]
    * algorithms.cc:
      - show a debug why a package was kept by ResolveByKeep()
 +  * doc/manpage-style.xml:
 +    - put <brackets> around email addresses
 +  * doc/po/de.po:
 +    - apply typo-fix from Michael Basse, thanks! (LP: #900770)
 +
 +  [ Chris Leick ]
 +  * German manpage translation update
 +  * doc/*.xml:
 +    - find and fix a bunch of misspellings
 +
 +  [ Program translation updatex ]
 +  * Dutch (Jeroen Schot). Closes: #652230
  
 - -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 17 Oct 2011 16:36:22 +0200
 + -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 06 Dec 2011 16:35:39 +0100
  
  apt (0.8.15.9) unstable; urgency=low