Skip to content

Commit 651c203

Browse files
authored
lxsession: fix build with gcc 14 (#368711)
2 parents cbbed36 + 58c6135 commit 651c203

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pkgs/desktops/lxde/core/lxsession/default.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
stdenv,
4+
fetchpatch,
45
fetchFromGitHub,
56
autoconf,
67
automake,
@@ -28,7 +29,17 @@ stdenv.mkDerivation rec {
2829
sha256 = "17sqsx57ymrimm5jfmcyrp7b0nzi41bcvpxsqckmwbhl19g6c17d";
2930
};
3031

31-
patches = [ ./xmlcatalog_patch.patch ];
32+
patches = [
33+
./xmlcatalog_patch.patch
34+
35+
# lxsession compilation is broken upstream as of GCC 14
36+
# https://sourceforge.net/p/lxde/bugs/973/
37+
(fetchpatch {
38+
name = "0001-Fix-build-on-GCC-14.patch";
39+
url = "https://sourceforge.net/p/lxde/bugs/973/attachment/0001-Fix-build-on-GCC-14.patch";
40+
hash = "sha256-lxF3HZy5uLK7Cfu8W1A03syZf7OWXpHiU2Fk+xBl39g=";
41+
})
42+
];
3243

3344
nativeBuildInputs = [
3445
autoconf

0 commit comments

Comments
 (0)