Skip to content

Commit

Permalink
build: Adapt to changes in Fedora packaging of bash-completion
Browse files Browse the repository at this point in the history
Fedora 41 moved a CMake script for bash-completion from
bash-completion to bash-completion-devel package
<https://bugzilla.redhat.com/show_bug.cgi?id=1457164>. That broke
building dnf5.spec:

RPM build errors:
    Directory not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion
    Directory not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion/completions
    File not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion/completions/dnf5

This adapts to the change.

Fixes: #1252
  • Loading branch information
ppisar authored and kontura committed Feb 20, 2024
1 parent 5b81769 commit ff01a5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ Provides: dnf5-command(makecache)

# ========== build requires ==========

%if 0%{?fedora} > 40 || 0 %{?rhel} > 10
BuildRequires: bash-completion-devel
%else
BuildRequires: bash-completion
%endif
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gettext
Expand Down

0 comments on commit ff01a5d

Please sign in to comment.