enscript: fix build with gcc15 (#475819)

This commit is contained in:
Aleksana
2026-01-01 11:17:25 +00:00
committed by GitHub

View File

@@ -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 = ''