From 92515aced540c57057cf7c238b76797ed304f74e Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Sat, 27 Sep 2025 22:25:32 +0300 Subject: [PATCH 1/2] Debian: ensure smooth upgrade paths when files are moved between packages Upgrade path from bcachefs-tools 1.31.2 -> 1.31.5 is broken, stuff was moved from -dkms package into main tools package, and that famously does not work out of the box. Ensure that any incompatible bcachefs-kernel-dkms package version is truly marked as being replaced. See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces See https://wiki.debian.org/PackageTransition, case #10 --- debian/control | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/control b/debian/control index ec1841b2..0345f84a 100644 --- a/debian/control +++ b/debian/control @@ -39,6 +39,8 @@ Recommends: bcachefs-kernel-dkms (= ${binary:Version}), initramfs-tools | linux-initramfs-tool, Breaks: bcachefs-kernel-dkms (<< ${binary:Version}), bcachefs-kernel-dkms (>> ${binary:Version}), +Replaces: bcachefs-kernel-dkms (<< ${binary:Version}), + bcachefs-kernel-dkms (>> ${binary:Version}), Description: bcachefs userspace tools Userspace tools for bcachefs, a modern copy on write, checksumming, multi device filesystem. From b907189f9ae2ab95994256a905f866b37bddc784 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Sat, 27 Sep 2025 22:42:40 +0300 Subject: [PATCH 2/2] Deb PPA: use eatmydata, bump initial apt timeout --- .github/workflows/deb-buildd.yml | 22 ++++++++++++++++------ .github/workflows/deb-publish.yml | 2 +- .github/workflows/deb-src.yml | 13 ++++++++----- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deb-buildd.yml b/.github/workflows/deb-buildd.yml index 08bbb57a..83a0bf2b 100644 --- a/.github/workflows/deb-buildd.yml +++ b/.github/workflows/deb-buildd.yml @@ -36,7 +36,7 @@ jobs: attestations: write steps: - name: Install necessary packages - timeout-minutes: 1 + timeout-minutes: 2 run: | set -xe tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io > /dev/null < /dev/null <> $GITHUB_ENV - mmdebstrap-autopkgtest-build-qemu --boot=efi --mirror "${{ env.MIRROR }}" "${{ inputs.dist-version }}" "$IMAGE" + eatmydata mmdebstrap-autopkgtest-build-qemu --boot=efi --mirror "${{ env.MIRROR }}" "${{ inputs.dist-version }}" "$IMAGE" - name: Run autopkgtest timeout-minutes: 10 if: steps.qemu-image.conclusion != 'skipped' run: | set -xe - autopkgtest --no-built-binaries --apt-upgrade "$GITHUB_WORKSPACE/deb-src"/*.dsc "${{ env.BUILD_DIR }}"/*.changes -- autopkgtest-virt-qemu --qemu-options="-smp $(nproc --all)" --boot=efi "${{ env.IMAGE }}" + eatmydata autopkgtest --no-built-binaries --apt-upgrade "$GITHUB_WORKSPACE/deb-src"/*.dsc "${{ env.BUILD_DIR }}"/*.changes -- autopkgtest-virt-qemu --qemu-options="-smp $(nproc --all)" --boot=efi "${{ env.IMAGE }}" diff --git a/.github/workflows/deb-publish.yml b/.github/workflows/deb-publish.yml index 8f7941fd..6d21bb1d 100644 --- a/.github/workflows/deb-publish.yml +++ b/.github/workflows/deb-publish.yml @@ -23,7 +23,7 @@ jobs: SUITE: ${{ (github.event_name == 'push' && github.ref_type == 'tag') && 'release' || 'snapshot' }} steps: - name: Install necessary packages - timeout-minutes: 1 + timeout-minutes: 2 run: | set -xe tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io > /dev/null < /dev/null < /dev/null <