Replace the 'dpkg-buildpackage -S' wrapper with a native pipeline in src/build/: - deb822 control parser/writer with dpkg-compatible multiline rendering (control.rs) - md5/sha1/sha256 checksum registry, insertion-ordered like dpkg's artifact accumulation (checksums.rs) - Debian version splitting/validation and full changelog entry parsing, including binNMU binary-only entries (metadata.rs) - build-type bitflags and rules-target/artifact-suffix mapping (buildtype.rs) - environment setup: SOURCE_DATE_EPOCH, DEB_BUILD_OPTIONS, dpkg-architecture env dump, vendor default profiles and the sanitized Environment field recorded in .buildinfo (env.rs) - debian/files registry with atomic saves (files.rs) - native .buildinfo writer, including the Installed-Build-Depends closure computed over the dpkg status database (buildinfo.rs) - native .changes writer emitting dpkg's canonical field order with legacy Files + Checksums-Sha1/Sha256 (changes.rs) - gpgme clearsigning with the transitive checksum cascade (dsc -> buildinfo -> changes), key discovery from the changelog maintainer and UNRELEASED no-sign handling (sign.rs) dpkg-source (-b/--before-build/--after-build) intentionally remains a subprocess; debian/rules execution is unchanged. Validated differentially against real dpkg-buildpackage -S -I -i -nc -d on native and 3.0 (quilt) fixture packages: .dsc byte-identical, .changes payload matches modulo machine-dependent Installed-Build-Depends and Environment content, all signatures verify with gpg, artifact ordering and UNRELEASED no-sign behavior match dpkg.
42 lines
890 B
TOML
42 lines
890 B
TOML
[package]
|
|
name = "pkh"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
authors = ["vhaudiquet"]
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5.51", features = ["cargo"] }
|
|
cmd_lib = "2.0.0"
|
|
crossterm = "0.28"
|
|
flate2 = "1.1.5"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
libc = "0.2"
|
|
csv = "1.3.0"
|
|
reqwest = { version = "0.12.9", features = ["blocking", "json", "stream"] }
|
|
git2 = "0.20.2"
|
|
regex = "1"
|
|
chrono = "0.4"
|
|
tokio = { version = "1.41.1", features = ["full"] }
|
|
sha2 = "0.10.8"
|
|
sha1 = "0.10"
|
|
md-5 = "0.10"
|
|
hex = "0.4.3"
|
|
log = "0.4.28"
|
|
indicatif = "0.18.3"
|
|
indicatif-log-bridge = "0.2.3"
|
|
env_logger = "0.11.8"
|
|
futures-util = { version = "0.3.31", features = ["tokio-io"] }
|
|
tar = "0.4"
|
|
xz2 = "0.1"
|
|
serde_json = "1.0.145"
|
|
directories = "6.0.0"
|
|
ssh2 = "0.9.5"
|
|
gpgme = "0.11"
|
|
serde_yaml = "0.9"
|
|
lazy_static = "1.4.0"
|
|
|
|
[dev-dependencies]
|
|
test-log = "0.2.19"
|
|
serial_test = "3.3.1"
|
|
tempfile = "3.10.1"
|