commit 3c63d7c6d66fa99d6bdecf6484cdb6df6d8c4621
parent 6f91b0610063bcb47a64d37ffab5d3b2bb491f68
Author: Dan Callaghan <djc@djc.id.au>
Date: Sun, 14 Apr 2024 14:32:48 +1000
contrib/nix: work around clang errors in unicode gem
Same new clang error as in ncursesw, but in this case it's just missing
casts, not misdeclared arguments. There's no clear upstream to publish
a proper fix so let's just suppress the error for now so that the gem
build on MacOS can succeed.
Diffstat:
8 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/contrib/nix/ruby2.4-shell.nix b/contrib/nix/ruby2.4-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
# Workaround: remove rake from nativeBuildInputs, otherwise it causes
# xapian-bindings to build against the default Ruby version
# instead of our chosen version.
diff --git a/contrib/nix/ruby2.5-shell.nix b/contrib/nix/ruby2.5-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
# Workaround: remove rake from nativeBuildInputs, otherwise it causes
# xapian-bindings to build against the default Ruby version
# instead of our chosen version.
diff --git a/contrib/nix/ruby2.6-shell.nix b/contrib/nix/ruby2.6-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
# Workaround: remove rake from nativeBuildInputs, otherwise it causes
# xapian-bindings to build against the default Ruby version
# instead of our chosen version.
diff --git a/contrib/nix/ruby2.7-shell.nix b/contrib/nix/ruby2.7-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
};
};
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }
diff --git a/contrib/nix/ruby3.0-shell.nix b/contrib/nix/ruby3.0-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
};
};
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }
diff --git a/contrib/nix/ruby3.1-shell.nix b/contrib/nix/ruby3.1-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
};
};
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }
diff --git a/contrib/nix/ruby3.2-shell.nix b/contrib/nix/ruby3.2-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
};
};
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }
diff --git a/contrib/nix/ruby3.3-shell.nix b/contrib/nix/ruby3.3-shell.nix
@@ -24,6 +24,13 @@ let
})
];
};
+ # Workaround for a new error in clang 16 (MacOS):
+ # https://github.com/blackwinter/unicode/pull/11
+ unicode = attrs: {
+ buildFlags = [
+ "--with-cflags=-Wno-incompatible-function-pointer-types"
+ ];
+ };
};
};
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }