Skip to content

Commit 35035bb

Browse files
gnome2.ORBit2: fix the build against gcc-14 (#368851)
2 parents 5ea96b0 + 84f94cd commit 35035bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/desktops/gnome-2/platform/ORBit2/default.nix

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ stdenv.mkDerivation rec {
3838
"dev"
3939
];
4040

41+
env.NIX_CFLAGS_COMPILE = toString (
42+
lib.optionals (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) [
43+
# the ./configure script is not compatible with gcc-14, not easy to
44+
# regenerate without porting: https://github.com/NixOS/nixpkgs/issues/367694
45+
"-Wno-error=implicit-int"
46+
"-Wno-error=incompatible-pointer-types"
47+
]
48+
);
49+
4150
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
4251
"--with-idl-compiler=${lib.getExe' buildPackages.gnome2.ORBit2 "orbit-idl-2"}"
4352
# https://github.com/void-linux/void-packages/blob/e5856e02aa6ef7e4f2725afbff2915f89d39024b/srcpkgs/ORBit2/template#L17-L35

0 commit comments

Comments
 (0)