[Reproducible-commits] [dpkg] 63/90: dpkg-source: Add an optional essential=yes key/value to Package-List

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Aug 29 18:26:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit 2b5045c492fd4f1f0f6f3114e7b444014fe446c4
Author: Guillem Jover <guillem at debian.org>
Date:   Fri Jul 31 17:40:10 2015 +0200

    dpkg-source: Add an optional essential=yes key/value to Package-List
    
    This makes this information available in the Sources package files, so
    that when bootstrapping a new architecture all Essential:yes packages
    are known in advance.
    
    Prompted-by: Helmut Grohne <helmut at subdivi.de>
---
 debian/changelog       | 3 +++
 scripts/dpkg-source.pl | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1432a06..c27d8da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,9 @@ dpkg (1.18.2) UNRELEASED; urgency=low
   * Add an extra level of escaping for double $(evals) in architecture.mk
     and buildflags.mk, so that the variables are computed lazily again.
     Regression introduced in dpkg 1.16.2. Closes: #793330
+  * Add binary packages Essential information to Package-List field in the
+    .dsc file, as optional essential=yes entries. This allows precomputing
+    the pseudo-essential set before starting an architecture bootstrap.
   * Perl modules:
     - Remove non-functional timezone name support from
       Dpkg::Changelog::Entry::Debian.
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index e0b8b8e..9aeec13 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -297,6 +297,10 @@ if ($options{opmode} =~ /^(build|print-format|(before|after)-build|commit)$/) {
             $pkg_summary .= " profile=$profile";
         }
 
+        if (defined $pkg->{'Essential'} and $pkg->{'Essential'} eq 'yes') {
+            $pkg_summary .= ' essential=yes';
+        }
+
         push @pkglist, $pkg_summary;
 	push @binarypackages, $p;
 	foreach (keys %{$pkg}) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list