From 94c85b301d8fcb9e7defc382833aec690ab499d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 23 Jan 2025 07:47:47 -0300 Subject: [PATCH] connman-gtk: fix FTBFS with GCC-14 (incompatible pointer types) GCC-14 no longer allows implicitly casting all pointer types to all other pointer types. This now causes an error when compiling src/status.c. Therefore, explicitly cast the first argument in gtk_widget_set_sensitive() call to GTK_WIDGET, which is what it expects. --- pkgs/by-name/co/connman-gtk/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/co/connman-gtk/package.nix b/pkgs/by-name/co/connman-gtk/package.nix index 9475a30d849f..fb784c8aae7a 100644 --- a/pkgs/by-name/co/connman-gtk/package.nix +++ b/pkgs/by-name/co/connman-gtk/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, autoconf, automake, intltool, @@ -37,6 +38,13 @@ stdenv.mkDerivation rec { connman ]; + patches = [ + (fetchpatch { + url = "https://salsa.debian.org/nickm/connman-gtk/-/raw/ef01b52fa02c5cca199b2e47c0cf360691266fd8/debian/patches/incompatible-pointer-type"; + hash = "sha256-T+N9FfDyROBA4/HLK+l/fpnju2imDU4y6nGSbF+JDiA="; + }) + ]; + preConfigure = '' # m4/intltool.m4 is an invalid symbolic link rm m4/intltool.m4