Skip to content
Development

Development

openmamba Linux is made of about six thousand RPM source packages, mostly maintained automatically: a build system checks for new upstream releases, updates the spec files, builds the packages for every architecture and publishes them to the development repositories, from which they move on to the stable distribution.

This section describes the tools used to work on packages, from a single spec file built by hand to the automatic queues and the web interfaces.

The tools at a glance

LevelToolWhat it does
Packagerpm / rpmbuildPackage format and building of a spec file
PackageautospecCreates and updates spec files, downloads sources, builds, checks and uploads packages
Build queueautodistRuns prepare, update, build and send in batch over jobs of one or more packages
Build queueautodist-toolProtects spec fixes in the automatic queue (makepatch), schedules jobs and changes
Build queueautoportRebuilds packages for the other architectures (i586, aarch64) and dependents after an ABI change
Repositoriesautodist-repository, automaintImports, archives and verifies packages across repositories; promotes safe updates automatically
RepositoriesdistromaticGenerates repository metadata and analyses dependencies
Servicesdistroquery APIPublic REST API on repository packages, autodist jobs and their schedule
ServicesautodistdService on every build host: queue scheduler and API on their state and logs
WebDevelopment interfaceQueue dashboards, logs, spec editor, repository maintenance
Websrc.openmamba.orgGit server with the history of every package’s spec file and patches

How a package goes from upstream to users

upstream projects
   │  update sources (Repology, Anitya, ...)
   ▼
autodist (automatic queue, x86_64)
   │  autospec: updates the spec, downloads, builds
   ▼
devel-autodist ──► automaint ──► devel-makedist ──► base
                                      │
                                      └─► autoport (i586, aarch64)
  1. autodist-upstream-updates queries the sources that track the versions released by upstream projects (for example Repology and Anitya) and works out which packages have a newer version.
  2. The automatic autodist queue takes those packages, together with the manually scheduled jobs and the rebuilds, and calls autospec for each one: spec update, source download, build, checks.
  3. Packages built successfully are sent to devel-autodist.
  4. Every hour automaint imports into devel-makedist the packages without dependency problems; dubious updates (major versions, betas) wait for a manual check.
  5. autoport rebuilds the packages for i586 and aarch64.
  6. Finally a maintainer moves the packages to base, the rolling repository everybody uses: this step isn’t automatic, it is validated and performed by hand, after testing the packages with care proportional to their importance and spread.

New packages and manual updates follow the same path starting from devel-makedist (for maintainers) or devel-contrib (for external contributors).

Repositories

RepositoryContent
baseThe rolling distribution, used by all users
devel-makedistStaging area towards base: new packages, manual updates, imports from devel-autodist
devel-autodistOutput of the automatic autodist queue
devel-kernelLatest kernel releases
devel-miscMiscellaneous releases, ports and special cases
devel-futureNew releases not yet integrated
devel-contribContributors’ packages
devel-pastArchive of obsoleted and removed packages

All repositories are available for x86_64, aarch64 and i586. The development ones are used with DNF through the unstable-* repositories, disabled by default:

dnf --enablerepo=unstable-makedist install <package>

The current list, with the dependencies between repositories, is in the API: https://api.openmamba.org/repositories.

Web services and APIs

distroquery API

api.openmamba.org is a public REST API (OpenAPI 3.0, schema in openapi.json) with the data of all repositories: source and binary packages, dependencies, files, problems, and the configuration of the autodist jobs.

# details of a source package in base
curl -s https://api.openmamba.org/package/base/nasm

# who provides a library, who requires it, who builds against it
curl -s "https://api.openmamba.org/providers/base/libssl.so.3()(64bit)/x86_64"
curl -s "https://api.openmamba.org/requirers/base/libssl.so.3()(64bit)/x86_64"
curl -s https://api.openmamba.org/buildrequirers/base/cmake

# which package contains a file
curl -s "https://api.openmamba.org/files/base/x86_64?path=/usr/bin/cmake"

# broken dependencies and needed rebuilds in a repository
curl -s https://api.openmamba.org/problems/devel-autodist

# autodist jobs and the schedule of the next pass
curl -s "https://api.openmamba.org/autodist/jobs?package=qt6-qtbase"
curl -s https://api.openmamba.org/autodist/schedule

Reading is open; writing (for example scheduling a job) needs a token issued by the administrators.

autodistd

Every build host runs autodistd, which starts the autodist and autoport queues at regular intervals and exposes their state as JSON: configured environments, current and last queue, log of the build in progress and logs of every package. The hosts are reached through the distroquery proxy:

# available build hosts
curl -s https://api.openmamba.org/autodistd

# environments and queue of a host
curl -s https://api.openmamba.org/autodistd/buildvm-x86_64/v1/environments
curl -s "https://api.openmamba.org/autodistd/buildvm-x86_64/v1/environments/0/queue?source=last"

# state and build log of a package
curl -s https://api.openmamba.org/autodistd/buildvm-i586/v1/packages/bash
curl -s "https://api.openmamba.org/autodistd/buildvm-i586/v1/packages/bash/log?stage=build&run=failed&arch=i586"

Current hosts: buildvm-x86_64 (automatic queue and x86_64 porting), buildvm-aarch64, buildvm-i586 (porting) and buildvm-rebuilds.

Development interface

openmamba.org/en/autodist is the web frontend of autodistd. Without logging in you can browse:

  • the build platforms, with the state of every host;
  • the dashboard of every environment: the queue as a table with status filters, the package logs and the live log of the build in progress;
  • the repository statistics, with the number of dependents of every source;
  • the package search and the recent activity log.

Enabled developers, once logged in, also get:

  • the spec file editor, with the source files and the build directory, autodist’s protected patches and the prepare, build, update and send commands;
  • batch builds of autodist jobs and their scheduling;
  • repository maintenance: import, archiving and rebuilding of dependents;
  • for packages being ported, the Fork and Hold actions on the queue.

Package sources

Every package has a Git repository on src.openmamba.org/rpms with the spec file, the patches and the other source files. The main branch has a tagged commit for every release published in base, the devel branch follows the versions in the development repositories.

curl -s https://src.openmamba.org/rpms/nasm/raw/branch/main/nasm.spec

Where to start

Last updated on