Просмотр исходного кода

apt-pkg/init.cc
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

Arch Librarian лет назад: 22
Родитель
Сommit
7d6f9f8ffb
5 измененных файлов с 40 добавлено и 3 удалено
  1. 2 1
      apt-pkg/init.cc
  2. 17 1
      cmdline/apt-get.cc
  3. 13 0
      debian/changelog
  4. 5 0
      doc/apt.conf.5.sgml
  5. 3 1
      doc/examples/configure-index

+ 2 - 1
apt-pkg/init.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // 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
    Init - Initialize the package library
@@ -39,6 +39,7 @@ bool pkgInitConfig(Configuration &Cnf)
       Cnf.Set("APT::Architecture",COMMON_CPU);
       Cnf.Set("APT::Architecture",COMMON_CPU);
    else
    else
       Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU);
       Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU);
+   Cnf.Set("APT::Build-Essential::", "build-essential");
    Cnf.Set("Dir","/");
    Cnf.Set("Dir","/");
    
    
    // State   
    // State   

+ 17 - 1
cmdline/apt-get.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // 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
    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)
       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());
       	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)
       if (BuildDeps.size() == 0)
       {
       {
 	 ioprintf(c1out,_("%s has no build depends.\n"),Src.c_str());
 	 ioprintf(c1out,_("%s has no build depends.\n"),Src.c_str());

+ 13 - 0
debian/changelog

@@ -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
 apt (0.5.4) unstable; urgency=low
 
 
   * M68k config.guess patch. Closes: #88913
   * M68k config.guess patch. Closes: #88913

+ 5 - 0
doc/apt.conf.5.sgml

@@ -126,6 +126,11 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
      information. This sets the size of that cache.
      information. This sets the size of that cache.
      </VarListEntry>
      </VarListEntry>
 
 
+     <VarListEntry><Term>Build-Essential</Term>
+     <ListItem><Para>
+     Defines which package(s) are considered essential build dependencies.
+     </VarListEntry>
+
      <VarListEntry><Term>Get</Term>
      <VarListEntry><Term>Get</Term>
      <ListItem><Para>
      <ListItem><Para>
      The Get subsection controls the &apt-get; tool, please see its
      The Get subsection controls the &apt-get; tool, please see its

+ 3 - 1
doc/examples/configure-index

@@ -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
 /* 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
    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
    valid file. Most of the options have sane default values, unless
@@ -21,10 +21,12 @@
 APT 
 APT 
 {
 {
   Architecture "i386";
   Architecture "i386";
+  Build-Essential "build-essential";
   
   
   // Options for apt-get
   // Options for apt-get
   Get 
   Get 
   {
   {
+     Arch-Only "false";
      Download-Only "false";
      Download-Only "false";
      Simulate "false";
      Simulate "false";
      Assume-Yes "false";
      Assume-Yes "false";