Sbuild

# Sbuild task

Regarding inputs, the `sbuild` task is compatible with the ontology defined for PackageBuild even though it implements only a subset of the possible options at this time.

Currently unsupported PackageBuild task keys:

- `host_architecture`

- `build_options`

- `build_path`

Output artifacts and relationships:

1. debian:package-build-log: sbuild output

   - relates-to: `source_artifact`

   - relates-to: `b`

   - relates-to: `c`

2. debian:binary-package: one for each binary package (`*.deb`) built from the source package

   - relates-to: `source_artifact`

3. debian:upload: `b` plus the right administrative files (`.changes`, `.buildinfo`) necessary for its binary upload

   - extends: `b`

   - relates-to: `b`

4. debusine:signing-input: the `.changes` file ready for signing if required

   - relates-to: `c`

5. debusine:work-request-debug-logs: debusine-specific worker logs

   - relates-to: `source_artifact`

The task computes dynamic metadata as:

- subject: package name of `input.source_artifact`

- parameter_summary: package name of `input.source_artifact`_”version” (“architecture”)

- runtime_context: `$build_components:$build_architecture:$host_architecture` or None if `build_options` is provided

- configuration_context: codename of `environment`