apt-pkg/init.cc
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:43 +0000 (16:58 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:43 +0000 (16:58 +0000)
Author: tausq
Date: 2001-12-05 07:22:39 GMT
apt-pkg/init.cc
APT::Build-Essential default value
cmdline/apt-get.cc
Also install APT::Build-Essential packages when apt-get build-dep is
invoked
debian/changelog
Updated changelog
doc/examples/configure-index
doc/apt.conf.5.sgml
Document APT::Build-Essential

apt-pkg/init.cc
cmdline/apt-get.cc
debian/changelog
doc/apt.conf.5.sgml
doc/examples/configure-index

index 930c45a..3c702af 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: init.cc,v 1.16 2001/03/13 06:51:46 jgg Exp $
+// $Id: init.cc,v 1.17 2001/12/05 07:22:39 tausq Exp $
 /* ######################################################################
 
    Init - Initialize the package library
@@ -39,6 +39,7 @@ bool pkgInitConfig(Configuration &Cnf)
       Cnf.Set("APT::Architecture",COMMON_CPU);
    else
       Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU);
+   Cnf.Set("APT::Build-Essential::", "build-essential");
    Cnf.Set("Dir","/");
    
    // State   
index 76945b8..a3dc928 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-get.cc,v 1.111 2001/11/04 17:09:18 tausq Exp $
+// $Id: apt-get.cc,v 1.112 2001/12/05 07:22:40 tausq Exp $
 /* ######################################################################
    
    apt-get - Cover for dpkg
@@ -1863,6 +1863,22 @@ bool DoBuildDep(CommandLine &CmdL)
       if (Last->BuildDepends(BuildDeps, _config->FindB("APT::Get::Arch-Only",false)) == false)
        return _error->Error(_("Unable to get build-dependency information for %s"),Src.c_str());
    
+      // Also ensure that build-essential packages are present
+      Configuration::Item const *Opts = _config->Tree("APT::Build-Essential");
+      if (Opts) 
+        Opts = Opts->Child;
+      for (; Opts; Opts = Opts->Next)
+      {
+        if (Opts->Value.empty() == true)
+           continue;
+
+         pkgSrcRecords::Parser::BuildDepRec rec;
+        rec.Package = Opts->Value;
+        rec.Type = pkgSrcRecords::Parser::BuildDependIndep;
+        rec.Op = 0;
+        BuildDeps.insert(BuildDeps.begin(), rec);
+      }
+
       if (BuildDeps.size() == 0)
       {
         ioprintf(c1out,_("%s has no build depends.\n"),Src.c_str());
index 9ba0209..4bb3435 100644 (file)
@@ -1,3 +1,16 @@
+apt (0.5.5) unstable; urgency=low
+
+  * Fix handling of [!arch] for build-dependencies. Closes: #88798
+  * Fix handling of build-deps on unknown packages. Closes: #88664
+  * "apt-get --arch-only build-dep" to install only architecture-
+    dependent build dependencies. Bump minor shared lib number to reflect
+    small change in BuildDepend API.
+  * APT::Build-Essential configuration option (defaults to "build-essential")
+    so that "apt-get build-dep" will ensure build essential packages are
+    installed prior to installing other build-dependencies
+
+ -- Randolph Chung <tausq@debian.org>  Tue,  4 Dec 2001 23:26:42 -0800
+
 apt (0.5.4) unstable; urgency=low
 
   * M68k config.guess patch. Closes: #88913
index 8ed0485..9ff286a 100644 (file)
@@ -126,6 +126,11 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
      information. This sets the size of that cache.
      </VarListEntry>
 
+     <VarListEntry><Term>Build-Essential</Term>
+     <ListItem><Para>
+     Defines which package(s) are considered essential build dependencies.
+     </VarListEntry>
+
      <VarListEntry><Term>Get</Term>
      <ListItem><Para>
      The Get subsection controls the &apt-get; tool, please see its
index 78171c9..66bdb87 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: configure-index,v 1.3 2001/02/20 07:03:17 jgg Exp $
+// $Id: configure-index,v 1.4 2001/12/05 07:22:40 tausq Exp $
 /* This file is an index of all APT configuration directives. It should
    NOT actually be used as a real config file, though it is a completely
    valid file. Most of the options have sane default values, unless
 APT 
 {
   Architecture "i386";
+  Build-Essential "build-essential";
   
   // Options for apt-get
   Get 
   {
+     Arch-Only "false";
      Download-Only "false";
      Simulate "false";
      Assume-Yes "false";