diff options
author | Guillem Jover <guillem@debian.org> | 2013-12-04 05:56:17 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-12-05 04:56:11 +0100 |
commit | 7662e0937bb064a0754d12605d80a96a17e2aadf (patch) | |
tree | 6c6f27f8c858c6863a40562bebdb5fc9338f3644 /debian | |
parent | bb53fa0defe392d55ae7b7f49bb28d9e647acb9c (diff) | |
download | dpkg-7662e0937bb064a0754d12605d80a96a17e2aadf.tar.gz |
Add experimental build profiles support
This adds the basic infrastructure support for a new class of generic
build-time dependency restrictions, and in particular implements the
specific build profiles, which will allow to cull build dependencies
depending on the profile being used. There's several things this can
be used for, like new port bootstrapping, reduced package builds, and
similar. In the future other kinds of restrictions could be added as
the build profiles are namespaced with “profile.”. An example field
could be:
Build-Depends: exotic-compiler, libneeded-dev, tool-tiny,
tool-huge (>= 1.0) [linux-any] <!profile.embedded !profile.bootstrap>
or even stuff like:
Depends: net-tools <profile.network>, plugin-curl <!profile.no-plugins>
The generated binary packages and .changes files will get a new
Built-For-Profiles field containing the active profiles during the build.
In addition the build profile can be selected using the environment
variable DEB_BUILD_PROFILES, with space separated values, such as:
DEB_BUILD_PROFILES="embedded bootstrap"
The management and possible registration in the profile namespace is
currently out of scope in dpkg, this should probably be handled by a
distribution specific process.
See draft <http://www.hadrons.org/~guillem/debian/docs/embedded.proposal>.
Closes: #661538
Based-on-patch-by: Patrick "P. J." McDermott <pjm@nac.net>
Based-on-patch-by: Wookey <wookey@debian.org>
Based-on-patch-by: Johannes Schauer <j.schauer@email.de>
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index aba5303ba..d64383cb3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -109,6 +109,14 @@ dpkg (1.17.2) UNRELEASED; urgency=low the array in a subsequent package processing. Closes: #726112 * Do not accept empty field names in dpkg. * Do not accept an initial hyphen in field names. + * Add experimental build profiles support: + - Add support for <!profile.name> build-time restrictions in dependencies. + - Add support for DEB_BUILD_PROFILES environment variable. + - Add new option -P to dpkg-buildpackage and dpkg-checbuilddeps. + - Add new Built-For-Profiles output field in .deb and .changes files. + Based on a patch by Patrick "P. J." McDermott <pjm@nac.net>, + Wookey <wookey@debian.org> and Johannes Schauer <j.schauer@email.de>. + Closes: #661538 [ Updated programs translations ] * German (Sven Joachim). |