FS#75778 - [qemu] add versioned depends for split pkgs

Attached to Project: Arch Linux
Opened by Toolybird (Toolybird) - Saturday, 03 September 2022, 00:13 GMT
Last edited by David Runge (dvzrv) - Wednesday, 07 September 2022, 20:33 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm not 100% sure on this, but it's worth a mention...

The multitude of QEMU split pkgs we have now is great for granularity, but there are some downsides, e.g. when you need to perform a mass downgrade in a hurry.

Background: I locally built 7.1.0 for testing, installed it, then noticed 1 of my critical Windows VM's won't boot. The usual advice is to:

pacman -U /var/cache/pacman/pkg/...

But this becomes a bit unwieldy when there's approx' 40 pkgs to downgrade. Sure, it can be eased with scripting. But I then realized it was way too easy to end up with mismatched pkgs from differing versions.

This scenario can be fixed with versioned depends. For example, anywhere a qemu-* pkg is listed in a depends array in the QEMU PKGBUILD, it could be changed to:

qemu-common="$pkgver-$pkgrel"

and likewise for the handful of other "internal" depends.

I'm testing this out locally and so far so good. It doesn't ease the pain of a mass downgrade, but it at least ensures no version mismatches. Thoughts?
This task depends upon

Closed by  David Runge (dvzrv)
Wednesday, 07 September 2022, 20:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with qemu 7.1.0-4
Comment by David Runge (dvzrv) - Saturday, 03 September 2022, 00:16 GMT
Hmm, yes, I guess this would be a good idea.

I can add it in another pkgrel bump in the coming days/hours.
Comment by David Runge (dvzrv) - Wednesday, 07 September 2022, 10:29 GMT
The change is now in testing with qemu 7.1.0-3. Please give feedback! :)

Loading...