[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#661537: marked as done (Support for staged/bootstrap builds to break cyclic build-dependencies)



Your message dated Fri, 14 Mar 2014 09:50:02 +0000
with message-id <E1WOOkc-0003tH-82@franck.debian.org>
and subject line Bug#661537: fixed in apt 0.9.16
has caused the Debian Bug report #661537,
regarding Support for staged/bootstrap builds to break cyclic build-dependencies
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
661537: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661537
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.8.15.9
Severity: wishlist
Tags: patch

Cyclic build-dependencies are a big problem in Debian, which make new
ports very difficult, or rebuilds for other reasons such as hardware optimisations.

The subject is covered in some detail here: http://wiki.debian.org/DebianBootstrap
and was covered at Debconf in Baja Luka.

This little patch allows Build-Depends-Stage1 to be added to package
control files, which is the proposed solution to this issue.

If we can get it into Wheezy then it will be easy to do work on this
problem without needed a patched apt. 

-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28
ii  gnupg                   1.4.11-3
ii  libc6                   2.13-26
ii  libgcc1                 1:4.6.2-12
ii  libstdc++6              4.6.2-12
ii  zlib1g                  1:1.2.6.dfsg-1

apt recommends no packages.

Versions of packages apt suggests:
ii  apt-doc     <none>
ii  aptitude    0.6.5-1
ii  bzip2       1.0.6-1
ii  dpkg-dev    1.16.1.2
ii  lzma        9.22-2
ii  python-apt  0.8.3+nmu1
ii  synaptic    0.75.4

-- no debconf information
diff -urN dpkg-1.16.0.3.orig/debian/changelog dpkg-1.16.0.4/debian/changelog
--- dpkg-1.16.0.3.orig/debian/changelog	2011-05-04 09:30:53.000000000 +0100
+++ dpkg-1.16.0.3/debian/changelog	2011-07-06 14:14:17.114196001 +0100
@@ -1,3 +1,9 @@
+dpkg (1.16.0.3-stages) UNRELEASED; urgency=low
+
+  * Add Build-Depends-Stage1 support for bootstrapping
+
+ -- Wookey <wookey@debian.org>  Wed, 06 Jul 2011 13:13:34 +0000
+
 dpkg (1.16.0.3) unstable; urgency=medium
 
   * Allow again Priority field values not known to dpkg. Regression
diff -urN dpkg-1.16.0.3.orig/scripts/Dpkg/Control/Fields.pm dpkg-1.16.0.4/scripts/Dpkg/Control/Fields.pm
--- dpkg-1.16.0.3.orig/scripts/Dpkg/Control/Fields.pm	2011-05-04 09:28:00.000000000 +0100
+++ dpkg-1.16.0.3/scripts/Dpkg/Control/Fields.pm	2011-07-07 14:53:40.510189000 +0100
@@ -73,10 +73,20 @@
         dependency => 'normal',
         dep_order => 1,
     },
+    'Build-Depends-Stage1' => {
+        allowed => ALL_SRC,
+        dependency => 'normal',
+        dep_order => 1,
+    },
     'Build-Depends-Indep' => {
         allowed => ALL_SRC,
         dependency => 'normal',
         dep_order => 2,
+    },
+    'Build-Depends-Indep-Stage1' => {
+        allowed => ALL_SRC,
+        dependency => 'normal',
+        dep_order => 2,
     },
     'Built-Using' => {
         allowed => ALL_PKG,
diff -urN dpkg-1.16.0.3.orig/scripts/dpkg-buildpackage.pl dpkg-1.16.0.4/scripts/dpkg-buildpackage.pl
--- dpkg-1.16.0.3.orig/scripts/dpkg-buildpackage.pl	2011-05-04 09:28:01.000000000 +0100
+++ dpkg-1.16.0.3/scripts/dpkg-buildpackage.pl	2011-07-06 02:23:11.439824001 +0100
@@ -122,6 +122,7 @@
 my $targetarch = my $targetgnusystem = '';
 my $call_target = '';
 my $call_target_as_root = 0;
+my $buildstage = 0;
 my (@checkbuilddep_opts, @changes_opts, @source_opts);
 
 use constant BUILD_DEFAULT    => 1;
@@ -293,6 +294,11 @@
     $build_opts->set("parallel", $parallel);
     $build_opts->export();
 }
+if (defined $buildstage) {
+    $buildstage = $build_opts->get("stage") if $build_opts->has("stage");
+    $build_opts->set("stage", $buildstage);
+    $build_opts->export();
+}
 
 my $build_flags = Dpkg::BuildFlags->new();
 $build_flags->load_config();
@@ -363,7 +369,9 @@
     if ($admindir) {
 	push @checkbuilddep_opts, "--admindir=$admindir";
     }
