XPost: linux.debian.bugs.dist
--===============2576857871165344162==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Hi Sean and other policy editors,
it may appear strange to resume a thread that was last discussed seven years ago. Yet, we picked up this matter at the Würzburg sprint and iterated a lot on
the text already present in the BuildProfileSpec, refining and extending it to hopefully better fit the language and structure of Debian Policy.
Quoting Johannes Schauer (2014-08-11 09:44:44)
please document the new Build-Depends syntax and fields for build profiles. The current write-up of the new syntax and fields for build profiles lives at https://wiki.debian.org/BuildProfileSpec
I am really sorry I failed to follow up back then as I really do agree that having something in policy would help a lot.
You'll find the result of two days of discussion and iteration among Jochen, Helmut and myself attached.
Kind regards
Jochen, Helmut and josch
--==============%76857871165344162=Content-Type: text/x-diff; charset="utf-8" MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="0001-document-build-profiles.patch"; maxlinelen="78"
From 6b2479e7ea23fe9fa5e32c2fde49ca3b88a8b51e Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <
[email protected]>
Date: Sat, 29 Mar 2025 23:04:56 +0100
Subject: [PATCH] document build profiles
Closes: #757760
---
policy/ch-controlfields.rst | 16 +++++
policy/ch-relationships.rst | 134 ++++++++++++++++++++++++++++++++----
policy/ch-source.rst | 56 +++++++++++++++
3 files changed, 191 insertions(+), 15 deletions(-)
diff --git a/policy/ch-controlfields.rst b/policy/ch-controlfields.rst
index 3151816..0736cf7 100644
--- a/policy/ch-controlfields.rst
+++ b/policy/ch-controlfields.rst
@@ -152,6 +152,8 @@ The fields in the binary package stanzas are:
- :ref:`Package-Type <s-f-Package-Type>`
+- :ref:`Build-Profiles <s-f-Build-Profiles>`
+
The syntax and semantics of the fields are described below.
These fields are used by ``dpkg-gencontrol`` to generate control files
@@ -1243,6 +1245,20 @@ or set it to ``binary-targets`` if it has been requested to test
whether the package it builds correctly implements the fall-back for
legacy builders.
+``Build-Profiles``
+~~~~~~~~~~~~~~~~~~
+
+Specifies the condition for which that binary package does or does not
+build. To expre