Skip to content

Commit

Permalink
gnome-recipes: fix gcc-14 build
Browse files Browse the repository at this point in the history
Without the change the build fails as: https://hydra.nixos.org/build/283869507

    ../src/gr-cooking-view.c: In function 'gr_cooking_view_stop':
    /nix/store/y8fxzs8srzd6d74a85zbpssjr8wkj9q4-glib-2.82.1-dev/include/glib-2.0/glib/gmem.h:143:18: error: passing argument 1 of 'g_array_unref' from incompatible pointer type [-Wincompatible-pointer-types]
      143 |       (destroy) (_ptr);                                  \
          |                  ^~~~
          |                  |
          |                  GPtrArray * {aka struct _GPtrArray *}
    ../src/gr-cooking-view.c:666:9: note: in expansion of macro 'g_clear_pointer'
      666 |         g_clear_pointer (&view->images, g_array_unref);
          |         ^~~~~~~~~~~~~~~
  • Loading branch information
trofi committed Jan 12, 2025
1 parent 0581f46 commit 44ac0b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/by-name/gn/gnome-recipes/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
stdenv,
lib,
fetchFromGitLab,
fetchpatch,
meson,
ninja,
pkg-config,
Expand Down Expand Up @@ -35,6 +36,15 @@ stdenv.mkDerivation rec {
sha256 = "GyFOwEYmipQdFLtTXn7+NvhDTzxBlOAghr3cZT4QpQw=";
};

patches = [
# gcc-14 build failure fix
(fetchpatch {
name = "gcc-14.patch";
url = "https://gitlab.gnome.org/GNOME/recipes/-/commit/c0304675f63a33737b24fdf37e06c6b154a91a31.patch";
hash = "sha256-YTf4NDwUiU/q96RAXKTO499pW9sPrgh8IvdPBPEnV6Q=";
})
];

nativeBuildInputs = [
meson
ninja
Expand Down

0 comments on commit 44ac0b5

Please sign in to comment.