Commit 2865b8f2 authored by Lorenz Brun's avatar Lorenz Brun
Browse files

udisks: backport patch for crash on exit

With modern versions of glib udisks reliably crashes when being shut
down. The patch has been merged in 2021 [1] but there hasn't been a release
including that patch yet [2]. Backport it to avoid crashes.

[1] https://github.com/storaged-project/udisks/pull/926
[2] https://github.com/storaged-project/udisks/issues/1024#issuecomment-1296159423
parent b9c548a4
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, substituteAll, pkg-config, gnused, autoreconfHook
{ lib, stdenv, fetchFromGitHub, substituteAll, fetchpatch, pkg-config, gnused, autoreconfHook
, gtk-doc, acl, systemd, glib, libatasmart, polkit, coreutils, bash, which
, expat, libxslt, docbook_xsl, util-linux, mdadm, libgudev, libblockdev, parted
, gobject-introspection, docbook_xml_dtd_412, docbook_xml_dtd_43
@@ -40,6 +40,11 @@ stdenv.mkDerivation rec {
        xfsprogs ntfs3g parted util-linux
      ];
    })
    # Fix crash on exit, remove on upgrade to 2.10.
    (fetchpatch {
      url = "https://github.com/storaged-project/udisks/commit/6464e3083c27b9e4d97848b9e69e862f265511d5.patch";
      hash = "sha256-XGprXjJLIL8l4P5MRTHV8GOQR1hpaaFiLgexGnO9Lvg=";
    })
  ];

  strictDeps = true;