Skip to content

fix(ci): strip dpkg-ignored files from vendored crates for PPA builds - #368

Merged
inureyes merged 1 commit into
mainfrom
fix/ppa-vendor-tar-ignore
Nov 22, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/ppa-vendor-tar-ignore

Conversation

@inureyes

Copy link
Copy Markdown
Member

All six Launchpad builds of 3.1.3 (~jammy1, ~noble1, ~resolute1 on amd64 and arm64) failed with failed to calculate checksum of: vendor/ring/pregenerated/vpaes-x86_64-nasm.o. dpkg-source leaves files matching its default tar-ignore patterns (*.o, *.a, *.so, *.la, VCS metadata, editor backups) out of the source tarball, but ring's .cargo-checksum.json still lists its prebuilt Windows objects, so cargo rejects the crate in the offline build. ring became a compiled dependency in v3.0.0 through hickory-resolver's dnssec-ring feature (#304), and the PPA workflow did not run between 2.4.1 and 3.1.3.

debian/sanitize-vendor.py now removes every file and checksum entry that dpkg-source would drop, using the running dpkg's default patterns plus a built-in fallback list, on top of the hidden and .orig files it already handled. A new --check mode replaces the inline hidden/orig check in the PPA workflow.

Validation:

  • Locally: vendor, sanitize, dpkg-source -b, unpack the tarball, then cargo build --release --frozen --workspace succeeds.
  • Run 45062955925 from this branch uploaded 3.1.3-1~jammy2, ~noble2 and ~resolute2 (sanitizer dropped 19 ring entries), and all six Launchpad builds (amd64 and arm64) finished as "Successfully built".

All six Launchpad builds of 3.1.3 failed with "failed to calculate checksum of: vendor/ring/pregenerated/vpaes-x86_64-nasm.o". dpkg-source leaves files matching its default tar-ignore patterns (*.o, *.a, *.so, *.la, VCS metadata, editor backups) out of the source tarball, while ring's .cargo-checksum.json still lists its prebuilt Windows objects, so cargo's offline build rejects the crate. ring became a compiled dependency in v3.0.0 through hickory-resolver's dnssec-ring feature (#304), and no PPA build ran between 2.4.1 and 3.1.3, so this was not noticed.

sanitize-vendor.py now strips every checksum entry and file that dpkg-source would drop, using the running dpkg's default patterns with a built-in fallback list, in addition to the hidden and .orig files it already handled. A --check mode reports remaining entries, and the PPA workflow uses it in place of its inline hidden/orig check.

Validated locally: after vendoring and sanitizing, the tree unpacked from a dpkg-source -b tarball builds with cargo build --release --frozen --workspace.
@inureyes inureyes added type:bug Something isn't working status:in-progress Currently being worked on priority:high High priority issue labels Nov 22, 2026
@inureyes
inureyes merged commit aa371ad into main Nov 22, 2026
6 checks passed
@inureyes
inureyes deleted the fix/ppa-vendor-tar-ignore branch November 22, 2026 21:08
@inureyes inureyes added status:done Completed and removed status:in-progress Currently being worked on labels Nov 22, 2026

This branch was successfully deployed

1 active deployment
packaging — 1ee021cb Deployed Nov 22, 2026 by inureyes via Upload to PPA (noble) #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:high High priority issue status:done Completed type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant