diff -Nru synaptic-0.84.8/common/indexcopy.cc synaptic-0.84.8/common/indexcopy.cc --- synaptic-0.84.8/common/indexcopy.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/indexcopy.cc 1970-01-01 00:00:00.000000000 +0000 @@ -1,511 +0,0 @@ -// -*- mode: cpp; mode: fold -*- -// Description /*{{{*/ -// $Id: indexcopy.cc,v 1.2 2002/07/25 18:07:18 niemeyer Exp $ -/* ###################################################################### - - Index Copying - Aid for copying and verifying the index files - - This class helps apt-cache reconstruct a damaged index files. - - ##################################################################### */ - /*}}} */ -// Include Files /*{{{*/ -#include "indexcopy.h" -#include "i18n.h" - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - /*}}} */ - -using namespace std; - -// IndexCopy::CopyPackages - Copy the package files from the CD /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool IndexCopy::CopyPackages(string CDROM, string Name, - vector &List) -{ - if (List.size() == 0) - return true; - - OpTextProgress Progress; - - bool NoStat = _config->FindB("APT::CDROM::Fast", false); - bool Debug = _config->FindB("Debug::aptcdrom", false); - - // Prepare the progress indicator - unsigned long TotalSize = 0; - for (vector::iterator I = List.begin(); I != List.end(); I++) { - struct stat Buf; - if (stat(string(*I + GetFileName()).c_str(), &Buf) != 0 && - stat(string(*I + GetFileName() + ".gz").c_str(), &Buf) != 0) - return _error->Errno("stat", _("Stat failed for %s"), - string(*I + GetFileName()).c_str()); - TotalSize += Buf.st_size; - } - - unsigned long CurrentSize = 0; - unsigned int NotFound = 0; - unsigned int WrongSize = 0; - unsigned int Packages = 0; - for (vector::iterator I = List.begin(); I != List.end(); I++) { - string OrigPath = string(*I, CDROM.length()); - unsigned long FileSize = 0; - - // Open the package file - FileFd Pkg; - if (FileExists(*I + GetFileName()) == true) { - Pkg.Open(*I + GetFileName(), FileFd::ReadOnly); - FileSize = Pkg.Size(); - } else { - FileFd From(*I + GetFileName() + ".gz", FileFd::ReadOnly); - if (_error->PendingError() == true) - return false; - FileSize = From.Size(); - - // Get a temp file - FILE *tmp = tmpfile(); - if (tmp == 0) - return _error->Errno("tmpfile", _("Unable to create a tmp file")); - Pkg.Fd(dup(fileno(tmp))); - fclose(tmp); - - // Fork gzip - int Process = fork(); - if (Process < 0) - return _error->Errno("fork", - "Internal Error: Couldn't fork gzip. Please report."); - - // The child - if (Process == 0) { - dup2(From.Fd(), STDIN_FILENO); - dup2(Pkg.Fd(), STDOUT_FILENO); - SetCloseExec(STDIN_FILENO, false); - SetCloseExec(STDOUT_FILENO, false); - - const char *Args[3]; - string Tmp = _config->Find("Dir::bin::gzip", "gzip"); - Args[0] = Tmp.c_str(); - Args[1] = "-d"; - Args[2] = 0; - execvp(Args[0], (char **)Args); - exit(100); - } - // Wait for gzip to finish - if (ExecWait - (Process, _config->Find("Dir::bin::gzip", "gzip").c_str(), - false) == false) - return _error->Error(_("gzip failed, perhaps the disk is full.")); - - Pkg.Seek(0); - } - pkgTagFile Parser(&Pkg); - if (_error->PendingError() == true) - return false; - - // Open the output file - char S[400]; - snprintf(S, sizeof(S), "cdrom:[%s]/%s%s", Name.c_str(), - (*I).c_str() + CDROM.length(), GetFileName()); - string TargetF = _config->FindDir("Dir::State::lists") + "partial/"; - TargetF += URItoFileName(S); - if (_config->FindB("APT::CDROM::NoAct", false) == true) - TargetF = "/dev/null"; - FileFd Target(TargetF, FileFd::WriteEmpty); - FILE *TargetFl = fdopen(dup(Target.Fd()), "w"); - if (_error->PendingError() == true) - return false; - if (TargetFl == 0) - return _error->Errno("fdopen", _("Failed to reopen fd")); - - // Setup the progress meter - Progress.OverallProgress(CurrentSize, TotalSize, FileSize, - string("Reading ") + Type() + " Indexes"); - - // Parse - Progress.SubProgress(Pkg.Size()); - pkgTagSection Section; - this->Section = &Section; - string Prefix; - unsigned long Hits = 0; - unsigned long Chop = 0; - while (Parser.Step(Section) == true) { - Progress.Progress(Parser.Offset()); - string File; - unsigned long Size; - if (GetFile(File, Size) == false) { - fclose(TargetFl); - return false; - } - - if (Chop != 0) - File = OrigPath + ChopDirs(File, Chop); - - // See if the file exists - bool Mangled = false; - if (NoStat == false || Hits < 10) { - // Attempt to fix broken structure - if (Hits == 0) { - if (ReconstructPrefix(Prefix, OrigPath, CDROM, File) == false && - ReconstructChop(Chop, *I, File) == false) { - if (Debug == true) - clog << "Missed: " << File << endl; - NotFound++; - continue; - } - if (Chop != 0) - File = OrigPath + ChopDirs(File, Chop); - } - // Get the size - struct stat Buf; - if (stat(string(CDROM + Prefix + File).c_str(), &Buf) != 0 || - Buf.st_size == 0) { - // Attempt to fix busted symlink support for one instance - string OrigFile = File; - string::size_type Start = File.find("binary-"); - string::size_type End = File.find("/", Start + 3); - if (Start != string::npos && End != string::npos) { - File.replace(Start, End - Start, "binary-all"); - Mangled = true; - } - - if (Mangled == false || - stat(string(CDROM + Prefix + File).c_str(), &Buf) != 0) { - if (Debug == true) - clog << "Missed(2): " << OrigFile << endl; - NotFound++; - continue; - } - } - // Size match - if ((unsigned)Buf.st_size != Size) { - if (Debug == true) - clog << "Wrong Size: " << File << endl; - WrongSize++; - continue; - } - } - - Packages++; - Hits++; - - if (RewriteEntry(TargetFl, File) == false) { - fclose(TargetFl); - return false; - } - } - fclose(TargetFl); - - if (Debug == true) - cout << " Processed by using Prefix '" << Prefix << - "' and chop " << Chop << endl; - - if (_config->FindB("APT::CDROM::NoAct", false) == false) { - // Move out of the partial directory - Target.Close(); - string FinalF = _config->FindDir("Dir::State::lists"); - FinalF += URItoFileName(S); - if (rename(TargetF.c_str(), FinalF.c_str()) != 0) - return _error->Errno("rename", _("Failed to rename")); - - // Copy the release file - snprintf(S, sizeof(S), "cdrom:[%s]/%sRelease", Name.c_str(), - (*I).c_str() + CDROM.length()); - string TargetF = _config->FindDir("Dir::State::lists") + "partial/"; - TargetF += URItoFileName(S); - if (FileExists(*I + "Release") == true) { - FileFd Target(TargetF, FileFd::WriteEmpty); - FileFd Rel(*I + "Release", FileFd::ReadOnly); - if (_error->PendingError() == true) - return false; - - if (CopyFile(Rel, Target) == false) - return false; - } else { - // Empty release file - FileFd Target(TargetF, FileFd::WriteEmpty); - } - - // Rename the release file - FinalF = _config->FindDir("Dir::State::lists"); - FinalF += URItoFileName(S); - if (rename(TargetF.c_str(), FinalF.c_str()) != 0) - return _error->Errno("rename", _("Failed to rename")); - } - - /* Mangle the source to be in the proper notation with - prefix dist [component] */ - *I = string(*I, Prefix.length()); - ConvertToSourceList(CDROM, *I); - *I = Prefix + ' ' + *I; - - CurrentSize += FileSize; - } - Progress.Done(); - - // Some stats - cout << "Wrote " << Packages << " records"; - if (NotFound != 0) - cout << " with " << NotFound << " missing files"; - if (NotFound != 0 && WrongSize != 0) - cout << " and"; - if (WrongSize != 0) - cout << " with " << WrongSize << " mismatched files"; - cout << '.' << endl; - - if (Packages == 0) - _error->Warning(_("No valid records were found.")); - - if (NotFound + WrongSize > 10) - cout << "Alot of entries were discarded, something may be wrong." << - endl; - - return true; -} - - /*}}} */ -// IndexCopy::ChopDirs - Chop off the leading directory components /*{{{*/ -// --------------------------------------------------------------------- -/* */ -string IndexCopy::ChopDirs(string Path, unsigned int Depth) -{ - string::size_type I = 0; - do { - I = Path.find('/', I + 1); - Depth--; - } - while (I != string::npos && Depth != 0); - - if (I == string::npos) - return string(); - - return string(Path, I + 1); -} - - /*}}} */ -// IndexCopy::ReconstructPrefix - Fix strange prefixing /*{{{*/ -// --------------------------------------------------------------------- -/* This prepends dir components from the path to the package files to - the path to the deb until it is found */ -bool IndexCopy::ReconstructPrefix(string &Prefix, string OrigPath, string CD, - string File) -{ - bool Debug = _config->FindB("Debug::aptcdrom", false); - unsigned int Depth = 1; - string MyPrefix = Prefix; - while (1) { - struct stat Buf; - if (stat(string(CD + MyPrefix + File).c_str(), &Buf) != 0) { - if (Debug == true) - cout << "Failed, " << CD + MyPrefix + File << endl; - if (GrabFirst(OrigPath, MyPrefix, Depth++) == true) - continue; - - return false; - } else { - Prefix = MyPrefix; - return true; - } - } - return false; -} - - /*}}} */ -// IndexCopy::ReconstructChop - Fixes bad source paths /*{{{*/ -// --------------------------------------------------------------------- -/* This removes path components from the filename and prepends the location - of the package files until a file is found */ -bool IndexCopy::ReconstructChop(unsigned long &Chop, string Dir, string File) -{ - // Attempt to reconstruct the filename - unsigned long Depth = 0; - while (1) { - struct stat Buf; - if (stat(string(Dir + File).c_str(), &Buf) != 0) { - File = ChopDirs(File, 1); - Depth++; - if (File.empty() == false) - continue; - return false; - } else { - Chop = Depth; - return true; - } - } - return false; -} - - /*}}} */ -// IndexCopy::ConvertToSourceList - Convert a Path to a sourcelist /*{{{*/ -// --------------------------------------------------------------------- -/* We look for things in dists/ notation and convert them to - form otherwise it is left alone. This also strips - the CD path. - - This implements a regex sort of like: - (.*)/dists/([^/]*)/(.*)/binary-* - ^ ^ ^- Component - | |-------- Distribution - |------------------- Path - - It was deciced to use only a single word for dist (rather than say - unstable/non-us) to increase the chance that each CD gets a single - line in sources.list. - */ -void IndexCopy::ConvertToSourceList(string CD, string &Path) -{ - char S[300]; - snprintf(S, sizeof(S), "binary-%s", - _config->Find("Apt::Architecture").c_str()); - - // Strip the cdrom base path - Path = string(Path, CD.length()); - if (Path.empty() == true) - Path = "/"; - - // Too short to be a dists/ type - if (Path.length() < strlen("dists/")) - return; - - // Not a dists type. - if (stringcmp(Path.c_str(), Path.c_str() + strlen("dists/"), "dists/") != 0) - return; - - // Isolate the dist - string::size_type Slash = strlen("dists/"); - string::size_type Slash2 = Path.find('/', Slash + 1); - if (Slash2 == string::npos || Slash2 + 2 >= Path.length()) - return; - string Dist = string(Path, Slash, Slash2 - Slash); - - // Isolate the component - Slash = Slash2; - for (unsigned I = 0; I != 10; I++) { - Slash = Path.find('/', Slash + 1); - if (Slash == string::npos || Slash + 2 >= Path.length()) - return; - string Comp = string(Path, Slash2 + 1, Slash - Slash2 - 1); - - // Verify the trailing binary- bit - string::size_type BinSlash = Path.find('/', Slash + 1); - if (Slash == string::npos) - return; - string Binary = string(Path, Slash + 1, BinSlash - Slash - 1); - - if (Binary != S && Binary != "source") - continue; - - Path = Dist + ' ' + Comp; - return; - } -} - - /*}}} */ -// IndexCopy::GrabFirst - Return the first Depth path components /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool IndexCopy::GrabFirst(string Path, string &To, unsigned int Depth) -{ - string::size_type I = 0; - do { - I = Path.find('/', I + 1); - Depth--; - } - while (I != string::npos && Depth != 0); - - if (I == string::npos) - return false; - - To = string(Path, 0, I + 1); - return true; -} - - /*}}} */ -// PackageCopy::GetFile - Get the file information from the section /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool PackageCopy::GetFile(string &File, unsigned long &Size) -{ - File = Section->FindS("Filename"); - Size = Section->FindI("Size"); - if (File.empty() || Size == 0) - return _error->Error(_("Cannot find filename or size tag")); - return true; -} - - /*}}} */ -// PackageCopy::RewriteEntry - Rewrite the entry with a new filename /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool PackageCopy::RewriteEntry(FILE *Target, string File) -{ - TFRewriteData Changes[] = { {"Filename", File.c_str()} - , - {} - }; - - if (TFRewrite(Target, *Section, TFRewritePackageOrder, Changes) == false) - return false; - fputc('\n', Target); - return true; -} - - /*}}} */ -// SourceCopy::GetFile - Get the file information from the section /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool SourceCopy::GetFile(string &File, unsigned long &Size) -{ - string Files = Section->FindS("Files"); - if (Files.empty() == true) - return false; - - // Stash the / terminated directory prefix - string Base = Section->FindS("Directory"); - if (Base.empty() == false && Base[Base.length() - 1] != '/') - Base += '/'; - - // Read the first file triplet - const char *C = Files.c_str(); - string sSize; - string MD5Hash; - - // Parse each of the elements - if (ParseQuoteWord(C, MD5Hash) == false || - ParseQuoteWord(C, sSize) == false || ParseQuoteWord(C, File) == false) - return _error->Error(_("Error parsing file record")); - - // Parse the size and append the directory - Size = atoi(sSize.c_str()); - File = Base + File; - return true; -} - - /*}}} */ -// SourceCopy::RewriteEntry - Rewrite the entry with a new filename /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool SourceCopy::RewriteEntry(FILE *Target, string File) -{ - string Dir(File, 0, File.rfind('/')); - TFRewriteData Changes[] = { {"Directory", Dir.c_str()} - , - {} - }; - - if (TFRewrite(Target, *Section, TFRewriteSourceOrder, Changes) == false) - return false; - fputc('\n', Target); - return true; -} - - /*}}} */ diff -Nru synaptic-0.84.8/common/indexcopy.h synaptic-0.84.8/common/indexcopy.h --- synaptic-0.84.8/common/indexcopy.h 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/indexcopy.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,74 +0,0 @@ -// -*- mode: cpp; mode: fold -*- -// Description /*{{{*/ -// $Id: indexcopy.h,v 1.1 2002/07/23 17:54:52 niemeyer Exp $ -/* ###################################################################### - - Index Copying - Aid for copying and verifying the index files - - ##################################################################### */ - /*}}} */ -#ifndef INDEXCOPY_H -#define INDEXCOPY_H - -#include -#include -#include - -using std::string; -using std::vector; - -class pkgTagSection; -class FileFd; - -class IndexCopy { - protected: - - pkgTagSection *Section; - - string ChopDirs(string Path, unsigned int Depth); - bool ReconstructPrefix(string &Prefix, string OrigPath, string CD, - string File); - bool ReconstructChop(unsigned long &Chop, string Dir, string File); - void ConvertToSourceList(string CD, string &Path); - bool GrabFirst(string Path, string &To, unsigned int Depth); - virtual bool GetFile(string &Filename, unsigned long &Size) = 0; - virtual bool RewriteEntry(FILE *Target, string File) = 0; - virtual const char *GetFileName() = 0; - virtual const char *Type() = 0; - - public: - - bool CopyPackages(string CDROM, string Name, vector &List); -}; - -class PackageCopy:public IndexCopy { - protected: - - virtual bool GetFile(string &Filename, unsigned long &Size); - virtual bool RewriteEntry(FILE *Target, string File); - virtual const char *GetFileName() { - return "Packages"; - } - virtual const char *Type() { - return "Package"; - } - - public: -}; - -class SourceCopy:public IndexCopy { - protected: - - virtual bool GetFile(string &Filename, unsigned long &Size); - virtual bool RewriteEntry(FILE *Target, string File); - virtual const char *GetFileName() { - return "Sources"; - } - virtual const char *Type() { - return "Source"; - } - - public: -}; - -#endif diff -Nru synaptic-0.84.8/common/Makefile.am synaptic-0.84.8/common/Makefile.am --- synaptic-0.84.8/common/Makefile.am 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/Makefile.am 2020-01-24 22:16:34.000000000 +0000 @@ -28,8 +28,6 @@ rpackageview.h\ rcdscanner.cc\ rcdscanner.h\ - indexcopy.cc\ - indexcopy.h\ rpmindexcopy.cc \ rpmindexcopy.h \ raptoptions.cc \ diff -Nru synaptic-0.84.8/common/raptoptions.cc synaptic-0.84.8/common/raptoptions.cc --- synaptic-0.84.8/common/raptoptions.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/raptoptions.cc 2020-01-24 22:16:34.000000000 +0000 @@ -31,7 +31,6 @@ #include #include #include -#include #include #include diff -Nru synaptic-0.84.8/common/rcdscanner.cc synaptic-0.84.8/common/rcdscanner.cc --- synaptic-0.84.8/common/rcdscanner.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rcdscanner.cc 2020-01-24 22:16:34.000000000 +0000 @@ -44,7 +44,7 @@ #ifdef HAVE_RPM #include "rpmindexcopy.h" #else -#include "indexcopy.h" +#include #endif using namespace std; diff -Nru synaptic-0.84.8/common/rinstallprogress.cc synaptic-0.84.8/common/rinstallprogress.cc --- synaptic-0.84.8/common/rinstallprogress.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rinstallprogress.cc 2020-01-24 22:16:34.000000000 +0000 @@ -31,6 +31,7 @@ #include #include #include +#include #ifdef HAVE_RPM #include #endif @@ -99,7 +100,8 @@ close(fd[0]); close(fd[1]); - res = pm->DoInstallPostFork(); + APT::Progress::PackageManagerProgressFd progress(-1); + res = pm->DoInstallPostFork(&progress); // dump errors into cerr (pass it to the parent process) _error->DumpErrors(); _exit(res); @@ -124,7 +126,8 @@ _child_id = fork(); if (_child_id == 0) { - res = pm->DoInstallPostFork(); + APT::Progress::PackageManagerProgressFd progress(-1); + res = pm->DoInstallPostFork(&progress); _exit(res); } #endif diff -Nru synaptic-0.84.8/common/rpackagecache.cc synaptic-0.84.8/common/rpackagecache.cc --- synaptic-0.84.8/common/rpackagecache.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rpackagecache.cc 2020-01-24 22:16:34.000000000 +0000 @@ -63,9 +63,9 @@ "Go to the repository dialog to correct the problem.")); if(locking) - pkgMakeStatusCache(*_list, progress); + pkgCacheGenerator::MakeStatusCache(*_list, &progress, nullptr, false); else - pkgMakeStatusCache(*_list, progress, 0, true); + pkgCacheGenerator::MakeStatusCache(*_list, &progress, nullptr, true); if (_error->PendingError()) return _error-> diff -Nru synaptic-0.84.8/common/rpackagecache.h synaptic-0.84.8/common/rpackagecache.h --- synaptic-0.84.8/common/rpackagecache.h 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rpackagecache.h 2020-01-24 22:16:34.000000000 +0000 @@ -25,6 +25,8 @@ #define _RPACKAGECACHE_H_ #include +#include +#include #include #include @@ -63,7 +65,7 @@ bool open(OpProgress &progress, bool lock=true); - vector getPolicyArchives(bool filenames_only); + std::vector getPolicyArchives(bool filenames_only); bool lock(); void releaseLock(); diff -Nru synaptic-0.84.8/common/rpackage.cc synaptic-0.84.8/common/rpackage.cc --- synaptic-0.84.8/common/rpackage.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rpackage.cc 2020-01-24 22:16:34.000000000 +0000 @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include @@ -108,11 +107,14 @@ const char *RPackage::section() { - const char *s = _package->Section(); - if (s != NULL) - return s; - else - return _("Unknown"); + pkgCache::VerIterator ver = (*_depcache)[*_package].CandidateVerIter(*_depcache); + if (!ver.end()) { + const char *s = ver.Section(); + if (s != NULL) + return s; + } + + return _("Unknown"); } const char *RPackage::srcPackage() @@ -916,7 +918,6 @@ Fix.Protect(*_package); Fix.Remove(*_package); - Fix.InstallProtect(); Fix.Resolve(true); _depcache->SetReInstall(*_package, false); @@ -1105,13 +1106,13 @@ stat(File.c_str(), &stat_buf); // create a tmp_pin file in the internal dir string filename = RStateDir() + "/.tmp_preferences"; - FILE *out = fopen(filename.c_str(),"w"); - if (out == NULL) - cerr << "error opening tmpfile: " << filename << endl; + FileFd out(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Empty); + if (!out.IsOpen()) { + _error->DumpErrors(); + } FileFd Fd(File, FileFd::ReadOnly); pkgTagFile TF(&Fd); if (_error->PendingError() == true) { - fclose(out); return; } pkgTagSection Tags; @@ -1123,19 +1124,14 @@ ("Invalid record in the preferences file, no Package header")); return; } - if (Name != name()) { - TFRewriteData tfrd; - tfrd.Tag = 0; - tfrd.Rewrite = 0; - tfrd.NewTag = 0; - TFRewrite(out, Tags, TFRewritePackageOrder, &tfrd); - fprintf(out, "\n"); - } + if (Name != name()) + Tags.Write(out, TFRewritePackageOrder, {}); + out.Write("\n", 1); } - fflush(out); + out.Flush(); rename(filename.c_str(), File.c_str()); chmod(File.c_str(), stat_buf.st_mode); - fclose(out); + out.Close(); } } @@ -1448,7 +1444,11 @@ string res; #ifdef WITH_APT_AUTH // the apt-secure patch breaks File.Component - const char *s = _package->Section(); + pkgCache::VerIterator ver = (*_depcache)[*_package].CandidateVerIter(*_depcache); + const char *s = NULL; + if (!ver.end()) + s = ver.Section(); + if(s == NULL) return ""; diff -Nru synaptic-0.84.8/common/rpackagelister.cc synaptic-0.84.8/common/rpackagelister.cc --- synaptic-0.84.8/common/rpackagelister.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rpackagelister.cc 2020-01-24 22:16:34.000000000 +0000 @@ -55,6 +55,8 @@ #include #include #include +#include +#include #include #include @@ -408,12 +410,10 @@ pkg->setPinned(true); // Gather list of sections. - if (I.Section()) - sectionSet.insert(I.Section()); -#if 0 // may confuse users - else - cerr << "Package " << I.Name() << " has no section?!" << endl; -#endif + for (auto Ver = I.VersionList(); !Ver.end(); Ver++) { + if (Ver.Section()) + sectionSet.insert(Ver.Section()); + } } // refresh the views @@ -541,7 +541,7 @@ bool RPackageLister::upgrade() { - if (pkgAllUpgrade(*_cache->deps()) == false) { + if (APT::Upgrade::Upgrade(*_cache->deps(), APT::Upgrade::FORBID_REMOVE_PACKAGES | APT::Upgrade::FORBID_INSTALL_NEW_PACKAGES) == false) { return _error-> Error(_("Internal Error, AllUpgrade broke stuff. Please report.")); } @@ -560,7 +560,7 @@ bool RPackageLister::distUpgrade() { - if (pkgDistUpgrade(*_cache->deps()) == false) { + if (APT::Upgrade::Upgrade(*_cache->deps(), APT::Upgrade::ALLOW_EVERYTHING) == false) { cout << _("dist upgrade Failed") << endl; return false; } @@ -1738,7 +1738,17 @@ lockPackageCache(lock); - pkgArchiveCleaner cleaner; + class SimpleCleaner : public pkgArchiveCleaner { +#if APT_PKG_ABI >= 590 + void Erase(int const dirfd, char const * const File, std::string const &Pkg, std::string const &Ver,struct stat const &St) override { + RemoveFileAt("Cleaner::Erase", dirfd, File); + } +#else + void Erase(const char * File, std::string /*Pkg*/, std::string /*Ver*/, struct stat & /*St*/) override { + RemoveFile("Cleaner::Erase", File); + } +#endif + } cleaner; bool res; @@ -1881,7 +1891,6 @@ _lua->ResetCaches(); #endif _progMeter->Done(); - Fix.InstallProtect(); Fix.Resolve(true); // refresh all views @@ -1940,16 +1949,16 @@ // md5sum check // first get the md5 of the candidate pkgDepCache *dcache = _cache->deps(); - pkgCache::VerIterator ver = dcache->GetCandidateVer(*pkg->package()); + pkgCache::VerIterator ver = dcache->GetCandidateVersion(*pkg->package()); pkgCache::VerFileIterator Vf = ver.FileList(); pkgRecords::Parser &Parse = _records->Lookup(Vf); - string MD5 = Parse.MD5Hash(); - // then calc the md5 of the pkg - MD5Summation debMD5; + HashStringList hashes = Parse.Hashes(); + // then calc the hashes of the pkg + Hashes debHashes(hashes); in.Seek(0); - debMD5.AddFD(in.Fd(),in.Size()); - if(MD5 != debMD5.Result().Value()) { - cerr << "Ignoring " << pkgname << " MD5 does not match"<< endl; + debHashes.AddFD(in.Fd(),in.Size()); + if(hashes != debHashes.GetHashStringList()) { + cerr << "Ignoring " << pkgname << " hashes does not match"<< endl; return false; } diff -Nru synaptic-0.84.8/common/rpackagestatus.cc synaptic-0.84.8/common/rpackagestatus.cc --- synaptic-0.84.8/common/rpackagestatus.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/common/rpackagestatus.cc 2020-01-24 22:16:34.000000000 +0000 @@ -199,7 +199,7 @@ t.Step(sec); // get the time_t form the string - if(!StrToTime(sec.FindS("Date"), release_date)) + if(!RFC1123StrToTime(sec.FindS("Date").c_str(), release_date)) return false; // if its not a supported package, return 0 diff -Nru synaptic-0.84.8/config.h.in synaptic-0.84.8/config.h.in --- synaptic-0.84.8/config.h.in 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/config.h.in 2020-01-24 22:16:34.000000000 +0000 @@ -12,6 +12,14 @@ /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET +/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the + CoreFoundation framework. */ +#undef HAVE_CFLOCALECOPYCURRENT + +/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +#undef HAVE_CFPREFERENCESCOPYAPPVALUE + /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT diff -Nru synaptic-0.84.8/configure.in synaptic-0.84.8/configure.in --- synaptic-0.84.8/configure.in 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/configure.in 2020-01-24 22:16:34.000000000 +0000 @@ -116,7 +116,7 @@ DEB_HDRS="" AC_SUBST(DEB_HDRS) -DEB_LIBS="-lapt-inst" +AC_CHECK_LIB(apt-inst, main, [DEB_LIBS=-lapt-inst], [DEB_LIBS=]) AC_SUBST(DEB_LIBS) dnl Checks for header files. diff -Nru synaptic-0.84.8/debian/changelog synaptic-0.84.8/debian/changelog --- synaptic-0.84.8/debian/changelog 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/debian/changelog 2020-01-24 22:16:34.000000000 +0000 @@ -1,8 +1,8 @@ -synaptic (0.84.8-0~201910150458~ubuntu16.04.1) xenial; urgency=low +synaptic (0.84.8-0~202001241750~ubuntu16.04.1) xenial; urgency=low * Auto build. - -- gogo Tue, 15 Oct 2019 09:16:45 +0000 + -- gogo Fri, 24 Jan 2020 22:16:34 +0000 synaptic (0.84.8) unstable; urgency=medium diff -Nru synaptic-0.84.8/debian/git-build-recipe.manifest synaptic-0.84.8/debian/git-build-recipe.manifest --- synaptic-0.84.8/debian/git-build-recipe.manifest 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/debian/git-build-recipe.manifest 2020-01-24 22:16:34.000000000 +0000 @@ -1,2 +1,2 @@ -# git-build-recipe format 0.4 deb-version {debversion}-0~201910150458 -lp:~trebelnik-stefina/cinnamon-test/+git/synaptic-main git-commit:a32ecac02830eb908317fbfbec79dce992727b13 +# git-build-recipe format 0.4 deb-version {debversion}-0~202001241750 +lp:~trebelnik-stefina/cinnamon-test/+git/synaptic-main git-commit:9cfbf28825914dac3586cbcfb31dbc76091d16b0 diff -Nru synaptic-0.84.8/gtk/rgdebinstallprogress.cc synaptic-0.84.8/gtk/rgdebinstallprogress.cc --- synaptic-0.84.8/gtk/rgdebinstallprogress.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/gtk/rgdebinstallprogress.cc 2020-01-24 22:16:34.000000000 +0000 @@ -43,6 +43,7 @@ #include #include +#include #include #include @@ -677,7 +678,8 @@ pipe(fd); ipc_send_fd(fd[0]); // send the read part of the pipe to the parent - res = pm->DoInstallPostFork(fd[1]); + APT::Progress::PackageManagerProgressFd progress(fd[1]); + res = pm->DoInstallPostFork(&progress); // dump errors into cerr (pass it to the parent process) _error->DumpErrors(); diff -Nru synaptic-0.84.8/gtk/rgfetchprogress.cc synaptic-0.84.8/gtk/rgfetchprogress.cc --- synaptic-0.84.8/gtk/rgfetchprogress.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/gtk/rgfetchprogress.cc 2020-01-24 22:16:34.000000000 +0000 @@ -324,11 +324,17 @@ if (I->CurrentItem == 0) continue; - +#if APT_PKG_ABI >= 590 + if (I->CurrentItem->TotalSize > 0) + updateStatus(*I->CurrentItem, + long (double (I->CurrentItem->CurrentSize * 100.0) / + double (I->CurrentItem->TotalSize))); +#else if (I->TotalSize > 0) updateStatus(*I->CurrentItem, long (double (I->CurrentSize * 100.0) / double (I->TotalSize))); +#endif else updateStatus(*I->CurrentItem, 100); diff -Nru synaptic-0.84.8/gtk/rgterminstallprogress.cc synaptic-0.84.8/gtk/rgterminstallprogress.cc --- synaptic-0.84.8/gtk/rgterminstallprogress.cc 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/gtk/rgterminstallprogress.cc 2020-01-24 22:16:34.000000000 +0000 @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -244,7 +245,8 @@ memset( &new_act, 0, sizeof( new_act ) ); new_act.sa_handler = SIG_IGN; sigaction( SIGPIPE, &new_act, NULL); - res = pm->DoInstallPostFork(); + APT::Progress::PackageManagerProgressFd progress(-1); + res = pm->DoInstallPostFork(&progress); _exit(res); } // parent: assign pty to the vte terminal diff -Nru synaptic-0.84.8/INSTALL synaptic-0.84.8/INSTALL --- synaptic-0.84.8/INSTALL 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/INSTALL 2020-01-24 22:16:34.000000000 +0000 @@ -1,8 +1,8 @@ Installation Instructions ************************* -Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, -Inc. + Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software +Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright @@ -12,97 +12,96 @@ Basic Installation ================== - Briefly, the shell command `./configure && make && make install' + Briefly, the shell command './configure && make && make install' should configure, build, and install this package. The following -more-detailed instructions are generic; see the `README' file for +more-detailed instructions are generic; see the 'README' file for instructions specific to this package. Some packages provide this -`INSTALL' file but do not implement all of the features documented +'INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. - The `configure' shell script attempts to guess correct values for + The 'configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that +those values to create a 'Makefile' in each directory of the package. +It may also create one or more '.h' files containing system-dependent +definitions. Finally, it creates a shell script 'config.status' that you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). +file 'config.log' containing compiler output (useful mainly for +debugging 'configure'). - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. Caching is -disabled by default to prevent problems with accidental use of stale -cache files. + It can also use an optional file (typically called 'config.cache' and +enabled with '--cache-file=config.cache' or simply '-C') that saves the +results of its tests to speed up reconfiguring. Caching is disabled by +default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can +to figure out how 'configure' could check whether to do them, and mail +diffs or instructions to the address given in the 'README' so they can be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you +some point 'config.cache' contains results you don't want to keep, you may remove or edit it. - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You need `configure.ac' if -you want to change it or regenerate `configure' using a newer version -of `autoconf'. + The file 'configure.ac' (or 'configure.in') is used to create +'configure' by a program called 'autoconf'. You need 'configure.ac' if +you want to change it or regenerate 'configure' using a newer version of +'autoconf'. The simplest way to compile this package is: - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. + 1. 'cd' to the directory containing the package's source code and type + './configure' to configure the package for your system. - Running `configure' might take a while. While running, it prints + Running 'configure' might take a while. While running, it prints some messages telling which features it is checking for. - 2. Type `make' to compile the package. + 2. Type 'make' to compile the package. - 3. Optionally, type `make check' to run any self-tests that come with + 3. Optionally, type 'make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. - 4. Type `make install' to install the programs and any data files and + 4. Type 'make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular - user, and only the `make install' phase executed with root + user, and only the 'make install' phase executed with root privileges. - 5. Optionally, type `make installcheck' to repeat any self-tests, but + 5. Optionally, type 'make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a - regular user, particularly if the prior `make install' required + regular user, particularly if the prior 'make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly + source code directory by typing 'make clean'. To also remove the + files that 'configure' created (so you can compile the package for + a different kind of computer), type 'make distclean'. There is + also a 'make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. - 7. Often, you can also type `make uninstall' to remove the installed + 7. Often, you can also type 'make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. - 8. Some packages, particularly those that use Automake, provide `make + 8. Some packages, particularly those that use Automake, provide 'make distcheck', which can by used by developers to test that all other - targets like `make install' and `make uninstall' work correctly. + targets like 'make install' and 'make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that -the `configure' script does not know about. Run `./configure --help' +the 'configure' script does not know about. Run './configure --help' for details on some of the pertinent environment variables. - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: + You can give 'configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here is +an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix @@ -113,21 +112,21 @@ You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their -own directory. To do this, you can use GNU `make'. `cd' to the +own directory. To do this, you can use GNU 'make'. 'cd' to the directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. This -is known as a "VPATH" build. +the 'configure' script. 'configure' automatically checks for the source +code in the directory that 'configure' is in and in '..'. This is known +as a "VPATH" build. - With a non-GNU `make', it is safer to compile the package for one + With a non-GNU 'make', it is safer to compile the package for one architecture at a time in the source code directory. After you have -installed the package for one architecture, use `make distclean' before +installed the package for one architecture, use 'make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or -"universal" binaries--by specifying multiple `-arch' options to the -compiler but only a single `-arch' option to the preprocessor. Like +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ @@ -136,105 +135,104 @@ This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results -using the `lipo' tool if you have problems. +using the 'lipo' tool if you have problems. Installation Names ================== - By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX', where PREFIX must be an + By default, 'make install' installs the package's commands under +'/usr/local/bin', include files under '/usr/local/include', etc. You +can specify an installation prefix other than '/usr/local' by giving +'configure' the option '--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses +pass the option '--exec-prefix=PREFIX' to 'configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. In general, the -default for these options is expressed in terms of `${prefix}', so that -specifying just `--prefix' will affect all of the other directory +options like '--bindir=DIR' to specify different values for particular +kinds of files. Run 'configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the default +for these options is expressed in terms of '${prefix}', so that +specifying just '--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the -correct locations to `configure'; however, many packages provide one or +correct locations to 'configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the -`make install' command line to change installation locations without +'make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each -affected directory. For example, `make install +affected directory. For example, 'make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of -`${prefix}'. Any directories that were specified during `configure', -but not in terms of `${prefix}', must each be overridden at install -time for the entire installation to be relocated. The approach of -makefile variable overrides for each directory variable is required by -the GNU Coding Standards, and ideally causes no recompilation. -However, some platforms have known limitations with the semantics of -shared libraries that end up requiring recompilation when using this -method, particularly noticeable in packages that use GNU Libtool. - - The second method involves providing the `DESTDIR' variable. For -example, `make install DESTDIR=/alternate/directory' will prepend -`/alternate/directory' before all installation names. The approach of -`DESTDIR' overrides is not required by the GNU Coding Standards, and +'${prefix}'. Any directories that were specified during 'configure', +but not in terms of '${prefix}', must each be overridden at install time +for the entire installation to be relocated. The approach of makefile +variable overrides for each directory variable is required by the GNU +Coding Standards, and ideally causes no recompilation. However, some +platforms have known limitations with the semantics of shared libraries +that end up requiring recompilation when using this method, particularly +noticeable in packages that use GNU Libtool. + + The second method involves providing the 'DESTDIR' variable. For +example, 'make install DESTDIR=/alternate/directory' will prepend +'/alternate/directory' before all installation names. The approach of +'DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even -when some directory options were not specified in terms of `${prefix}' -at `configure' time. +when some directory options were not specified in terms of '${prefix}' +at 'configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. +with an extra prefix or suffix on their names by giving 'configure' the +option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the + Some packages pay attention to '--enable-FEATURE' options to +'configure', where FEATURE indicates an optional part of the package. +They may also pay attention to '--with-PACKAGE' options, where PACKAGE +is something like 'gnu-as' or 'x' (for the X Window System). The +'README' should mention any '--enable-' and '--with-' options that the package recognizes. - For packages that use the X Window System, `configure' can usually + For packages that use the X Window System, 'configure' can usually find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. +you can use the 'configure' options '--x-includes=DIR' and +'--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the -execution of `make' will be. For these packages, running `./configure +execution of 'make' will be. For these packages, running './configure --enable-silent-rules' sets the default to minimal output, which can be -overridden with `make V=1'; while running `./configure +overridden with 'make V=1'; while running './configure --disable-silent-rules' sets the default to verbose, which can be -overridden with `make V=0'. +overridden with 'make V=0'. Particular systems ================== - On HP-UX, the default C compiler is not ANSI C compatible. If GNU -CC is not installed, it is recommended to use the following options in + On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC +is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. - HP-UX `make' updates targets which have the same time stamps as -their prerequisites, which makes it generally unusable when shipped -generated files such as `configure' are involved. Use GNU `make' -instead. + HP-UX 'make' updates targets which have the same time stamps as their +prerequisites, which makes it generally unusable when shipped generated +files such as 'configure' are involved. Use GNU 'make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot -parse its `' header file. The option `-nodtk' can be used as -a workaround. If GNU CC is not installed, it is therefore recommended -to try +parse its '' header file. The option '-nodtk' can be used as a +workaround. If GNU CC is not installed, it is therefore recommended to +try ./configure CC="cc" @@ -242,26 +240,26 @@ ./configure CC="cc -nodtk" - On Solaris, don't put `/usr/ucb' early in your `PATH'. This + On Solaris, don't put '/usr/ucb' early in your 'PATH'. This directory contains several dysfunctional programs; working variants of -these programs are available in `/usr/bin'. So, if you need `/usr/ucb' -in your `PATH', put it _after_ `/usr/bin'. +these programs are available in '/usr/bin'. So, if you need '/usr/ucb' +in your 'PATH', put it _after_ '/usr/bin'. - On Haiku, software installed for all users goes in `/boot/common', -not `/usr/local'. It is recommended to use the following options: + On Haiku, software installed for all users goes in '/boot/common', +not '/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== - There may be some features `configure' cannot figure out + There may be some features 'configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the -_same_ architectures, `configure' can figure that out, but if it prints +_same_ architectures, 'configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: +'--build=TYPE' option. TYPE can either be a short name for the system +type, such as 'sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM @@ -270,101 +268,101 @@ OS KERNEL-OS - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't + See the file 'config.sub' for the possible values of each field. If +'config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will +use the option '--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. +eventually be run) with '--host=TYPE'. Sharing Defaults ================ - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. + If you want to set default values for 'configure' scripts to share, +you can create a site shell script called 'config.site' that gives +default values for variables like 'CC', 'cache_file', and 'prefix'. +'configure' looks for 'PREFIX/share/config.site' if it exists, then +'PREFIX/etc/config.site' if it exists. Or, you can set the +'CONFIG_SITE' environment variable to the location of the site script. +A warning: not all 'configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run +environment passed to 'configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: +them in the 'configure' command line, using 'VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc -causes the specified `gcc' to be used as the C compiler (unless it is +causes the specified 'gcc' to be used as the C compiler (unless it is overridden in the site shell script). -Unfortunately, this technique does not work for `CONFIG_SHELL' due to -an Autoconf limitation. Until the limitation is lifted, you can use -this workaround: +Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an +Autoconf limitation. Until the limitation is lifted, you can use this +workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash -`configure' Invocation +'configure' Invocation ====================== - `configure' recognizes the following options to control how it + 'configure' recognizes the following options to control how it operates. -`--help' -`-h' - Print a summary of all of the options to `configure', and exit. +'--help' +'-h' + Print a summary of all of the options to 'configure', and exit. -`--help=short' -`--help=recursive' +'--help=short' +'--help=recursive' Print a summary of the options unique to this package's - `configure', and exit. The `short' variant lists options used - only in the top level, while the `recursive' variant lists options - also present in any nested packages. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' + 'configure', and exit. The 'short' variant lists options used only + in the top level, while the 'recursive' variant lists options also + present in any nested packages. + +'--version' +'-V' + Print the version of Autoconf used to generate the 'configure' script, and exit. -`--cache-file=FILE' +'--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to + traditionally 'config.cache'. FILE defaults to '/dev/null' to disable caching. -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' +'--config-cache' +'-C' + Alias for '--cache-file=config.cache'. + +'--quiet' +'--silent' +'-q' Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error + suppress all normal output, redirect it to '/dev/null' (any error messages will still be shown). -`--srcdir=DIR' +'--srcdir=DIR' Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. + 'configure' can determine that directory automatically. -`--prefix=DIR' - Use DIR as the installation prefix. *note Installation Names:: - for more details, including other options available for fine-tuning - the installation locations. +'--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: for + more details, including other options available for fine-tuning the + installation locations. -`--no-create' -`-n' +'--no-create' +'-n' Run the configure checks, but stop before creating any output files. -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. +'configure' also accepts some other, not widely useful, options. Run +'configure --help' for more details. diff -Nru synaptic-0.84.8/po/POTFILES.in synaptic-0.84.8/po/POTFILES.in --- synaptic-0.84.8/po/POTFILES.in 2019-10-15 09:16:45.000000000 +0000 +++ synaptic-0.84.8/po/POTFILES.in 2020-01-24 22:16:34.000000000 +0000 @@ -1,6 +1,5 @@ [encoding: UTF-8] common/sections_trans.cc -common/indexcopy.cc #common/pkg_acqfile.cc common/rcacheactor.cc common/rcdscanner.cc