Commit d58439ed authored by Yarny0's avatar Yarny0
Browse files

xfce.xfconf: fix segfaults after update to 4.18.2

xfconf 4.18.2 suffers a bug in its cache
handling that causes regular segfaults in xfwm:

https://gitlab.xfce.org/xfce/xfconf/-/issues/35

The commit at hand introduces a patch
which will also be part of the next relese.
parent 63678e9f
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
{ lib, mkXfceDerivation, libxfce4util, gobject-introspection, vala }:
{ lib
, mkXfceDerivation
, fetchpatch
, libxfce4util
, gobject-introspection
, vala
}:

mkXfceDerivation {
  category = "xfce";
@@ -7,6 +13,16 @@ mkXfceDerivation {

  sha256 = "sha256-FVNkcwOS4feMocx3vYhuWNs1EkXDrM1FaKkMhIOuPHI=";

  patches = [
    # fixes a segfault, can likely be removed with 4.18.3,
    # see https://gitlab.xfce.org/xfce/xfconf/-/issues/35#note_81151
    (fetchpatch {
      name = "cache-fix-uncached-value.patch";
      url = "https://gitlab.xfce.org/xfce/xfconf/-/commit/03f7ff961fd46c9141aba624a278e19de0bf3211.diff";
      hash = "sha256-n9Wvt7NfKMxs2AcjUWgs4vZgzLUG9jyEVTZxINko4h8=";
    })
  ];

  nativeBuildInputs = [ gobject-introspection vala ];

  buildInputs = [ libxfce4util ];