Build packages for components
Build RPM packages for one or more components using mock.
This command fetches upstream sources (applying any configured overlays), creates an SRPM, and invokes mock to produce binary RPMs. Build outputs are placed in structured subdirectories under the project output directory:
out/srpms/ - source RPMs (SRPMs) out/rpms/ - binary RPMs with no channel configured (or channel="none") out/rpms// - binary RPMs moved to their configured publish channel subdirectory
The publish channel for each package is resolved from the project's package configuration (package groups and per-component overrides). See 'azldev package' for details.
Use --local-repo-with-publish to build a chain of dependent components: each component's RPMs are published to a local repository that subsequent builds can consume.
azldev component build [flags]
# Build a single component
azldev component build -p curl
# Build all components, continuing past failures
azldev component build -a -k
# Build SRPM only (skip binary RPM build)
azldev component build -p curl --srpm-only
# Chain-build dependent components with a local repo
azldev component build --local-repo-with-publish ./base/out -p liba -p libb
-a, --all-components Include all components
-p, --component stringArray Component name pattern
-g, --component-group stringArray Component group name
-k, --continue-on-error Continue building when some components fail
-h, --help help for build
--local-repo stringArray Paths to local repositories to include during build (can be specified multiple times)
--local-repo-with-publish string Path to local repository to include during build and publish built RPMs to
--mock-config-opt stringToString Pass a configuration option through to mock (key=value, can be specified multiple times) (default [])
--no-check Skip package %check tests
--preserve-buildenv policy Preserve build environment {on-failure, always, never} (default on-failure)
-s, --spec-path stringArray Spec path
--srpm-only Build SRPM (source RPM) *only*
--with-git Create a dist-git repository with synthetic commit history (requires a project git repository)
-y, --accept-all accept all prompts
--color mode output colorization mode {always, auto, never} (default auto)
--config-file stringArray additional TOML config file(s) to merge (may be repeated)
-n, --dry-run dry run only (do not take action)
--network-retries int maximum number of attempts for network operations (minimum 1) (default 3)
--no-default-config disable default configuration
-O, --output-format fmt output format {csv, json, markdown, table} (default table)
--permissive-config do not fail on unknown fields in TOML config files
-C, --project string path to Azure Linux project
-q, --quiet only enable minimal output
-v, --verbose enable verbose output
- azldev component - Manage components