DLPX-98654 [linux-pkg] Add syft/cyclonedx-cli packages - #414
Draft
justsanjeev wants to merge 5 commits into
Draft
Conversation
justsanjeev
force-pushed
the
dlpx/pr/justsanjeev/6f069b99-6732-4b07-be3b-2babb40c9467
branch
from
August 14, 2026 12:15
29ac079 to
958ddb5
Compare
prakashsurya
approved these changes
Aug 24, 2026
prakashsurya
left a comment
Contributor
There was a problem hiding this comment.
looks reasonable to me.. I presume, these repos follow the product's branch conventions (e.g. develop, release, etc.)?
…ERSION Without this, set_changelog() has no PACKAGE_VERSION to read and defaults the built package to 1.0.0 regardless of which Syft version is actually pinned in the syft repo's debian/rules -- notably poor provenance for an SBOM tool specifically. syft's debian/rules now exposes the pinned version via a SYFT_VERSION file (single source of truth, delphix-rust/RUSTC_VERSION pattern). Read that same file here to set PACKAGE_VERSION before dpkg_buildpackage_default runs, so "dpkg -l delphix-syft" on a build host can tell you which Syft produced a given CycloneDX SBOM.
…om CYCLONEDX_VERSION Same fix as the syft package: without this, set_changelog() has no PACKAGE_VERSION to read and defaults the built package to 1.0.0 regardless of which cyclonedx-cli version is actually pinned in the cyclonedx-cli repo's debian/rules. cyclonedx-cli's debian/rules now exposes the pinned version via a CYCLONEDX_VERSION file (single source of truth, delphix-rust/ RUSTC_VERSION pattern). Read that same file here to set PACKAGE_VERSION before dpkg_buildpackage_default runs, so "apt-cache policy delphix-cyclonedx-cli" on a build host can tell you which cyclonedx-cli validated a given CycloneDX SBOM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Companion to DLPX-98637 (
delphix/syft) and DLPX-98638 (delphix/cyclonedx-cli) under theCP-13455 CycloneDX SBOM epic.
appliance-buildPR #892 (CP-13464) provisioned Syft andcyclonedx-cli by downloading pinned releases directly from
github.comat build time;review feedback flagged that as against convention. Design doc: DLPX-98618
(
appliance-build/docs/specs/2026-08-13-syft-cyclonedx-cli-provisioning-design.md).Problem
Syft and cyclonedx-cli need to be installed onto the appliance-build host (never inside the
shipped image) to generate and validate a CycloneDX SBOM for each built appliance. Neither
had a first-party
linux-pkgpackage, solinux-pkghad no way to provision them -- theywere fetched directly from
github.comatappliance-buildbuild time instead, which isinconsistent with how every other third-party build-host tool is provisioned in this org.
Solution
Add
syftandcyclonedx-clitomain.pkgs, each with apackages/<name>/config.shpointing
DEFAULT_PACKAGE_GIT_URLat the new first-party packaging repos(
delphix/syft,delphix/cyclonedx-cli) and callingdpkg_buildpackage_default, followingthe exact
delphix-go/host-jdkspattern. Both are listed only inmain.pkgs-- never inany appliance-build chroot package list -- so they stay build-host-only and are never
shipped inside the appliance image (see the comments added next to each in
main.pkgs).Each
config.shalso setsPACKAGE_VERSIONfrom that repo's own single-source-of-truthversion file (
SYFT_VERSION/CYCLONEDX_VERSION), following thedelphix-rust/RUSTC_VERSIONpattern, instead of lettinglinux-pkgdefault it to1.0.0. Without this,the built
.deb's own version would never reflect the pinned upstream release -- notably badprovenance for tools whose entire purpose is provenance.
Testing Done
packages/syft/config.sh/packages/cyclonedx-cli/config.shfollow the same shape as theexisting
delphix-go/host-jdksconfig files, which already build successfully throughthis same
linux-pkgpath.build-packageJenkins runs, both green, producing correctly-versioned.debs (previously would have defaulted to1.0.0regardless of pinned version):->
delphix-syft_1.46.0-1delphix.2026.08.25.12.54_amd64.deb->
delphix-cyclonedx-cli_0.32.0-1delphix.2026.08.25.12.54_amd64.debappliance-buildPR #892:appliance-build-stage0pre-push Build multiple versions of the delphix-platform package #4 built using these packages, and the resulting CycloneDX SBOMs were reconciled
against the existing BOM CSV across all 3 image variants with zero version mismatches (see
that PR's Testing Done for the full comparison).
Related PRs:
delphix/cyclonedx-cli#1 -- the packaging
repos this PR wires up, reviewed and approved by @prakashsurya.
consumer of these packages.
the Jenkins PrePush Jira/style checks for the two new repos above (merged).