From 6de991de33985aae88fba543994c56cdf1f02e90 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Thu, 24 Sep 2026 18:19:01 +0800 Subject: [PATCH] tooling/package: fix deb/rpm packaging against the real distro layouts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verified locally in debian:12 and fedora:43 containers before pushing: - deb: dpkg-deb rejected the control file because `paste -sd', '` uses the delimiter list cyclically (comma, space, comma, ...) — join with a plain comma instead; - rpm: rpm 4.20+ (Fedora 43) computes %{buildroot} itself and ignores a caller-supplied buildroot define, so stage the payload and let the spec's %install copy it via %{_oak_stage}; add a changelog entry (the %source_date_epoch_from_changelog warning) and drop it from the changelog-less build. --- tooling/package/build-deb.sh | 2 +- tooling/package/build-rpm.sh | 25 +++++++++++++++---------- tooling/package/oak.spec | 10 +++++++--- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/tooling/package/build-deb.sh b/tooling/package/build-deb.sh index 585e7e55c..cd0012c55 100755 --- a/tooling/package/build-deb.sh +++ b/tooling/package/build-deb.sh @@ -99,7 +99,7 @@ DEPS=$(cd "$DEPS_DIR" && for bin in "$STAGING_ABS"/usr/bin/*; do dpkg-shlibdeps -O --ignore-missing-info "$bin" || exit 1 done \ | sed 's/^shlibs:Depends=//' | tr ',' '\n' | sed 's/^ //;s/ $//' | sort -u \ - | paste -sd', ' -) + | paste -sd, -) echo "declared deps: $DEPS" cat > "$STAGING/DEBIAN/control" < - 0.5.0-1 +- Release build of the Rust rewrite.