Unverified Commit 2e7edcf6 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

dnf-plugins-core: fix build with cmake 4 (#449477)

parents 67376c7e d6b771de
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,

  # dependencies
  cmake,
@@ -38,6 +39,14 @@ buildPythonPackage rec {
    hash = "sha256-nZyM61bQ9L4t3/fa9cP+xo9ke00e6w2Obt80OpqOG8A=";
  };

  patches = [
    # Fix building with CMake 4
    (fetchpatch {
      url = "https://github.com/rpm-software-management/dnf-plugins-core/commit/1f5d725d857b61760174dd09165e885dd63762c5.patch?full_index=1";
      hash = "sha256-dI6tVokgenb4aaLH5YuG3EZ1Ehgf/NwwPprcDWcHt2Q=";
    })
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "SYSCONFDIR /etc" "SYSCONFDIR $out/etc" \