Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: gimpPlugins.bimp #369212

Open
bddvlpr opened this issue Dec 29, 2024 · 1 comment · May be fixed by #369822
Open

Build failure: gimpPlugins.bimp #369212

bddvlpr opened this issue Dec 29, 2024 · 1 comment · May be fixed by #369822
Labels
0.kind: build failure A package fails to build

Comments

@bddvlpr
Copy link
Member

bddvlpr commented Dec 29, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. build gimpPlugins.bimp on unstable.

Build log

See the Hydra build logs.

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@bddvlpr bddvlpr added the 0.kind: build failure A package fails to build label Dec 29, 2024
@paparodeo
Copy link
Contributor

paparodeo commented Dec 29, 2024

upstream issue: alessandrofrancesconi/gimp-plugin-bimp#411

a couple of ways to fix the build:

void casts
diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix
index bf30838cc12b..aa20f129019e 100644
--- a/pkgs/applications/graphics/gimp/plugins/default.nix
+++ b/pkgs/applications/graphics/gimp/plugins/default.nix
@@ -115,16 +115,14 @@ lib.makeScope pkgs.newScope (
       postPatch = ''
         substituteInPlace Makefile \
           --replace-fail "gcc" "${stdenv.cc.targetPrefix}cc"
+
+        # https://github.com/alessandrofrancesconi/gimp-plugin-bimp/issues/411
+        substituteInPlace src/bimp-manipulations-gui.c \
+          --replace-fail "save = &" "save = (void (*)(void*))"
       '';
 
       nativeBuildInputs = with pkgs; [ which ];
 
-      env.NIX_CFLAGS_COMPILE = toString (
-        lib.optionals stdenv.cc.isClang [
-          "-Wno-error=incompatible-function-pointer-types"
-        ]
-      );
-
       installFlags = [
         "SYSTEM_INSTALL_DIR=${placeholder "out"}/${gimp.targetPluginDir}/bimp"
       ];

or

disable error
diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix
index bf30838cc12b..f1cbac4d0242 100644
--- a/pkgs/applications/graphics/gimp/plugins/default.nix
+++ b/pkgs/applications/graphics/gimp/plugins/default.nix
@@ -119,11 +119,7 @@ lib.makeScope pkgs.newScope (
 
       nativeBuildInputs = with pkgs; [ which ];
 
-      env.NIX_CFLAGS_COMPILE = toString (
-        lib.optionals stdenv.cc.isClang [
-          "-Wno-error=incompatible-function-pointer-types"
-        ]
-      );
+      env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
 
       installFlags = [
         "SYSTEM_INSTALL_DIR=${placeholder "out"}/${gimp.targetPluginDir}/bimp"

feel free to open a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
2 participants