Unverified Commit 651c2035 authored by misuzu's avatar misuzu Committed by GitHub
Browse files

lxsession: fix build with gcc 14 (#368711)

parents cbbed363 58c6135a
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchpatch,
  fetchFromGitHub,
  autoconf,
  automake,
@@ -28,7 +29,17 @@ stdenv.mkDerivation rec {
    sha256 = "17sqsx57ymrimm5jfmcyrp7b0nzi41bcvpxsqckmwbhl19g6c17d";
  };

  patches = [ ./xmlcatalog_patch.patch ];
  patches = [
    ./xmlcatalog_patch.patch

    # lxsession compilation is broken upstream as of GCC 14
    # https://sourceforge.net/p/lxde/bugs/973/
    (fetchpatch {
      name = "0001-Fix-build-on-GCC-14.patch";
      url = "https://sourceforge.net/p/lxde/bugs/973/attachment/0001-Fix-build-on-GCC-14.patch";
      hash = "sha256-lxF3HZy5uLK7Cfu8W1A03syZf7OWXpHiU2Fk+xBl39g=";
    })
  ];

  nativeBuildInputs = [
    autoconf