Skip to main content

Updating a backport patch (Qemu)

pull-lp-source qemu focal (do that twice into 2 different directories) (one sec looking at patch)

git clone lp:~ubuntu-cloud-archive/ubuntu/+source/ca-patches

in one of the qemu repos do: patch -p1 < lp:~ubuntu-cloud-archive/ubuntu/+source/ca-patches/ussuri/qemu.patch

it won't apply cleanly as expected so fix up that (d/p/series I think is the issue)

then on both run: debuild -S -sa -us -uc

then debdiff qemu1.dsc qemu2.dsc > /tmp/qemu.patch

then diff -Naur /tmp/qemu.patch ubuntu-cloud-archive/ubuntu/+source/ca-patches/ussuri/qemu.patch # just fix up patch comments at this point

cp /tmp/qemu.patch ubuntu-cloud-archive/ubuntu/+source/ca-patches/ussuri/qemu.patch

git commit and git push