From ca3fb0039db3f87b9860618116a7ed896be576e7 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 15 Oct 2014 19:55:49 +0200 Subject: releasing package apt version 1.0.9.3 --- debian/changelog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/debian/changelog b/debian/changelog index 3896c0531..fce30d672 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,19 @@ +apt (1.0.9.3) unstable; urgency=medium + + [ josch ] + * implement the updated build profile spec + + [ Michael Vogt ] + * methods/rsh.cc: replace strcat with std::string (Closes: #76442) + + [ Guillem Jover ] + * Update Status field values handling + + [ David Kalnischkies ] + * don't cleanup cdrom files in apt-get update (Closes: 765458) + + -- Michael Vogt Wed, 15 Oct 2014 19:49:38 +0200 + apt (1.0.9.2) unstable; urgency=medium [ Michael Vogt ] -- cgit v1.2.3-70-g09d2 From ee877edd6a92c094c6e70e392f3f6e64756281e2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 22 Oct 2014 17:54:08 -0400 Subject: doc/examples/configure-index: make "Dpkg::Max{Arg,ArgBytes} match reality Git-Dch: ignore --- doc/examples/configure-index | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 2d9f829ba..56e7e1a80 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -414,8 +414,8 @@ DPkg FlushSTDIN "true"; // Control the size of the command line passed to dpkg. - MaxBytes 1024; - MaxArgs 350; + MaxArgBytes 32768; + MaxArgs 8192; // controls if apt will apport on the first dpkg error or if it // tries to install as many packages as possible -- cgit v1.2.3-70-g09d2 From a3cada6abc42a2966c427a3b0731977ecfa7edcb Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 23 Oct 2014 14:19:32 -0400 Subject: Use sysconf(_SC_ARG_MAX) to find the size of Dpkg::MaxArgBytes Instead of hardcoding Dpkg::MaxArgBytes find out about it using the sysconf(_SC_ARG_MAX) call. --- apt-pkg/deb/dpkgpm.cc | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 04a13a86c..2d26493f0 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -55,6 +55,18 @@ using namespace std; +APT_PURE static unsigned int +EnvironmentSize() +{ + unsigned int size = 0; + char **envp = environ; + + while (*envp != NULL) + size += strlen (*envp++) + 1; + + return size; +} + class pkgDPkgPMPrivate { public: @@ -1236,8 +1248,15 @@ bool pkgDPkgPM::GoNoABIBreak(APT::Progress::PackageManager *progress) fd_set rfds; struct timespec tv; - unsigned int const MaxArgs = _config->FindI("Dpkg::MaxArgs",8*1024); - unsigned int const MaxArgBytes = _config->FindI("Dpkg::MaxArgBytes",32*1024); + // FIXME: do we really need this limit when we have MaxArgBytes? + unsigned int const MaxArgs = _config->FindI("Dpkg::MaxArgs",32*1024); + + // try to figure out the max environment size + unsigned int OSArgMax = sysconf(_SC_ARG_MAX); + if(OSArgMax < 0) + OSArgMax = 32*1024; + OSArgMax -= EnvironmentSize() - 2*1024; + unsigned int const MaxArgBytes = _config->FindI("Dpkg::MaxArgBytes", OSArgMax); bool const NoTriggers = _config->FindB("DPkg::NoTriggers", false); if (RunScripts("DPkg::Pre-Invoke") == false) -- cgit v1.2.3-70-g09d2 From 28460cb27846b2437010b08adf10bde18e370974 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 23 Oct 2014 14:32:01 -0400 Subject: Fix incorrect comparison between signed/unsigned Git-Dch: ignore --- apt-pkg/deb/dpkgpm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 2d26493f0..7bbf18cba 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1252,7 +1252,7 @@ bool pkgDPkgPM::GoNoABIBreak(APT::Progress::PackageManager *progress) unsigned int const MaxArgs = _config->FindI("Dpkg::MaxArgs",32*1024); // try to figure out the max environment size - unsigned int OSArgMax = sysconf(_SC_ARG_MAX); + int OSArgMax = sysconf(_SC_ARG_MAX); if(OSArgMax < 0) OSArgMax = 32*1024; OSArgMax -= EnvironmentSize() - 2*1024; -- cgit v1.2.3-70-g09d2