-
+if ($buildstage) {
+    push @checkbuilddep_opts, "--stage=$buildstage";
+}
     system('dpkg-checkbuilddeps', @checkbuilddep_opts);
     if (not WIFEXITED($?)) {
         subprocerr('dpkg-checkbuilddeps');
diff -urN dpkg-1.16.0.3.orig/scripts/dpkg-checkbuilddeps.pl dpkg-1.16.0.4/scripts/dpkg-checkbuilddeps.pl
--- dpkg-1.16.0.3.orig/scripts/dpkg-checkbuilddeps.pl	2011-05-04 09:28:01.000000000 +0100
+++ dpkg-1.16.0.3/scripts/dpkg-checkbuilddeps.pl	2011-07-06 02:46:05.039824002 +0100
@@ -49,6 +49,8 @@
                  retrieving them from control file
   --admindir=<directory>
                  change the administrative directory.
+  --stage=<level>
+                 use build-depends-stage level specified
   -h, --help     show this help message.
       --version  show the version.")
 	. "\n\n" . _g(
@@ -58,12 +60,14 @@
 
 my $binary_only=0;
 my ($bd_value, $bc_value);
+my $buildstage=0;
 if (!GetOptions('B' => \$binary_only,
                 'help|h' => sub { usage(); exit(0); },
                 'version' => \&version,
                 'd=s' => \$bd_value,
                 'c=s' => \$bc_value,
-                'admindir=s' => \$admindir)) {
+                'admindir=s' => \$admindir,
+                'stage=s' => \$buildstage)) {
 	usage();
 	exit(2);
 }
@@ -76,10 +80,16 @@
 my $facts = parse_status("$admindir/status");
 
 unless (defined($bd_value) or defined($bc_value)) {
+    my $BD_key="Build-Depends";
+    my $BDI_key="Build-Depends-Indep";
+    if ($buildstage) {
+	$BD_key="Build-Depends-Stage".$buildstage;
+	$BDI_key="Build-Depends-Indep-Stage".$buildstage;
+    }
     $bd_value = 'build-essential';
-    $bd_value .= ", " . $fields->{"Build-Depends"} if defined $fields->{"Build-Depends"};
-    if (not $binary_only and defined $fields->{"Build-Depends-Indep"}) {
-	$bd_value .= ", " . $fields->{"Build-Depends-Indep"};
+    $bd_value .= ", " . $fields->{$BD_key} if defined $fields->{$BD_key};
+    if (not $binary_only and defined $fields->{$BDI_key}) {
+	$bd_value .= ", " . $fields->{$BDI_key};
     }
     $bc_value = $fields->{"Build-Conflicts"} if defined $fields->{"Build-Conflicts"};
     if (not $binary_only and defined $fields->{"Build-Conflicts-Indep"}) {

--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 0.9.16

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 661537@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <mvo@debian.org> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 14 Mar 2014 09:45:05 +0100
Source: apt
Binary: apt libapt-pkg4.12 libapt-inst1.5 apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source all amd64
Version: 0.9.16
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Michael Vogt <mvo@debian.org>
Description: 
 apt        - commandline package manager
 apt-doc    - documentation for APT
 apt-transport-https - https download transport for APT
 apt-utils  - package management related utility programs
 libapt-inst1.5 - deb package format runtime library
 libapt-pkg-dev - development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - documentation for APT development
 libapt-pkg4.12 - package management runtime library
Closes: 661537 740673 740843 741056
Changes: 
 apt (0.9.16) unstable; urgency=medium
 .
   [ Michael Vogt ]
   * add hashsum support in apt-helper download-file and
     add more tests
 .
   [ Trần Ngọc Quân ]
   * l10n: vi.po (624t): Update Vietnamese translation
 .
   [ David Kalnischkies ]
   * propagate a negative score point along breaks/conflicts
   * check version before adding scores in resolver
   * autogenerate makefile for vendor system
   * add default and override handling for Cnf::FindVector
   * support DEB_BUILD_PROFILES and -P for build profiles
   * do not configure already unpacked packages needlessly (Closes: 740843)
   * if mountpoint has a ".disk" directory it is mounted
   * no error for non-existing mountpoints in MountCdrom
   * apt-cdrom ident shouldn't be interactive (Closes: 740673)
   * support very long mtab entries in mountpoint discovery
   * msgstr with elipses need three dots
   * cmdline parsing: apt-config is not apt-cdrom
   * use a configurable list of versioned kernel packages
   * support kfreebsd and hurd in the kernel hook
   * add ".*-{kernel,modules}-$KERVER" matcher for hook
   * ensure that a dot is a dot in the hook
   * use liblzma-dev to provide xz/lzma support
   * use the pretty fullname of a pkg as download desciption
 .
   [ Johannes Schauer ]
   * implement BuildProfileSpec support as dpkg has in 1.17.2 (Closes: 661537)
 .
   [ Wojciech Górski ]
   * fix polish --install-suggests text in apt-get manpage (Closes: 741056)
Checksums-Sha1: 
 131078a4e5bff780a8d5bfd5aac196a8a8177025 1638 apt_0.9.16.dsc
 88f89e8cec134b951371013ceb706ce1373771bd 1734784 apt_0.9.16.tar.xz
 c4e4720044a0434ccf803d7cb0cd9c261a0906bc 270724 apt-doc_0.9.16_all.deb
 d78931fa7027bc61c6fa96f1fc1693bcb117323e 766790 libapt-pkg-doc_0.9.16_all.deb
 d494798e128855de9735b5c5a1e415b616ffa880 743384 libapt-pkg4.12_0.9.16_amd64.deb
 dc1504c2f88e6d66439189d669603e2017fb96db 162490 libapt-inst1.5_0.9.16_amd64.deb
 81eedba06f88dcd121ab65354c7f552f266ace98 1062452 apt_0.9.16_amd64.deb
 64e38f60c3d90a35e53c67047f05c87de6190b33 186468 libapt-pkg-dev_0.9.16_amd64.deb
 2dfedef00f9920e14c78cbdd327841ee24c50069 349466 apt-utils_0.9.16_amd64.deb
 97530050b15f2d8f9b0f0cec4264d81f0b51ffc5 129148 apt-transport-https_0.9.16_amd64.deb
Checksums-Sha256: 
 c5f080a8f80ed969a5527a326b638f96ba4b26e4792710359a25d2e4d34916ac 1638 apt_0.9.16.dsc
 d6578c1510dcad6d63630e385e998384512da3c64fb09f8a381364e11f01c513 1734784 apt_0.9.16.tar.xz
 b4a348de3caa1a95ad11a8ce8496d0a4b0e496c020de764a627820708d7100e3 270724 apt-doc_0.9.16_all.deb
 02bbc61e603e3d299d9f42790c095fe58d586775a821273e0f5487b390e441df 766790 libapt-pkg-doc_0.9.16_all.deb
 184a24d86a7b2378ec3b16fb35a6b1ff8787697ced13214c28347ce42c94be5e 743384 libapt-pkg4.12_0.9.16_amd64.deb
 33ec9ac43621d9b3beba31f377641e60175f0b4e07f6c6928730201e63141140 162490 libapt-inst1.5_0.9.16_amd64.deb
 4751b238e7b06605fa159862b1595df856944f99ab6ce1a70f9642675e354d37 1062452 apt_0.9.16_amd64.deb
 a7ca0ea54f6e8a1f8edc13766bc038dc1f8be9707c41e826456f82443f77a048 186468 libapt-pkg-dev_0.9.16_amd64.deb
 c60caeb5519111acc151adb4c27d9ee281a279186f583ddfd25835b04d380ecb 349466 apt-utils_0.9.16_amd64.deb
 5c98075ba411007c11b6824ed0e5e903e89fa9a18bf2447a1ab0e14257d4c313 129148 apt-transport-https_0.9.16_amd64.deb
Files: 
 9d0f3f359fd7cbe973526c88e39ced44 1638 admin important apt_0.9.16.dsc
 9ebe9a76dac4fb453c030ee584756f6d 1734784 admin important apt_0.9.16.tar.xz
 bba391e04ef93fe3d7298981a0d9eb3d 270724 doc optional apt-doc_0.9.16_all.deb
 082f4caf75dc54e691a64ba5df570bce 766790 doc optional libapt-pkg-doc_0.9.16_all.deb
 3c413ad5c5fdabe0fb76035d76afac5f 743384 libs important libapt-pkg4.12_0.9.16_amd64.deb
 0aadeff033c0f147671938cf10ee6d0b 162490 libs important libapt-inst1.5_0.9.16_amd64.deb
 9bb168f072739ba11938c5e499d3f956 1062452 admin important apt_0.9.16_amd64.deb
 fde072f19e881b614ece35b4d1791cf5 186468 libdevel optional libapt-pkg-dev_0.9.16_amd64.deb
 098f3d2a85e9ec23f71670b45a69e8f8 349466 admin important apt-utils_0.9.16_amd64.deb
 ab1fcac9195fa6b2a6c0a491b52b9b84 129148 admin optional apt-transport-https_0.9.16_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlMixlcACgkQliSD4VZixzR8vQCfYggVmYiKG6ARbCwY8mChZTQU
S6UAn2gzGj23sBbN2MeKTtSREilvYZAx
=aFHK
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: