Commit 6420a2c2 authored by Sigmanificient's avatar Sigmanificient
Browse files

xbps: fix build with gcc 14

parent b32e0e12
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,10 @@ stdenv.mkDerivation rec {
      --replace 'define _BSD_SOURCE' 'define _DEFAULT_SOURCE' \
      --replace '# define _BSD_SOURCE' '#define _DEFAULT_SOURCE'

    # fix calloc argument cause a build failure
    substituteInPlace bin/xbps-fbulk/main.c \
      --replace-fail 'calloc(sizeof(*depn), 1)' 'calloc(1UL, sizeof(*depn))'

    # fix unprefixed ranlib (needed on cross)
    substituteInPlace lib/Makefile \
      --replace 'SILENT}ranlib ' 'SILENT}$(RANLIB) '