bip: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-04-09 15:42:34 -07:00
parent f97e195236
commit bf6d88bf0e
+10 -1
View File
@@ -7,6 +7,7 @@
bison,
flex,
openssl,
versionCheckHook,
}:
stdenv.mkDerivation {
@@ -27,9 +28,13 @@ stdenv.mkDerivation {
postPatch = ''
# Drop blanket -Werror to avoid build failure on fresh toolchains
# and libraries. Without the cnage build fails on gcc-13 and on
# and libraries. Without the change build fails on gcc-13 and on
# openssl-3.
substituteInPlace src/Makefile.am --replace-fail ' -Werror ' ' '
# Fix incompatible function pointer type for cmp in list_t
# The cmp function pointer is declared as taking no arguments but is
# used with qsort-style callback signature (const void *, const void *)
substituteInPlace src/util.h --replace-fail 'int (*cmp)()' 'int (*cmp)(const void *, const void *)'
'';
nativeBuildInputs = [
@@ -44,6 +49,10 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "-v";
doInstallCheck = true;
meta = {
description = "IRC proxy (bouncer)";
homepage = "http://bip.milkypond.org/";