Skip to content

Commit 3c63d7c

Browse files
committed
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.
1 parent 6f91b06 commit 3c63d7c

File tree

8 files changed

+56
-0
lines changed

8 files changed

+56
-0
lines changed

contrib/nix/ruby2.4-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
# Workaround: remove rake from nativeBuildInputs, otherwise it causes
2835
# xapian-bindings to build against the default Ruby version
2936
# instead of our chosen version.

contrib/nix/ruby2.5-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
# Workaround: remove rake from nativeBuildInputs, otherwise it causes
2835
# xapian-bindings to build against the default Ruby version
2936
# instead of our chosen version.

contrib/nix/ruby2.6-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
# Workaround: remove rake from nativeBuildInputs, otherwise it causes
2835
# xapian-bindings to build against the default Ruby version
2936
# instead of our chosen version.

contrib/nix/ruby2.7-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
};
2835
};
2936
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }

contrib/nix/ruby3.0-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
};
2835
};
2936
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }

contrib/nix/ruby3.1-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
};
2835
};
2936
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }

contrib/nix/ruby3.2-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
};
2835
};
2936
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }

contrib/nix/ruby3.3-shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
})
2525
];
2626
};
27+
# Workaround for a new error in clang 16 (MacOS):
28+
# https://github.com/blackwinter/unicode/pull/11
29+
unicode = attrs: {
30+
buildFlags = [
31+
"--with-cflags=-Wno-incompatible-function-pointer-types"
32+
];
33+
};
2734
};
2835
};
2936
in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }

0 commit comments

Comments
 (0)