summaryrefslogtreecommitdiff
path: root/scripts/package-build/build.py
AgeCommit message (Collapse)Author
2026-06-19T8599: Use .orig suffix for 3.0 source format onlyKyrylo Yatsenko
1.0 source format version needs tarball without '.orig' suffix as described in https://www.man7.org/linux/man-pages/man1/dpkg-source.1.html. Only if debian/source/format exists and contains 3.0, use '.orig'
2026-06-18T8599: Don't ignore other build.py failuresKyrylo Yatsenko
Exit with error for other failures: * Creating/installing dependency package should be error: e.g. debugging why strongswan cannot find systemd could be easier if build.py failed when it couldn't install systemd and not when `configure` couldn't find it. * Creating tarball * pre_hook run
2026-06-18T8599: Make source packages required and fix themKyrylo Yatsenko
A lot of packages failed to build source package. Stop ignoring source package build errors and fix it. To fix source packages: * Use <source_package>_<upstream_version>.orig.tar.gz naming for source archive. * Get `source_package` and `upstream_version` from changelog using dpkg-parsechangelog utility * Clean build-deps after usage or dpkg-source sees these files as changes relative to upstream. * Add '.github' to --diff-ignore source option
2025-12-29T8132: Update the APT mirror list before a package buildViacheslav Hletenko
The repository update process must be independent of the existence of package/package.toml dependencies. This may lead to build failures for certain packages. Alway update the APT mirror list before build.
2025-11-07T7997: Exclude auxiliary directories from tarballsAndrii Klymenko
Update the dpkg build command to ignore .git and .github directories.
2025-10-21build: T7828: use tomli instead of toml in the package build scriptDaniil Baturin
2025-08-14T7714: Exclude auxiliary directories from common tarballsViacheslav
2025-06-09Remove an emoji from an error messageDaniil Baturin
2025-06-09T7530: Build package binaries script should exit if repo is absentViacheslav Hletenko
The build package binaries script should exit if the repo is absent or cannot be cloned If a build package `repo-a` depends on the `repo-b` and the `repo-b` cannot be cloned, then we shoud exit from the script to avoid partly build dependencies For example: ``` [[packages]] name = "fake-repo" commit_id = "v0.0.1" scm_url = "https://github.com/vyos/fake-repo" [[packages]] name = "ethtool" commit_id = "debian/1%6.10-1" scm_url = "https://salsa.debian.org/kernel-team/ethtool" ``` If ethtool depends on some fake-package and this package cannot be downloaded from the repo, then we shouldn't build the ethtool package at all.
2025-01-14T7026: Add apply_patches option for the build packages scriptViacheslav Hletenko
Add 'apply_patches' key is set to True (default) in the package configuration This allows skipping/applying patch application by 'build.py' for specific packages when desired Usage: apply_patches = false
2025-01-10T7037: Add prebuild hook for the package-buildViacheslav Hletenko
The pre_build_hook is an optional configuration defined in packages.toml It executes after the repository is checked out and before the build process begins. This hook allows you to perform preparatory tasks, such as creating directories, copying files, or running custom scripts/commands.
2024-12-22T6674: move patches to "package/<package_name>" subfolderChristian Breunig
This prevents the accidental applying of a patch to multiple source directories defined in package.toml. Example FRR: Package consits of build instructions for libyang, rtrlib and frr itself. Previously patches in frr/patches folder got applied to libyang, rtrlib and frr which made no sense and could also fail a build.
2024-11-25T6912: Remove print dependencies for build packagesViacheslav Hletenko
2024-11-25T6912: Fix build package script dependenciesViacheslav Hletenko
Install dependencies declared in the package.toml file does not work due to the wrong logic. Set global dependencies instaed of dependencies per package.
2024-10-24T6813: Build tarballs for the packagesViacheslav Hletenko
Build tarballs for the packages with our changes after patches
2024-08-29T6674: Add build-scrips for packages without JenkinsViacheslav Hletenko
Add build scripts for .deb packages without Jenkins. To exclude Jenkins we need some place where we can put new builds-scripts to run in parallel (old/new) during meantime We will deprecate old Jenkins package builds in the future.