Properly require one of podman or docker **with** specifying a preference for podman?
Hi all, while packaging apx (https://github.com/Vanilla-OS/apx) I noticed something funny with distrobox. distrobox has the following line in the spec: Requires: (%{_bindir}/podman or %{_bindir}/docker) However, on a new Tumbleweed VM or container, installing distrobox does not pull in podman, it pulls in docker. I would have assumed that the first in the list, i.e. podman, is being installed if neither is already installed. Is there a way to tell RPM to "favor" podman over docker, if neither is already installed? Kind Regards, Johannes
On 31/10/2024 17:05, Johannes Kastl wrote:
Hi all,
while packaging apx (https://github.com/Vanilla-OS/apx) I noticed something funny with distrobox.
distrobox has the following line in the spec:
Requires: (%{_bindir}/podman or %{_bindir}/docker)
However, on a new Tumbleweed VM or container, installing distrobox does not pull in podman, it pulls in docker.
Hm, never seen depending on binaries (in openSUSE), but that is definitely a bug, as I have a couple packages where i give a choice, and it autoselects the first option (package names))
I would have assumed that the first in the list, i.e. podman, is being installed if neither is already installed.
Is there a way to tell RPM to "favor" podman over docker, if neither is already installed?
Kind Regards, Johannes
31.10.2024 19:05, Johannes Kastl wrote:
Hi all,
while packaging apx (https://github.com/Vanilla-OS/apx) I noticed something funny with distrobox.
distrobox has the following line in the spec:
Requires: (%{_bindir}/podman or %{_bindir}/docker)
However, on a new Tumbleweed VM or container, installing distrobox does not pull in podman, it pulls in docker.
I would have assumed that the first in the list, i.e. podman, is being installed if neither is already installed.
No, it is not. zypper (or, likely libsolv) just takes the first in alphabetical order.
Is there a way to tell RPM to "favor" podman over docker, if neither is already installed?
Suggests: podman
On 31/10/2024 19:08, Andrei Borzenkov wrote:
31.10.2024 19:05, Johannes Kastl wrote:
Hi all,
while packaging apx (https://github.com/Vanilla-OS/apx) I noticed something funny with distrobox.
distrobox has the following line in the spec:
Requires: (%{_bindir}/podman or %{_bindir}/docker)
However, on a new Tumbleweed VM or container, installing distrobox does not pull in podman, it pulls in docker.
I would have assumed that the first in the list, i.e. podman, is being installed if neither is already installed.
No, it is not. zypper (or, likely libsolv) just takes the first in alphabetical order.
this behavior changed then. I can remember when I did change streamlink to offer vlc and mpv, I tested that on TW, and it always offered vlc (as it's the first)
Is there a way to tell RPM to "favor" podman over docker, if neither is already installed?
Suggests: podman
participants (3)
-
Andrei Borzenkov
-
Johannes Kastl
-
Richard Rahl