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
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- 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
/* ######################################################################
Init - Initialize the package library
Cnf.Set("APT::Architecture",COMMON_CPU);
else
Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU);
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
Cnf.Set("Dir","/");
// State
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- 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
/* ######################################################################
apt-get - Cover for dpkg
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());
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());
if (BuildDeps.size() == 0)
{
ioprintf(c1out,_("%s has no build depends.\n"),Src.c_str());
+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
apt (0.5.4) unstable; urgency=low
* M68k config.guess patch. Closes: #88913
information. This sets the size of that cache.
</VarListEntry>
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
<VarListEntry><Term>Get</Term>
<ListItem><Para>
The Get subsection controls the &apt-get; tool, please see its
-// $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
/* 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";
APT
{
Architecture "i386";
+ Build-Essential "build-essential";
// Options for apt-get
Get
{
// Options for apt-get
Get
{
Download-Only "false";
Simulate "false";
Assume-Yes "false";
Download-Only "false";
Simulate "false";
Assume-Yes "false";