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

Dpkg::Control::FieldsCore: Add support for Build-Essential field

Closes: #806315
Guillem Jover лет назад: 10
Родитель
Сommit
bcd050da05
4 измененных файлов с 12 добавлено и 0 удалено
  1. 2 0
      debian/changelog
  2. 5 0
      man/deb-control.5
  3. 2 0
      man/deb-src-control.5
  4. 3 0
      scripts/Dpkg/Control/FieldsCore.pm

+ 2 - 0
debian/changelog

@@ -33,6 +33,8 @@ dpkg (1.18.4) UNRELEASED; urgency=medium
   * Add NIOS2 support to cputable. Thanks to Marek Vasut <marex@denx.de>.
   * On Debian and derivatives enable timeless build flag feature by default.
     Thanks to Paul Wise <pabs@debian.org>. Closes: #805872
+  * Perl modules:
+    - Add support for Build-Essential field. Closes: #806315
   * Test suite:
     - Improve perl code test coverage.
   * Build system:

+ 5 - 0
man/deb-control.5

@@ -96,6 +96,11 @@ or any other installation tool will not allow an
 .B Essential
 package to be removed (at least not without using one of the force options).
 .TP
+.BR Build\-Essential: " \fByes\fP|\fBno\fP"
+This field is usually only needed when the answer is \fByes\fP, and is
+commonly injected by the archive software.
+It denotes a package that is required when building other packages.
+.TP
 .BR Architecture: " \fIarch\fP|\fBall\fP"
 The architecture specifies which type of hardware this package was compiled
 for.

+ 2 - 0
man/deb-src-control.5

@@ -298,6 +298,8 @@ package for more details about them.
 .TP
 .BR Essential: " \fByes\fP|\fBno\fP"
 .TQ
+.BR Build\-Essential: " \fByes\fP|\fBno\fP"
+.TQ
 .BR Multi\-Arch: " \fBsame\fP|\fBforeign\fP|\fBallowed\fP|\fBno\fP"
 .TQ
 .BI Tag: " tag-list"

+ 3 - 0
scripts/Dpkg/Control/FieldsCore.pm

@@ -122,6 +122,9 @@ our %FIELDS = (
         dependency => 'normal',
         dep_order => 3,
     },
+    'Build-Essential' => {
+        allowed => ALL_PKG,
+    },
     'Build-Profiles' => {
         allowed => CTRL_INFO_PKG,
         separator => FIELD_SEP_SPACE,