Skip to content

Commit

Permalink
spec: Fix missing drgn dependency on OL8
Browse files Browse the repository at this point in the history
Users report that "dnf install drgn-tools" does not pull in the "drgn"
package. On investigation, for OL8, the "Requires:" line must be place
directly below the "%package" macro in order to apply to the drgn-tools
package.

Orabug: 37126732

Signed-off-by: Stephen Brennan <[email protected]>
  • Loading branch information
brenns10 committed Oct 15, 2024
1 parent eee4106 commit b05ecde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions buildrpm/python-drgn-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ BuildRequires: python%{python3_pkgversion}-wheel

%global python_wheelname drgn_tools-%{version}-py3-none-any.whl

# The drgn dependency can be fulfilled by drgn with, or without, CTF support.
# However, drgn-tools is tied to specific drgn releases.
Requires: drgn >= 0.0.25, drgn < 0.0.30

%global _description %{expand:
drgn-tools extends the drgn debugger with scripts & helpers developed by the
Oracle Linux Sustaining team. It provides a program called "corelens" which
Expand All @@ -31,6 +27,9 @@ a running kernel image (via /proc/kcore).}

%package -n drgn-tools
Summary: %{summary}
# The drgn dependency can be fulfilled by drgn with, or without, CTF support.
# However, drgn-tools is tied to specific drgn releases.
Requires: drgn >= 0.0.25, drgn < 0.0.30
%description -n drgn-tools %{_description}

%prep
Expand Down

0 comments on commit b05ecde

Please sign in to comment.