Skip to content

Commit

Permalink
Ensure proper RPM dependency ordering
Browse files Browse the repository at this point in the history
Old command line tools work with a new qrexec library so long as the
library SONAME matches, but new command line tools will not work with
an older library.  Add an explicit dependency to enforce ordering.

Fixes: QubesOS/qubes-issues#9184
  • Loading branch information
DemiMarie committed May 1, 2024
1 parent 652b8f5 commit 0fcec31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpm_spec/qubes-qrexec-dom0.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Requires: python3
Requires: python3-inotify
Requires: qubes-core-dom0 >= 4.1.9
Requires: qubes-core-qrexec = %{version}-%{release}
# The library is backwards compatible (new library works with old programs)
# but not forwards compatible (old library does not work with new programs)
Requires: qubes-core-qrexec-libs >= %{version}-%{release}

# changed qubesd socket protocol
Conflicts: qubes-core-dom0 < 4.1.12
Expand Down
3 changes: 3 additions & 0 deletions rpm_spec/qubes-qrexec-vm.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ BuildRequires: systemd-devel

Requires: python%{python3_pkgversion}
Requires: qubes-core-qrexec = %{version}-%{release}
# The library is backwards compatible (new library works with old programs)
# but not forwards compatible (old library does not work with new programs)
Requires: qubes-core-qrexec-libs >= %{version}-%{release}

Provides: qubes-core-agent-qrexec = 4.1.0-1
Obsoletes: qubes-core-agent-qrexec < 4.1.0-1
Expand Down

0 comments on commit 0fcec31

Please sign in to comment.