Unverified Commit e14c4a15 authored by Moraxyc's avatar Moraxyc
Browse files

enscript: fix build with gcc15

parent 6ffaf2ad
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchpatch2,
  gettext,
}:

@@ -19,6 +20,12 @@ stdenv.mkDerivation rec {
    # requires that compat/getopt.h is also removed
    # https://savannah.gnu.org/bugs/?64307
    ./0001-use-system-getopt.patch
    # Fix build with gcc15
    #   regex.c:3565:13: error: too many arguments to function 're_match_2_internal'; expected 0, have 8
    (fetchpatch2 {
      url = "https://salsa.debian.org/debian/enscript/-/raw/7a51479540a210dee5eee4ece5b54e3ce15dec52/debian/patches/1096582-gcc-15";
      hash = "sha256-0H8FNCKgQ1YCwcBaMChQSuFaYlmzSsoqtfsNSr567+Y=";
    })
  ];

  postPatch = ''